DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#51 2012-02-19 15:47:36

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Packages for FFP 0.7

The listing gives a splendid suggestion:

/ffp/bin/ld: note: 'X509_free' is defined in DSO /ffp/lib/libcrypto.so.1.0.0 so try adding it to the linker command line

Offline

 

#52 2012-02-19 20:45:48

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Packages for FFP 0.7

Ok but I don't know how to "adding it to the linker command line". What does it mean ?

Offline

 

#53 2012-02-19 21:30:40

DiskCrasher
Member
Registered: 2010-04-04
Posts: 6

Re: Packages for FFP 0.7

I can't get mediatomb to work. By default, it wanted to create the config file under /home/root/.mediatomb which is a volatile directory. I re-pointed it to /ffp/etc/.mediatomb by using the --home flag, but it still doesn't open a web port on 49152. I was able to see that the process was running.

Another thing I noticed is that /ffp/start/mediatomb restart isn't successful in stopping/restarting the process:

Code:

root@DNS-321:~/.mediatomb# /ffp/start/mediatomb.sh restart
Stopping mediatomb
WARNING: mediatomb: Already running
root@DNS-321:~/.mediatomb#

Offline

 

#54 2012-02-19 22:06:14

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Packages for FFP 0.7

@R0b1n: Open the Makefile. There is a variable defined (maybe CFLAGS), which contains among other things the options -lxml2 and -lsigc-2.0 (to link libxml2 and libsigc-2.0). Add -lcrypto to this line, and run make again.

@DiskCrasher: Does it need to open port 49152? Have a look with 'netstat -ltnp' to see which port(s) mediatomb has opened, or just run 'mediatomb' on the commandline to see it's run messages.

Offline

 

#55 2012-02-19 22:47:18

DiskCrasher
Member
Registered: 2010-04-04
Posts: 6

Re: Packages for FFP 0.7

@DiskCrasher: Does it need to open port 49152? Have a look with 'netstat -ltnp' to see which port(s) mediatomb has opened, or just run 'mediatomb' on the commandline to see it's run messages.

Port 49152 is the default port if you don't specify one. I didn't see any port being opened by mediatomb. Here is the list:

Code:

root@DNS-321:~# netstat -ltnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State   PID/Program name
tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN 1194        /smbd
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN        1809/lighttpd
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     1525/webs
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     1586/pure-ftpd (SER
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     1792/sshd
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN    1525/webs
tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN    1194/smbd
netstat: /proc/net/tcp6: No such file or directory
root@DNS-321:~#

And the output from running mediatomb:

Code:

root@DNS-321:/ffp/start# ./mediatomb.sh start
Starting /ffp/bin/mediatomb --daemon --home /ffp/etc
2012-02-19 20:44:39    INFO: Loading configuration from: /ffp/etc/.mediatomb/config.xml
2012-02-19 20:44:39    INFO: Checking configuration...
2012-02-19 20:44:40    INFO: Setting filesystem import charset to ASCII
2012-02-19 20:44:40    INFO: Setting metadata import charset to ASCII
2012-02-19 20:44:40    INFO: Setting playlist charset to ASCII
2012-02-19 20:44:40 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2012-02-19 20:44:40    INFO: Configuration check succeeded.
root@DNS-321:/ffp/start#

I have not specified a port in config.xml (shouldn't need to).

Offline

 

#56 2012-02-20 10:19:03

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Packages for FFP 0.7

The most interesting part is left away when starting mediatomb as service:

Code:

sh-4.1$ mediatomb

MediaTomb UPnP Server version 0.12.1 - http://mediatomb.cc/

===============================================================================
Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2

2012-02-20 08:13:17    INFO: Loading configuration from: /home/Mijzelf/.mediatomb/config.xml
2012-02-20 08:13:17    INFO: Checking configuration...
2012-02-20 08:13:17    INFO: Setting filesystem import charset to ASCII
2012-02-20 08:13:17    INFO: Setting metadata import charset to ASCII
2012-02-20 08:13:17    INFO: Setting playlist charset to ASCII
2012-02-20 08:13:17 WARNING: You enabled the YouTube feature, which allows you
                             to watch YouTube videos on your UPnP device!
                             Please check http://www.youtube.com/t/terms
                             By using this feature you may be violating YouTube
                             service terms and conditions!

2012-02-20 08:13:17    INFO: Configuration check succeeded.
2012-02-20 08:13:18 WARNING: Sqlite3 database seems to be corrupt or doesn't exist yet.
2012-02-20 08:13:18    INFO: no sqlite3 backup is available or backup is corrupt. automatically creating database...
2012-02-20 08:13:18    INFO: database created successfully.
2012-02-20 08:13:18    INFO: Initialized port: 49153
2012-02-20 08:13:18    INFO: Server bound to: 10.0.0.8
2012-02-20 08:13:19    INFO: MediaTomb Web UI can be reached by following this link:
2012-02-20 08:13:19    INFO: http://10.0.0.8:49153/

Offline

 

#57 2012-02-21 03:52:40

DiskCrasher
Member
Registered: 2010-04-04
Posts: 6

Re: Packages for FFP 0.7

Interesting. I tried that but it's now stuck on the "automatically creating database" line. Guess that explains why no port opened up. Now why is it stuck?

Offline

 

#58 2012-02-21 10:13:26

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Packages for FFP 0.7

Mijzelf wrote:

uClibc 0.9.32 compiled without ipv6, and without rpc, other than needed for nfs, works for mediatomb, nmap and iftop.
I'm not sure about transmission. It starts, and is still complaining about a closed port, but according to iftop connections are made to the serverport, and data is streaming. But after a few minutes the webinterface dies, and a few minutes later the transmission stops.

Anyway, I've uploaded this uClibc version (it's not in the slacker menu) and an updated transmission. (The old one was dependent on ip6addr_any, which was no longer available)

Did you install it already?

Offline

 

#59 2012-02-21 19:13:12

DiskCrasher
Member
Registered: 2010-04-04
Posts: 6

Re: Packages for FFP 0.7

I installed the uClibc library but it didn't solve the problem. I re-ran mediatomb with the --debug flag and saw a couple "disk I/O error" messages coming from sqlite. Re-pointed --home to /ffp/mnt/HD_a2 but still got I/O errors.

Offline

 

#60 2012-02-21 21:34:13

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Packages for FFP 0.7

Mijzelf, this is what I can find in Makefile file:

Code:

Lines 109 and 110:
CFLAGS =  -I/ffp/include/libxml2   -I/usr/include -I/usr/include -I/usr/include -I/ffp/lib/
CPPFLAGS =  -I/ffp/include/libxml2   -I/usr/include -I/ffp/include/sigc++-2.0 -I/ffp/lib/sigc++-2.0/include   -I/usr/include -I/usr/include -I/usr/include

Lines 178 to 181:
libsigc_CFLAGS = -I/ffp/include/sigc++-2.0 -I/ffp/lib/sigc++-2.0/include  
libsigc_LIBS = -L/ffp/lib -lsigc-2.0  
libxml2_CFLAGS = -I/ffp/include/libxml2  
libxml2_LIBS = -L/ffp/lib -lxml2

But there is no libcrypto in /ffp/include only in /ffp/lib.

What are the entries I will have to add then in my Makefile ?

Offline

 

#61 2012-02-22 20:34:18

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Packages for FFP 0.7

You can do it dirty, and add it to libsigc_LIBS:

Code:

libsigc_LIBS = -L/ffp/lib -lsigc-2.0  -lcrypto

But there is no libcrypto in /ffp/include only in /ffp/lib.

That doesn't matter. The code is alrady compiled, so no includefiles are necessary, only the linker is complaining.

@DiskCrasher: Sorry, I have no idea what is going wrong. On my box it just works.
Have you checked dmesg? If that also reports I/O errors it has nothing to do with the FFP packages.

Offline

 

#62 2012-02-22 21:48:02

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Packages for FFP 0.7

Thanks again Mijzelf for your great help but adding -lcrypto to libsigc_LIBS did not work. I finally found the solution. I have replaced the line

Code:

LDFLAGS =  -L/ffp/lib -lxml2   -L/usr/lib -L/ffp/lib -lsigc-2.0 -L/usr/lib -L/usr/lib -L/usr/lib

with

Code:

LDFLAGS =  -L/ffp/lib -lxml2   -L/usr/lib -L/ffp/lib -lsigc-2.0 -lcrypto -L/usr/lib -L/usr/lib -L/usr/lib

and it worked !

But now when I launch a make install-strip, I've got another problem:

root@NAS:/mnt/HD_a2/ffpbuildenv_07/nzbget-0.7.0# DESTDIR=/ffp/tmp make install-strip
/ffp/bin/make  INSTALL_PROGRAM="/ffp/bin/sh /mnt/HD_a2/ffpbuildenv_07/nzbget-0.7.0/install-sh -c -s" \
          install_sh_PROGRAM="/ffp/bin/sh /mnt/HD_a2/ffpbuildenv_07/nzbget-0.7.0/install-sh -c -s" INSTALL_STRIP_FLAG=-s \
          `test -z '' || \
            echo "INSTALL_PROGRAM_ENV=STRIPPROG=''"` install
/ffp/bin/sh: svnversion: command not found
make[1]: Entering directory `/mnt/HD/HD_a2/ffpbuildenv_07/nzbget-0.7.0'
/ffp/bin/sh: svnversion: command not found
make[2]: Entering directory `/mnt/HD/HD_a2/ffpbuildenv_07/nzbget-0.7.0'
test -z "/usr/local/bin" || mkdir -p -- "/ffp/tmp/usr/local/bin"
  /ffp/bin/sh /mnt/HD_a2/ffpbuildenv_07/nzbget-0.7.0/install-sh -c -s 'nzbget' '/ffp/tmp/usr/local/bin/nzbget'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/mnt/HD/HD_a2/ffpbuildenv_07/nzbget-0.7.0'
make[1]: Leaving directory `/mnt/HD/HD_a2/ffpbuildenv_07/nzbget-0.7.0'

It seems that it complains about svnversion now. It means TortoiseSVN ?

Last edited by R0b1n (2012-02-23 10:06:48)

Offline

 

#63 2012-02-22 22:23:52

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: Packages for FFP 0.7

I don't know. I *think* you can just ignore it, as make doesn't error out.

Offline

 

#64 2012-02-23 04:33:52

DiskCrasher
Member
Registered: 2010-04-04
Posts: 6

Re: Packages for FFP 0.7

@DiskCrasher: Sorry, I have no idea what is going wrong. On my box it just works.
Have you checked dmesg? If that also reports I/O errors it has nothing to do with the FFP packages.

No errors in dmesg.

Offline

 

#65 2012-02-23 10:13:18

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Packages for FFP 0.7

Mijzelf wrote:

I don't know. I *think* you can just ignore it, as make doesn't error out.

Ok thanks.

I made some tests with my compiled nzbget yesterday and it works perfectly now on ffp 0.7. I will make the .txz package then but before I need to recompile it because there is something wrong with the path of nzbget.conf as it is only searched in /etc, /usr/bin, /opt/etc and /ffp/etc/ is missing. This default path is probably defined somewhere in the source code...

Last edited by R0b1n (2012-02-23 10:16:10)

Offline

 

#66 2012-02-23 21:54:03

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Packages for FFP 0.7

Ok, here is nzbget 0.7.0 compiled for ffp 0.7 arm: http://www.wupload.com/file/2666767027/ … -arm-1.txz

and its dependencies compiled by me for ffp 0.7 arm too if you need to recompile it:
http://www.wupload.com/file/2666767032/ … -arm-1.txz
http://www.wupload.com/file/2666767037/ … -arm-1.txz

(If someone could upload them to his repository it will be very good tongue)

You will have to install libxml12 for compilation too.

This nzbget package is the same as for optware on ffp 0.5. After installation, you will find a /ffp/opt/etc directory where you have to put the config file and a ffp/share/doc/nzbget directory when you can find a configuration and post processing example files.

I will probably made a second revision later with the config file in /ffp/etc/ if I find where I can change the path in source code. But it works as it is for the moment.

Enjoy !

Last edited by R0b1n (2012-02-24 10:30:30)

Offline

 

#67 2012-02-24 20:04:58

zenji2011
Member
Registered: 2011-09-15
Posts: 9

Re: Packages for FFP 0.7

Hi,

Is it possible to install OARM packages on ffp 0.5 installs - do you HAVE to update?

Cheers.

Offline

 

#68 2012-02-25 09:26:23

R0b1n
Member
Registered: 2011-12-03
Posts: 51

Re: Packages for FFP 0.7

Hi all.

Here is the second revision of my nzbget 0.7.0 package for ffp 0.7 arm: http://www.wupload.com/file/2667161462/ … -arm-2.txz

This version is totaly optware free now smile

Change log:
- nzbget looks for nzbget.conf directly in /ffp/etc.
- nzbgetd has been fixed to launch nzbget binary in /ffp/bin.

Last edited by R0b1n (2012-02-25 09:29:12)

Offline

 

#69 2012-02-25 16:44:02

Le_candide
Member
Registered: 2011-10-14
Posts: 7

Re: Packages for FFP 0.7

Thanks wink

Offline

 

#70 2012-02-26 01:17:26

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Packages for FFP 0.7

zenji2011 wrote:

Hi,

Is it possible to install OARM packages on ffp 0.5 installs - do you HAVE to update?

Cheers.

Packages compiled for ffp 0.7-oarm are linked to a new version of uClibc, and hence will most likely fail on a ffp-0.5 installation.

So yes, you have to upgrade to ffp-0.7 in order to use the new packages.

Offline

 

#71 2012-02-28 12:56:29

croca
Member
Registered: 2012-02-28
Posts: 5

Re: Packages for FFP 0.7

Hi guys,

Has anybody compiled the subversion package for oarm?

I get the following error when running ./configure

checking how to run the C preprocessor... /ffp/bin/cpp
[..]
configure: error: C preprocessor "/ffp/bin/cpp" fails sanity check

And inside the config.log

[..]
: fatal error: linux/limits.h: No such file or directory
compilation terminated.
[..]

Thank you.

Cheers,

Offline

 

#72 2012-02-28 13:16:57

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Packages for FFP 0.7

Install this package: http://inreto.de/ffp/0.7/oarm/packages/ … oarm-1.txz

Please also note this post by fonz regarding ffp-0.7 on oarm.
You should consider switching to ffp-0.7-oabi instead.

Offline

 

#73 2012-02-29 01:36:07

croca
Member
Registered: 2012-02-28
Posts: 5

Re: Packages for FFP 0.7

Hi Kylek,

Thanks for you quick reply. Now it compiled, though I still have to resolve some dependencies.

I'll follow your advice. Btw, apart from the uClibc version, what's the difference between oarm and oabi and what does 'oabi' stand for?

Cheers,

Offline

 

#74 2012-02-29 09:20:57

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Packages for FFP 0.7

You can find an explanation here for the differences between OABI (oarm) and EABI (arm): http://www.oesf.org/index.php?title=Q3: … nd_EABI%3F

fonz simply chose a new name for a rebuild of ffp-0.7 for older arm devices, so people don't get confused. Once you switch to 0.7-oabi, you can't use any 0.7-oarm packages anymore (i.e. everything needs to be recompiled).

Offline

 

#75 2012-03-01 22:06:46

dejawho
Member
Registered: 2012-03-01
Posts: 11

Re: Packages for FFP 0.7

Hi, someone could write the procedure to install transmission on the ffp 0.7?
Because when i start the file transmission.sh it say:
/ffp/lib/libevent-2.0.so.5 is not an ELF file
It say this three times then
can't load library libevent-2.0.so.5

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB