Trying to compile nzbget under unslung

Get help, report and discuss bugs.
Post Reply
nobody

Trying to compile nzbget under unslung

Post by nobody » 25 Feb 2008, 22:20

Hi there !

Did anyone tried/managed to compile nzbget under unslung (NSLU2) ?
I got the source from svn, installed the unslung-devel package but the configure script stops with the following error :

# ./configure
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... armv5b-unknown-linux-gnu
checking host system type... armv5b-unknown-linux-gnu
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

Thanks and keep up the good work !

Damien

hugbug

RE: Trying to compile nzbget under unslung

Post by hugbug » 26 Feb 2008, 10:50

I've made nslu-package for the latest svn-revision and will update it frequently in the feature.
It is available from download section. Let me know if it works or not.

Can't help on native build on NSLU2 (do not have nslu2-box), but cross-compile should work if you follow the instructions on http://www.nslu2-linux.org/wiki/Optware ... eToOptware .

First try to make a small package with few dependencies, for example "zlib".

nobody

RE: Trying to compile nzbget under unslung

Post by nobody » 26 Feb 2008, 22:01

Thanks for the package, I've just installed it.
That's a major improvement as nzbget starts now :)

It doesn't work yet though... Now I get the following error in nzbget.log :

Tue Feb 26 22:45:54 2008INFOnzbget server-mode
Tue Feb 26 22:45:54 2008ERRORBinding socket failed for 127.0.0.1: ErrNo 98, Unknown resolver error
Tue Feb 26 22:45:55 2008ERRORBinding socket failed for 127.0.0.1: ErrNo 98, Unknown resolver error
Tue Feb 26 22:45:55 2008ERRORBinding socket failed for 127.0.0.1: ErrNo 98, Unknown resolver error
...

Any idea ?
It must have something to do with my install, I think I had the same with nzbget 3.1

Damien

hugbug

RE: Trying to compile nzbget under unslung

Post by hugbug » 27 Feb 2008, 06:49

The error 98 means "address already in use". Try different port.

nobody

RE: Trying to compile nzbget under unslung

Post by nobody » 27 Feb 2008, 22:19

Thanks a lot, it works now.
If you still have time for a newbie, i have one more problem :p
When I start nzbget in daemon mode (-D) and then enter "nzbget -C", the daemon stops with a "Segmentation fault" error.
I can't figure out why...

Note : I just tried to start nzbget using -s option and then enter nzbget -C from another window and i also get a segmentation fault error...

Damien

hugbug

RE: Trying to compile nzbget under unslung

Post by hugbug » 28 Feb 2008, 06:54

1) Please use the debug-version with activated option "debugtarget=both"; by starting the client use option "logfile=/other/path/client-log" to write to different log-file:

nzbget -o logfile=/other/path/client-log -C

Then send me both log-file.

2) Do other remote-commands work ("nzbget -P", "nzbget -L", "nzbget -G 100")?

3) Try to access the server from windows nzbget-client. Does it crash the server?

4) Did the version 0.3.1 from optware-repository work without this problem?

niours

RE: Trying to compile nzbget under unslung

Post by niours » 29 Feb 2008, 00:13

Here are the results :
1) The server doesn't crash anymore but the client still can't communicate with it.
Server log file :
Fri Feb 29 00:32:18 20081024INFOnzbget daemon-mode
Fri Feb 29 00:32:18 20081024DEBUGInitializing global thread data (Thread.cpp:178:Init)
Fri Feb 29 00:32:18 20081024DEBUGIntiializing global connection data (Connection.cpp:54:Init)
Fri Feb 29 00:32:18 20081024DEBUGCreating Thread (Thread.cpp:188:Thread)
Fri Feb 29 00:32:18 20081024DEBUGCreating QueueEditor (QueueEditor.cpp:64:QueueEditor)
Fri Feb 29 00:32:18 20081024DEBUGCreating QueueCoordinator (QueueCoordinator.cpp:59:QueueCoordinator)
Fri Feb 29 00:32:18 20081024DEBUGInitializing global decoder (Decoder.cpp:118:Init)
Fri Feb 29 00:32:18 20081024DEBUGCreating Thread (Thread.cpp:188:Thread)
Fri Feb 29 00:32:18 20081024DEBUGCreating RemoteServer (RemoteServer.cpp:58:RemoteServer)
Fri Feb 29 00:32:18 20081024DEBUGStarting Thread (Thread.cpp:203:Start)
Fri Feb 29 00:32:18 20081024DEBUGCreating Thread (Thread.cpp:188:Thread)
Fri Feb 29 00:32:18 20081024DEBUGCreating Thread (Thread.cpp:188:Thread)
Fri Feb 29 00:32:18 20081024DEBUGCreating ParChecker (ParChecker.cpp:74:ParChecker)
Fri Feb 29 00:32:18 20081024DEBUGCreating PrePostProcessor (PrePostProcessor.cpp:126:PrePostProcessor)
Fri Feb 29 00:32:18 20081024DEBUGStarting Thread (Thread.cpp:203:Start)
Fri Feb 29 00:32:18 20081026DEBUGEntering Thread-func (Thread.cpp:270:thread_handler)
Fri Feb 29 00:32:18 20081026DEBUGEntering RemoteServer-loop (RemoteServer.cpp:77:Run)
Fri Feb 29 00:32:18 20081026DEBUGCreating Connection (Connection.cpp:85:Connection)
Fri Feb 29 00:32:18 20081026DEBUGBinding (Connection.cpp:157:Bind)
Fri Feb 29 00:32:18 20081026DEBUGDo binding (Connection.cpp:460:DoBind)
Fri Feb 29 00:32:18 20081026DEBUGAccepting connection (Connection.cpp:216:Accept)
Fri Feb 29 00:32:18 20081024DEBUGStarting Thread (Thread.cpp:203:Start)
Fri Feb 29 00:32:18 20082051DEBUGEntering Thread-func (Thread.cpp:270:thread_handler)
Fri Feb 29 00:32:18 20082051DEBUGEntering PrePostProcessor-loop (PrePostProcessor.cpp:165:Run)
Fri Feb 29 00:32:18 20083076DEBUGEntering Thread-func (Thread.cpp:270:thread_handler)
Fri Feb 29 00:32:18 20083076DEBUGEntering QueueCoordinator-loop (QueueCoordinator.cpp:106:Run)
Fri Feb 29 00:32:18 20083076DEBUGChecking if a saved queue exists on disk (DiskState.cpp:402:Exists)
Fri Feb 29 00:33:33 20081026DEBUGCreating Thread (Thread.cpp:188:Thread)
Fri Feb 29 00:33:33 20081026DEBUGStarting Thread (Thread.cpp:203:Start)
Fri Feb 29 00:33:33 20081026DEBUGAccepting connection (Connection.cpp:216:Accept)
Fri Feb 29 00:33:33 20084101DEBUGEntering Thread-func (Thread.cpp:270:thread_handler)
Fri Feb 29 00:33:33 20084101DEBUGLog request received from 127.0.0.1 (BinRpc.cpp:100:Execute)

Client log file :
Fri Feb 29 00:33:33 20081024INFOnzbget remote-mode
Fri Feb 29 00:33:33 20081024DEBUGInitializing global thread data (Thread.cpp:178:Init)
Fri Feb 29 00:33:33 20081024DEBUGIntiializing global connection data (Connection.cpp:54:Init)
Fri Feb 29 00:33:33 20081024DEBUGCreating Thread (Thread.cpp:188:Thread)
Fri Feb 29 00:33:33 20081024DEBUGCreating Frontend (Frontend.cpp:60:Frontend)
Fri Feb 29 00:33:33 20081024DEBUGStarting Thread (Thread.cpp:203:Start)
Fri Feb 29 00:33:33 20081026DEBUGEntering Thread-func (Thread.cpp:270:thread_handler)
Fri Feb 29 00:33:33 20081026DEBUGEntering NCursesFrontend-loop (NCursesFrontend.cpp:216:Run)
Fri Feb 29 00:33:33 20081026DEBUGCreating Connection (Connection.cpp:85:Connection)
Fri Feb 29 00:33:33 20081026DEBUGConnecting (Connection.cpp:124:Connect)
Fri Feb 29 00:33:33 20081026DEBUGDo connecting (Connection.cpp:281:DoConnect)
Fri Feb 29 00:33:33 20081026DEBUGSending data (Connection.cpp:190:Send)
Fri Feb 29 00:33:33 20081026DEBUGReceiving data (Connection.cpp:230:Recv)
Fri Feb 29 00:34:32 20081026DEBUGCould not receive data on socket: ErrNo 11, Unknown resolver error (Connection.cpp:561:ReportError)
Fri Feb 29 00:34:32 20081026DEBUGDestroying Connection (Connection.cpp:113:Connection)
Fri Feb 29 00:34:32 20081026DEBUGDisconnecting (Connection.cpp:141:Disconnect)
Fri Feb 29 00:34:32 20081026DEBUGDo disconnecting (Connection.cpp:369:DoDisconnect)
Fri Feb 29 00:34:32 20081026DEBUGStopping Thread (Thread.cpp:235:Stop)
Fri Feb 29 00:34:32 20081026DEBUGExiting NCursesFrontend-loop (NCursesFrontend.cpp:244:Run)
Fri Feb 29 00:34:32 20081026DEBUGThread-func exited (Thread.cpp:276:thread_handler)
Fri Feb 29 00:34:32 20081024DEBUGFrontend stopped (nzbget.cpp:306:Run)
Fri Feb 29 00:34:32 20081024DEBUGCleaning up global objects (nzbget.cpp:451:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDeleting QueueCoordinator (nzbget.cpp:453:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGQueueCoordinator deleted (nzbget.cpp:459:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDeleting RemoteServer (nzbget.cpp:461:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGRemoteServer deleted (nzbget.cpp:467:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDeleting PrePostProcessor (nzbget.cpp:469:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGPrePostProcessor deleted (nzbget.cpp:475:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDeleting Frontend (nzbget.cpp:477:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDestroying Thread (Thread.cpp:198:Thread)
Fri Feb 29 00:34:32 20081024DEBUGFrontend deleted (nzbget.cpp:483:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDeleting DiskState (nzbget.cpp:485:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDiskState deleted (nzbget.cpp:491:Cleanup)
Fri Feb 29 00:34:32 20081024DEBUGDeleting Options (nzbget.cpp:493:Cleanup)

2) Just after starting the daemon :
nzbget -P => OK
nzbget -L => OK
nzbget -G 100 => KO (same kind of messages as 1)
After this step, the previous command won't work

3) Same thing with windows client

4) I didn't try 0.3.1, that's my next task

5) I can't make nzbgetweb to access the server either, i don't know if it's related but here is the server log file :
Fri Feb 29 00:59:48 20081026DEBUGCreating Thread (Thread.cpp:188:Thread)
Fri Feb 29 00:59:48 20081026DEBUGStarting Thread (Thread.cpp:203:Start)
Fri Feb 29 00:59:48 20081026DEBUGAccepting connection (Connection.cpp:216:Accept)
Fri Feb 29 00:59:48 20084101DEBUGEntering Thread-func (Thread.cpp:270:thread_handler)
Fri Feb 29 00:59:48 20084101DEBUGCreating Connection (Connection.cpp:99:Connection)
Fri Feb 29 00:59:48 20084101DEBUGheader=HTTP/1.0
(XmlRpc.cpp:113:Execute)
Fri Feb 29 00:59:48 20084101DEBUGheader=User-Agent: NZBGetWeb
(XmlRpc.cpp:113:Execute)
Fri Feb 29 00:59:48 20084101DEBUGheader=Host: 127.0.0.1
(XmlRpc.cpp:113:Execute)
Fri Feb 29 00:59:48 20084101DEBUGheader=Authorization: Basic bnpiZ2V0OnRlZ2J6bjY3ODk=
(XmlRpc.cpp:113:Execute)
Fri Feb 29 00:59:48 20084101DEBUGheader=Content-Length: 48
(XmlRpc.cpp:113:Execute)
Fri Feb 29 00:59:48 20084101DEBUGheader=
(XmlRpc.cpp:113:Execute)
Fri Feb 29 00:59:48 20084101DEBUGContent-Length=48 (XmlRpc.cpp:136:Execute)
Fri Feb 29 00:59:48 20084101DEBUGAuthorization= (XmlRpc.cpp:137:Execute)
Fri Feb 29 00:59:48 20084101ERRORinvalid-request: not authorized
Fri Feb 29 00:59:48 20084101DEBUGDestroying Connection (Connection.cpp:113:Connection)
Fri Feb 29 00:59:48 20084101DEBUGThread-func exited (Thread.cpp:276:thread_handler)
Fri Feb 29 00:59:48 20084101DEBUGAutodestroying Thread-object (Thread.cpp:282:thread_handler)
Fri Feb 29 00:59:48 20084101DEBUGDestroying Thread (Thread.cpp:198:Thread)

I don't know if this helps...
Damien

hugbug

RE: Trying to compile nzbget under unslung

Post by hugbug » 29 Feb 2008, 14:23

I sent you a new debug-exe on your SF-address.

hugbug

RE: Trying to compile nzbget under unslung

Post by hugbug » 07 Mar 2008, 14:07

FYI:
It was an ARM-specific problem (aligning of integers in memory).
Fixed in r137.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 8 guests