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

#1 2008-08-11 13:26:57

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

How to compile programs for DNS-323, create fun_plug package

Hi,

I am the proud owner of a DNS-323/CH3SNAS. I have some linux experience, but not with compiling stuff.

What I want to do is compile programs, at first nzbget with par2 support. (The fun_plug nzbget-package does not contain par2 support.)

Is there somewhere a howto/tutorial on how to compile stuff. Easiest would be to compile it on the DNS-323 itself.

I read that I need to download a toolchain. Can I use the D-Link tool chain, even with fun_plug?

Is anybody happy to provide some step-by-step guide or info?

Thanks!

Offline

 

#2 2008-08-11 14:53:15

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: How to compile programs for DNS-323, create fun_plug package

There's no step-by-step guide. So far, nobody cared to write it.

There are toolchain packages for ffp (but they have nothing do to with the D-Link toolchain): gcc, binutils, make, bash, auto*, ... Unless you know what you're doing, it's safest to install all packages.

Also, all my build scripts for ffp 0.5 are available via subversion (See the ffp howto on the wiki). It also contains my build script for nzbget.

Offline

 

#3 2008-08-11 15:24:46

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

fonz wrote:

There's no step-by-step guide. So far, nobody cared to write it.

There are toolchain packages for ffp (but they have nothing do to with the D-Link toolchain): gcc, binutils, make, bash, auto*, ... Unless you know what you're doing, it's safest to install all packages.

Also, all my build scripts for ffp 0.5 are available via subversion (See the ffp howto on the wiki). It also contains my build script for nzbget.

Ah, cool. I did'n't find the buildscript on your inreto site, but guess I must look harder.

So i guess I'll do the following first then:

* get your buildscripts
* install the toolchain packages (just install all ffp packages, or are the toolchain packages available somewhere else in subversion).
* see if I get anywhere then.

Thanks already, cool to get help from the master himself wink

Last edited by Opperpanter (2008-08-11 15:25:10)

Offline

 

#4 2008-08-11 16:41:16

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: How to compile programs for DNS-323, create fun_plug package

Opperpanter wrote:

* install the toolchain packages (just install all ffp packages, or are the toolchain packages available somewhere else in subversion).

There are no packages in subversion, only build scripts. I mean these packages: http://www.inreto.de/dns323/fun-plug/0.5/packages/
In case you've missed that, too, the simplest way to get the packages is using rsync - described here:
http://www.inreto.de/dns323/fun-plug/0.5/

Offline

 

#5 2008-08-11 17:03:40

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

fonz wrote:

Opperpanter wrote:

* install the toolchain packages (just install all ffp packages, or are the toolchain packages available somewhere else in subversion).

There are no packages in subversion, only build scripts. I mean these packages: http://www.inreto.de/dns323/fun-plug/0.5/packages/
In case you've missed that, too, the simplest way to get the packages is using rsync - described here:
http://www.inreto.de/dns323/fun-plug/0.5/

i understand. i already have all those packages (and some more). just have not installed them all. I will, and try the scripts.

Offline

 

#6 2008-08-11 19:24:38

ismora
Member
From: Paris, France
Registered: 2008-07-30
Posts: 30

Re: How to compile programs for DNS-323, create fun_plug package

Thanx fonz, just the info I missed to compile some stuff I need (I feared this was not possible without using cross-compilation on debian).
First attempts will be unison and dar (dar: see a previous post for me).

Will post here and make the packages available if I'm lucky :-)


DNS-323 • 2x Hitachi 500MB • RAID1 • FW1.04 • ext3 • Fonz's v0.5 fun_plug
DNS-325 • 2x WD Green 2TB • RAID1 • FW?.?? • ext3 • Fonz's v0.7 fun_plug

Offline

 

#7 2008-08-11 19:28:11

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: How to compile programs for DNS-323, create fun_plug package

ismora wrote:

I feared this was not possible without using cross-compilation on debian

All of ffp 0.5 is compiled natively on my DNS-323 with the ffp compiler. Also, I don't have Debian.

Offline

 

#8 2008-08-15 15:56:55

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

Just tried to compile NZBGet.

Just check out the source from svn as described on wiki:ffp howto. Follow intructions from README.txt.

Basically:

* run ./Make.sh -F nzbget
* run ./Make.sh nzbget

done.

the build complains when running usr_bin_file.sh : readonly filesystem.

it's trying to make a symbolic link on /usr/bin, that's probable readonly system created by firmware... help!

Hmmm I just remember that this could be an issue because of the different firmware on CH3SNAS (my unit is a CH3SNAS).

Last edited by Opperpanter (2008-08-15 15:58:51)

Offline

 

#9 2008-08-16 18:21:08

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

I think this problem is realted to the read-only filesystem issues on CH3SNAS  as mentioned earlier in the cleanreboot threads: http://dns323.kood.org/forum/t2131-clea … ng%3F.html

I'll look for workarounds!

Offline

 

#10 2008-08-16 18:50:01

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: How to compile programs for DNS-323, create fun_plug package

Opperpanter wrote:

I think this problem is realted to the read-only filesystem issues on CH3SNAS  as mentioned earlier in the cleanreboot threads: http://dns323.kood.org/forum/t2131-clea … ng%3F.html

I'll look for workarounds!

If /usr/bin/file is the only problem, you can try without it.

Another option that always works is to compile in a chroot (for an example, see http://dns323.kood.org/forum/p17544-200 … tml#p17544 )

Offline

 

#11 2008-08-16 20:42:46

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

Thanks, i'll try that!

In the mean while, why did you build nzbget with parchecking disabled?

Offline

 

#12 2008-08-16 20:56:33

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: How to compile programs for DNS-323, create fun_plug package

Opperpanter wrote:

In the mean while, why did you build nzbget with parchecking disabled?

When I compiled nzbget, I didn't even know what it does.

Offline

 

#13 2008-08-17 01:02:11

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

The chroot option is a good one, made quite some steps.

Installed these packages as well: gcc, binutils, uclibc, kernel-headers, libxml2, libiconv, ncurses, make

I also created a symlink called /lib/cpp to /ffp/bin/cpp after installing gcc package.

During the make process I get an error which I couldn't solve myself by using forum/google:

Code:

./Make.sh nzbget/
+ rm -rf /ffp/build/funplug/work/nzbget-0.4.1
+ mkdir -p /ffp/build/funplug/work/nzbget-0.4.1
++ ls /ffp/build/funplug/source/Conf.d/build-env/bin_bash.sh /ffp/build/funplug/source/Conf.d/build-env/rpath.sh /ffp/build/funplug/source/Conf.d/build-env/usr_bin_file.sh /ffp/build/funplug/source/Conf.d/build-env/usr_include.sh
+ for _f in '$(ls $CONFDIR/build-env/*.sh 2>/dev/null)'
+ . /ffp/build/funplug/source/Conf.d/build-env/bin_bash.sh
++ check_required_files /ffp/bin/bash
++ for _f in '"$@"'
++ '[' -r /ffp/bin/bash ']'
++ '[' -e /bin/bash ']'
++++ readlink -f /bin/sh
+++ basename /ffp/bin/bash
++ '[' bash '!=' bash ']'
+ for _f in '$(ls $CONFDIR/build-env/*.sh 2>/dev/null)'
+ . /ffp/build/funplug/source/Conf.d/build-env/rpath.sh
++ RPATH=/ffp/lib
++ LDFLAGS_RPATH='-Wl,-rpath -Wl,/ffp/lib'
++ export 'LDFLAGS= -Wl,-rpath -Wl,/ffp/lib'
++ LDFLAGS=' -Wl,-rpath -Wl,/ffp/lib'
+ for _f in '$(ls $CONFDIR/build-env/*.sh 2>/dev/null)'
+ . /ffp/build/funplug/source/Conf.d/build-env/usr_bin_file.sh
++ '[' -e /usr/bin/file ']'
+ for _f in '$(ls $CONFDIR/build-env/*.sh 2>/dev/null)'
+ . /ffp/build/funplug/source/Conf.d/build-env/usr_include.sh
++ check_required_dirs /ffp/include
++ for _d in '"$@"'
++ '[' -d /ffp/include ']'
++ '[' -d /usr/include ']'
+ '[' -r /ffp/build/funplug/source/Conf.d/config.site ']'
+ info '  config.site found'
+ cat
+ export CONFIG_SITE=/ffp/build/funplug/source/Conf.d/config.site
+ CONFIG_SITE=/ffp/build/funplug/source/Conf.d/config.site
+ export CONFIG_SHELL=/bin/bash
+ CONFIG_SHELL=/bin/bash
+ export PATH=/ffp/build/funplug/source/Conf.d/wrappers:/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
+ PATH=/ffp/build/funplug/source/Conf.d/wrappers:/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
+ export TMPDIR=/ffp/build/funplug/work/nzbget-0.4.1/tmp
+ TMPDIR=/ffp/build/funplug/work/nzbget-0.4.1/tmp
+ export TEMPDIR=/ffp/build/funplug/work/nzbget-0.4.1/tmp
+ TEMPDIR=/ffp/build/funplug/work/nzbget-0.4.1/tmp
+ mkdir -p /ffp/build/funplug/work/nzbget-0.4.1/tmp
+ cd /ffp/build/funplug/work/nzbget-0.4.1
+ for _f in '$A'
++ find_distfile nzbget-0.4.1.tar.gz
++ check_required_dirs /ffp/build/funplug/distfiles
++ for _d in '"$@"'
++ '[' -d /ffp/build/funplug/distfiles ']'
++ for _ext in .tar.bz2 .tar.gz .tgz .tar '""'
++ '[' -r /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz.tar.bz2 ']'
++ for _ext in .tar.bz2 .tar.gz .tgz .tar '""'
++ '[' -r /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz.tar.gz ']'
++ for _ext in .tar.bz2 .tar.gz .tgz .tar '""'
++ '[' -r /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz.tgz ']'
++ for _ext in .tar.bz2 .tar.gz .tgz .tar '""'
++ '[' -r /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz.tar ']'
++ for _ext in .tar.bz2 .tar.gz .tgz .tar '""'
++ '[' -r /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz ']'
++ echo /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz
++ break
+ f=/ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz
+ '[' -d /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz ']'
+ '[' -r /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz ']'
++ basename /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz
+ info '  unpack nzbget-0.4.1.tar.gz ...'
+ cat
+ case "$f" in
+ tar xzf /ffp/build/funplug/distfiles/nzbget-0.4.1.tar.gz
+ '[' -r /ffp/build/funplug/source/nzbget/unpack.sh ']'
+ '[' -n ' nzbget-0.4.1.tar.gz' ']'
+ check_required_dirs /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1
+ for _d in '"$@"'
+ '[' -d /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1 ']'
+ mkdir -p /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1 /ffp/build/funplug/work/nzbget-0.4.1/pkg
+ '[' -r /ffp/build/funplug/source/nzbget/patch-series ']'
+ cd /ffp/build/funplug/work/nzbget-0.4.1
++ find . -name config.sub -o -name config.guess
+ for _f in '$(find . -name config.sub -o -name config.guess)'
+ info '  updating ./nzbget-0.4.1/config.guess ...'
+ cat
+ mv ./nzbget-0.4.1/config.guess ./nzbget-0.4.1/config.guess.orig
++ basename ./nzbget-0.4.1/config.guess
+ cat /ffp/build/funplug/source/Conf.d/config.guess
+ chmod 0755 ./nzbget-0.4.1/config.guess
+ touch -r ./nzbget-0.4.1/config.guess.orig ./nzbget-0.4.1/config.guess
touch: invalid option -- r
BusyBox v1.10.1 (2008-04-19 12:53:41 CEST) multi-call binary

Usage: touch [-c] FILE [FILE...]

Update the last-modified date on the given FILE[s]

Options:
    -c    Do not create any files

+ true
+ for _f in '$(find . -name config.sub -o -name config.guess)'
+ info '  updating ./nzbget-0.4.1/config.sub ...'
+ cat
+ mv ./nzbget-0.4.1/config.sub ./nzbget-0.4.1/config.sub.orig
++ basename ./nzbget-0.4.1/config.sub
+ cat /ffp/build/funplug/source/Conf.d/config.sub
+ chmod 0755 ./nzbget-0.4.1/config.sub
+ touch -r ./nzbget-0.4.1/config.sub.orig ./nzbget-0.4.1/config.sub
touch: invalid option -- r
BusyBox v1.10.1 (2008-04-19 12:53:41 CEST) multi-call binary

Usage: touch [-c] FILE [FILE...]

Update the last-modified date on the given FILE[s]

Options:
    -c    Do not create any files

+ true
++ ls /ffp/build/funplug/source/nzbget/patch-prefix.sh
+ for _f in '$(ls $X/patch*.sh 2>/dev/null)'
++ basename /ffp/build/funplug/source/nzbget/patch-prefix.sh
+ info '  patch-prefix.sh ...'
+ cat
+ cd /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1
+ . /ffp/build/funplug/source/nzbget/patch-prefix.sh
++ sed -i -e '/nzbget.conf/ s@/usr/local/etc@/ffp/etc@' Options.cpp
+ configure_args=
+ '[' -r /ffp/build/funplug/source/nzbget/configure_args ']'
+ '[' -r /ffp/build/funplug/source/nzbget/configure.sh ']'
+ info '  configure.sh ...'
+ cat
+ cd /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1
+ . /ffp/build/funplug/source/nzbget/configure.sh
++ ./configure --disable-parcheck LIBPREF=/ffp
configure: loading site script /ffp/build/funplug/source/Conf.d/config.site
checking for a BSD-compatible install... /ffp/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... arm-unknown-linux-uclibc
checking host system type... arm-unknown-linux-uclibc
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /ffp/bin/grep
checking for egrep... /ffp/bin/grep -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking whether make sets $(MAKE)... (cached) yes
checking for false... /ffp/bin/false
checking for true... /ffp/bin/true
checking for rm... /ffp/bin/rm
checking for ln... /ffp/bin/ln
checking for tar... /ffp/bin/tar
checking for ar... /ffp/bin/ar
checking for make... /ffp/bin/make
checking for cpp... /ffp/bin/cpp
checking for mv... /ffp/bin/mv
checking for mkdir... /ffp/bin/mkdir
checking for cp... /ffp/bin/cp
checking for a BSD-compatible install... /ffp/bin/install -c
checking for library containing pthread_create... -lpthread
checking for library containing socket... none required
checking for library containing inet_addr... none required
checking for library containing gethostbyname_r... none required
checking for library containing hstrerror... none required
checking for getopt_long... yes
checking for stat64... yes
checking for ctime_r... yes, and it takes 2 arguments
checking for gethostbyname_r... yes, and it takes 6 arguments
checking for __FUNCTION__ macro... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking libxml/tree.h usability... yes
checking libxml/tree.h presence... yes
checking for libxml/tree.h... yes
checking for library containing xmlNewNode... -lxml2
checking whether to use curses... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for library containing refresh... -lncurses
checking whether to include code for par-checking... no
checking whether to include all debugging code... no
checking for variadic macros... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
+ '[' -r /ffp/build/funplug/source/nzbget/make.sh ']'
+ '[' -r /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1/Makefile -o -r /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1/makefile ']'
+ info '  make ...'
+ cat
+ cd /ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1
+ make
/ffp/bin/make  all-am
make[1]: Entering directory `/ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1'
g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT ArticleDownloader.o -MD -MP -MF .deps/ArticleDownloader.Tpo -c -o ArticleDownloader.o ArticleDownloader.cpp
mv -f .deps/ArticleDownloader.Tpo .deps/ArticleDownloader.Po
g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT ColoredFrontend.o -MD -MP -MF .deps/ColoredFrontend.Tpo -c -o ColoredFrontend.o ColoredFrontend.cpp
mv -f .deps/ColoredFrontend.Tpo .deps/ColoredFrontend.Po
g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT Connection.o -MD -MP -MF .deps/Connection.Tpo -c -o Connection.o Connection.cpp
mv -f .deps/Connection.Tpo .deps/Connection.Po
g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT Decoder.o -MD -MP -MF .deps/Decoder.Tpo -c -o Decoder.o Decoder.cpp
mv -f .deps/Decoder.Tpo .deps/Decoder.Po
g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT DiskState.o -MD -MP -MF .deps/DiskState.Tpo -c -o DiskState.o DiskState.cpp
mv -f .deps/DiskState.Tpo .deps/DiskState.Po
g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT DownloadInfo.o -MD -MP -MF .deps/DownloadInfo.Tpo -c -o DownloadInfo.o DownloadInfo.cpp
mv -f .deps/DownloadInfo.Tpo .deps/DownloadInfo.Po
g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT Frontend.o -MD -MP -MF .deps/Frontend.Tpo -c -o Frontend.o Frontend.cpp
/ffp/lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h: In instantiation of 'std::deque<FileInfo*, std::allocator<FileInfo*> >':
Frontend.h:40:   instantiated from here
/ffp/lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:613: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [Frontend.o] Error 1
make[1]: Leaving directory `/ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1'
make: *** [all] Error 2

Is there something wrong or am I just missing another package?

Thanks again for the help. I'll post a nice howto when we get it working.

EDIT: Also there's some error on the usage of 'touch' command?

Last edited by Opperpanter (2008-08-17 01:04:45)

Offline

 

#14 2008-08-17 01:15:03

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

Wll, I just couldn't let it go before going to sleep. Gave it another try.

Installed the coreutils package and ran ./Make.sh nzbget/ again.

Result: succesfull completion of the Mke.sh

I'll let you know if the generated package works as well as the nzbget compiled by fonz himself!

Offline

 

#15 2008-08-17 12:51:26

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: How to compile programs for DNS-323, create fun_plug package

Opperpanter wrote:

Code:

g++ -DHAVE_CONFIG_H -I.   -I/ffp/include/libxml2 -I/ffp/include  -O2 -pipe -MT Frontend.o -MD -MP -MF .deps/Frontend.Tpo -c -o Frontend.o Frontend.cpp
/ffp/lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h: In instantiation of 'std::deque<FileInfo*, std::allocator<FileInfo*> >':
Frontend.h:40:   instantiated from here
/ffp/lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:613: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [Frontend.o] Error 1
make[1]: Leaving directory `/ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1'
make: *** [all] Error 2

This one is most likely a kernel bug. Happens from time to time with the firmware kernel. Retrying the compilation sometimes works. The only reliable way, hoewever, seems to be booting a more recent kernel.

Offline

 

#16 2008-08-17 15:38:42

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: How to compile programs for DNS-323, create fun_plug package

fonz wrote:

Opperpanter wrote:

Code:

Frontend.h:40:   instantiated from here
/ffp/lib/gcc/arm-unknown-linux-uclibc/4.1.3/../../../../include/c++/4.1.3/bits/stl_deque.h:613: internal compiler error: Illegal instruction
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make[1]: *** [Frontend.o] Error 1
make[1]: Leaving directory `/ffp/build/funplug/work/nzbget-0.4.1/nzbget-0.4.1'
make: *** [all] Error 2

This one is most likely a kernel bug. Happens from time to time with the firmware kernel. Retrying the compilation sometimes works. The only reliable way, hoewever, seems to be booting a more recent kernel.

hmm oke. Well maybe that explains why another compile try did work. I already thought the coreutils package was not necessary.

The nzbget compiled by myelf works nice by the way. Thanks for the info.

Offline

 

#17 2008-09-18 21:23:59

mastervol
Member
Registered: 2008-09-06
Posts: 81

Re: How to compile programs for DNS-323, create fun_plug package

this sounds interesting ..

SSL is working in the testversion of NZBget 0.5.0
I dont know if Syabas will port this to the NMT, but it is working.

I have tested it allready on the PCH and it works BUT it takes a lot of processing power.
I am able to download with 1400Kb with this version, with SSL I cant get higher then 750Kb/s and the PCH is almost unresponsive when using SSL

source: http://www.networkedmediatank.com/showt … p?tid=7321


DNS-323     F/W: 1.06  H/W: ??  ffp: 0.5  Drives (normal mode): 1 x 1,5 TB Seagate SATA II ST31500341AS, 1 x 250 GB Western Digital SATA I

Offline

 

#18 2010-10-17 23:55:24

WinchKing
Member
Registered: 2007-11-12
Posts: 5

Re: How to compile programs for DNS-323, create fun_plug package

Hye,

I am trying to install Zoph on my DNS-323 or CH3SNAS with fun_plug 0.5. To be able to install Zoph I require Jhead 2.8x.

I could not find a suitable package compatible with DNS-323. I only found jhead-2.7.tgz by Fonz (http://www.inreto.de/dns323/fun-plug/0.3/).
Because this package is not suitable I tried to compile jhead (http://www.sentex.net/~mwandel/jhead/jhead-2.90.tar.gz) according to the tutorial Compiling_software (http://nas-tweaks.net/CH3SNAS:Tutorials … g_software)

mkdir /mnt/HD_a2/ffpbuildenv
cd /mnt/HD_a2/ffpbuildenv
svn co svn://inreto.de/svn/dns323/funplug/trunk .

sh /mnt/HD_a2/ffpbuildenv/chroot.sh
cd /mnt/HD_a2/ffpbuildenv/source/
./Make.sh -F jhead

ERROR

mkdir jhead
cd jhead
cp /mnt/HD_a2/ffpbuildenv/source/joe/* .

nano PR
1
CTRL+O, CTRL+X

nano PV
2.90
CTRL+O, CTRL+X

nano SRC_URI
http://www.sentex.net/~mwandel/jhead/$P.tar.gz
CTRL+O, CTRL+X

sh /mnt/HD_a2/ffpbuildenv/chroot.sh
sh-3.2#cd /mnt/HD_a2/ffpbuildenv/source/
sh-3.2# ./Make.sh -F jhead
* jhead-2.90.tar.gz: Fetch http://www.sentex.net/~mwandel/jhead/jhead-2.90.tar.gz
--2010-10-17 21:56:09--  http://www.sentex.net/~mwandel/jhead/jhead-2.90.tar.gz
Resolving www.sentex.net... 98.159.240.6
Connecting to www.sentex.net|98.159.240.6|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 64390 (63K) [application/x-gzip]
Saving to: `/mnt/HD_a2/ffpbuildenv/distfiles/jhead-2.90.tar.gz'

100%[=======================================================================>] 64,390       141K/s   in 0.4s

2010-10-17 21:56:10 (141 KB/s) - `/mnt/HD_a2/ffpbuildenv/distfiles/jhead-2.90.tar.gz' saved [64390/64390]


sh-3.2#cd /mnt/HD_a2/ffpbuildenv/source/
sh-3.2# ./Make.sh jhead
* jhead-2.90-1
  config.site found
  unpack jhead-2.90.tar.gz ...
  make ...
  destdir ...
sh-3.2#

At first it looks fine, but when I look in the log it does not seem so fine.

tail /mnt/HD_a2/ffpbuildenv/build-logs/jhead*log
+ '[' ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/source/jhead/destdir.sh ']'
+ '[' -r /mnt/HD_a2/ffpbuildenv/work/jhead-2.90/jhead-2.90/Makefile -o -r /mnt/HD_a2/ffpbuildenv/work/jhead-2.90/                                                    jhead-2.90/makefile ']'
+ info '  destdir ...'
+ cat
+ cd /mnt/HD_a2/ffpbuildenv/work/jhead-2.90/jhead-2.90
+ make DESTDIR=/mnt/HD_a2/ffpbuildenv/work/jhead-2.90/pkg install
cp jhead /mnt/HD_a2/ffpbuildenv/work/jhead-2.90/pkg/usr/bin/
cp: cannot create regular file `/mnt/HD_a2/ffpbuildenv/work/jhead-2.90/pkg/usr/bin/': No such file or directory
make: *** [install] Error 1

It seems  the package could not be made. What did I miss or how do I need to do make the package?

Thankx in advance.

Arthur

Last edited by WinchKing (2010-10-17 23:56:01)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB