Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I am attempting to build netatalk in a debian chroot using the directions at http://dns323.kood.org/howto:appletalk?s=netatalk .
During the build, I get the following error:
cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -g -Wall -O2 -I../../sys -c asp_attn.c -o asp_attn.o >/dev/null 2>&1 mv -f .libs/asp_attn.lo asp_attn.lo /bin/sh ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -g -Wall -O2 -I../../sys -c -o asp_close.lo `test -f 'asp_close.c' || echo './'`asp_close.c rm -f .libs/asp_close.lo cc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -I../../include -g -Wall -O2 -I../../sys -c asp_close.c -fPIC -DPIC -o .libs/asp_close.lo asp_close.c: In function 'asp_close': asp_close.c:64: 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. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-4.1/README.Bugs>. The bug is not reproducible, so it is likely a hardware or OS problem. make[4]: *** [asp_close.lo] Error 1 make[4]: Leaving directory `/usr/local/src/netatalk/netatalk-2.0.3/libatalk/asp' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/usr/local/src/netatalk/netatalk-2.0.3/libatalk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/netatalk/netatalk-2.0.3' make[1]: *** [all] Error 2 make[1]: Leaving directory `/usr/local/src/netatalk/netatalk-2.0.3' make: *** [debian/stamp-makefile-build] Error 2 debuild: fatal error at line 1228: debian/rules build failed
Has anyone else gotten this error? If so, how have you gotten around it?
Note that if I cd to the directory and run the last command manually, it will work intermittently (sometime it will run without error, other times, not). If I successfully run the command and restart the build, I seem to end up with a similar error further down the line.
Other possibly pertinent information:
DNS 323
Firmware: 1.04
Dual Seagate Barracuda 7200.10 ST3500630AS 500GB Serial ATA 7200RPM
RAID-1
Linux fry 2.6.12.6-arm1 #29 Thu Dec 27 09:59:48 CST 2007 armv5tejl GNU/Linux
Debian "etch" - chroot
Thanks!
Offline
Update - If I remove the -O2 flag from the build, it appears to make the problem go away.
The issue is that I cannot seem to get rid of the O2 when using debuild.
I've tried:
CFLAGS='-Wall -g' DEB_BUILD_OPTIONS=ssl debuild -e CFLAGS='-Wall -g'
but that leaves the O2. How can I rid the build of this flag?
Offline
I received this same error under debian etch and I couldn't figure out any way to fix it, so I tried debian sarge and it compiled just fine. It is an older version of netatalk in sarge, but I tried the same version under etch and it was a no go as well.
Offline
From etch:
Using built-in specs. Target: arm-linux-gnu Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --enable-mpfr --enable-checking=release arm-linux-gnu Thread model: posix gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
Offline
I've seen these internal compiler errors a lot with gcc 4.2, but gcc -4.1 works pretty stable for me (that's why I have 4.1 in ffp-0.5, and not 4.2 or 4.3). It seems Debian has something that triggers this problem even with gcc-4.1. Well, just yesterday, Debian became famous for patching things to death
I've never found out what the reason was, but with a recent kernel even gcc 4.3 works perfectly here. In my case, these errors were not really reproducible and gcc crashed randomly. I could just rerun make (it'll continue where it stopped) and when I did this often enough and with a little luck, it eventually completed the build. I think the Dlink kernel is broken.
Offline
i have the same problem. server_ipc.lo never compiles. Can anyone just post a compiled version with SSL?
p.s. exact same problem with both sarge and etch. firmware 1.05 issue?
Last edited by mikeglass (2008-06-20 23:00:26)
Offline
I really think it would be helpful for someone to compile netatalk with SSL for ffp or optware... I believe it may be a violation of the licenses, which is why you don't see it.
I have tried to do that myself and gave up and went for chrooted debian sarge, but would really appreciate if someone could outline the steps needed to compile netatalk with SSL support for ffp or optware so I can finally delete my debian sarge directory.
Is it even possible?
Offline
haldan wrote:
I really think it would be helpful for someone to compile netatalk with SSL for ffp or optware... [...]
Is it even possible?
db42 and netatalk 2.0.3 seem to compile fine with ffp's gcc-4.1.
http://www.inreto.de/dns323/fun-plug/0.5/packages/
I don't have a Mac, so I didn't test it. Please give it a try and let me know how it went.
Offline
Thanks fonz,
I installed it and it runs, but I get this output in messages
Jun 21 10:52:54 disk daemon.err afpd[2853]: main: atp_open: Address family not supported by protocol
Jun 21 10:52:54 disk daemon.info afpd[2853]: ASIP started on 192.168.10.4:12000(5) (2.0.3)
Jun 21 10:52:54 disk daemon.debug afpd[2853]: uam: loading (/ffp/etc/netatalk/uams/uams_clrtxt.so)
Jun 21 10:52:54 disk daemon.info afpd[2853]: uam: uams_clrtxt.so loaded
Jun 21 10:52:54 disk daemon.debug afpd[2853]: uam: loading (/ffp/etc/netatalk/uams/uams_dhx.so)
Jun 21 10:52:54 disk daemon.info afpd[2853]: uam: uam not found (status=-1)
Jun 21 10:52:54 disk daemon.info afpd[2853]: uam: "Cleartxt Passwrd" available
Jun 21 10:52:54 disk daemon.debug afpd[2853]: Finished parsing Config File
So I looked at uams_dhx.so and it is a link to uams_dhx_passwd.so in the same directory, but that file doesn't exist, hence the error. I'm not sure what issues "atp_open: Address family not supported by protocol" causes, but I'm looking.
Thanks for your work, let me know if this helped.
Offline
"atp_open: Address family not supported by protocol": kernel support. but that should be no different from netatalk inside debian chroot.
I'll look after that uams_dhx_passwd.so.
Offline
I've recompiled with '--with-ssl-dir=/ffp'. That seems to fix the missing uams_dhx_passwd.so.
http://www.inreto.de/dns323/fun-plug/0. … .0.3-2.tgz
Upgrade with funpkg -u netatalk-2.0.3-2.tgz
Offline
Great, that recompile works. I get a strange error in messages that someone may be able to decipher, but it is still working fine with the error.
Jun 21 14:29:20 disk daemon.info afpd[6904]: ipc_write: command: 2, pid: 6904, msglen: 24
Jun 21 14:29:20 disk daemon.info afpd[6780]: ipc_read: command: 2, pid: 6904, len: 24
Jun 21 14:29:20 disk daemon.info afpd[6780]: Setting clientid (len 16) for 6904, boottime
Jun 21 14:29:20 disk daemon.info afpd[6780]: ipc_get_session: len: 24, idlen 16, time
Jun 21 14:29:22 disk daemon.err afpd[6904]: bad function 4C
I added an afpd.sh to /ffp/start and it's a go.
Thanks for compiling that - This is what I found about the error:
afpd[6566][afp_dsi.c:376]: E:AFPDaemon: bad function 4C
afpd[26360][afp_dsi.c:376]: E:AFPDaemon: bad function 4E
afpd[8403][afp_dsi.c:376]: E:AFPDaemon: bad function 4F
These functions are requested by Leopard only. But Apple hasn't updated AFP documentation.
These are guessed as follows.
The 4C is for Spotlight.
The 4E requests directory sync for TimeMachine.
The 4F requests file sync for TimeMachine.
The netatalk 2.1dev has already implemented the 4E.
So its just because Spotlight is trying to index the share. No fix yet.
Offline
4E and 4F are now implemented in 2.1dev
I'm not using debian chroot but ffp and I'm struggling on compiling 2.1-dev as an ffp package.
I've copied the netatalk-2.1-dev.tar.bz2 in ../distfile and launched ./Make netatalk. Doesn't work:
root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/source# ./Make.sh netatalk * netatalk-2.1-dev-1 config.site found unpack netatalk-2.1-dev.tar.bz2 ... destdir-start-files.sh destdir-doinst.sh destdir-descr.sh destdir-checks: check_libs destdir-checks: check_prefix FATAL: /ffp not found in package directory /wd/ffp_packages/inreto/dns323/fun-plug/funplug/work/netatalk-2.1-dev/pkg root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/source#
Any idea?
special conf:
root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/source# cat netatalk/SRC_URI http://downloads.sourceforge.net/$PN/$P.tar.bz2 root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/source# cat netatalk/PR 1 root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/source# cat netatalk/PV 2.1-dev root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/source#
Offline
Thanks for the very quick answer fonz, but sadly it didn't help.
Seems like I miss some packages required for compiling.
For now I've added distcc and kernel headers.
Still investigating...
Offline
Ok, after that my building environment is complete, I successfuly compiled tar just to check everything is fine.
I started to compile current netatalk version from ffp (2.0.4-1) with no errors until I stopped it to obviously gain time.
Now for the 2.1_dev I've seen that there is no configure script in the downloaded archive so I've dug a little and finally ended here:
root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/work/netatalk-2.1.0/netatalk-2.1.0# ./bootstrap + rm -rf autom4te.cache + aclocal -I macros /ffp/bin/m4:configure.in:1094: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1102: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1109: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1110: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1110: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1111: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1112: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1113: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1114: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1114: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1118: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1118: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1118: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1118: cannot close temporary file for diversion: No space left on device /ffp/bin/m4:configure.in:1118: ERROR: copying inserted file: No space left on device /ffp/bin/m4:configure.in:1118: cannot clean temporary file for diversion: No space left on device autom4te: /ffp/bin/m4 failed with exit status: 1 aclocal: autom4te failed with exit status: 1 + exit 1 root@Tiromancino:/wd/ffp_packages/inreto/dns323/fun-plug/funplug/work/netatalk-2.1.0/netatalk-2.1.0#
Seems like somewhere / needs to have a lot more free space but as it is in RAM I don't know what to do.
Fonz, how do you proceed to circumvent that?
Offline
To everyone that did not know it (like me): use chroot.sh in the root of the ffp sources...
Sorry for that Fonz.
BTW is there a comprehensive tutorial on all that somewhere?
Offline
mushanga wrote:
To everyone that did not know it (like me): use chroot.sh in the root of the ffp sources...
Sorry for that Fonz.
BTW is there a comprehensive tutorial on all that somewhere?
alternatively, you can set the TMPDIR environment variable to point somewhere on disk.
http://nas-tweaks.net/CH3SNAS:Tutorials … g_software
Offline
Last (I hope!): I was still missing libtool package and changed the chroot directory in chroot.sh to /mnt/HD_a2/ffp-chroot instead of /ffp-chroot wich still reside in RAM.
Offline
Thanks again Fonz, I did not found this link yet. Already bookmarked
Offline