2009-06-11 13:37:37 "undefined reference to '_fork'" with Dropbear and e2fsprogs
Tim Shearer (UNITED STATES)
Message: 75551
I'm using todays trunk checkout, compiling for the cm-bf537e.
After enabling dropbear and fsck within uclinux-dist I'm getting compilation errors caused by a fork() call. I can get around the dropbear issue by building with DEBUG_NOFORK, but fsck is a little more problematic.
I'm using the trunk toolchain, which I built form source at the beginning of the week.
Dropbear:
make[5]: Entering directory `home/user/blackfin-sources/uclinux-dist/user/dropbear/build-dropbear-0.52'
bfin-linux-uclibc-gcc -mcpu=bf537-0.2 -o dropbearmulti dbmulti.o atomicio.o bignum.o buffer.o circbuffer.o cli-algo.o cli-auth.o cli-authinteract.o cli-authpasswd.o cli-authpubkey.o cli-channel.o cli-chansession.o cli-kex.o cli-main.o cli-runopts.o cli-service.o cli-session.o cli-tcpfwd.o common-algo.o common-channel.o common-chansession.o common-kex.o common-runopts.o common-session.o compat.o dbutil.o dropbearconvert.o dropbearkey.o dss.o fake-rfc2553.o gendss.o genrsa.o keyimport.o listener.o loginrec.o packet.o process-packet.o progressmeter.o queue.o random.o rsa.o scp.o scpmisc.o signkey.o sshpty.o svr-agentfwd.o svr-algo.o svr-auth.o svr-authpam.o svr-authpasswd.o svr-authpubkey.o svr-authpubkeyoptions.o svr-chansession.o svr-kex.o svr-main.o svr-runopts.o svr-service.o svr-session.o svr-tcpfwd.o svr-x11fwd.o tcp-accept.o termcodes.o libtomcrypt/libtomcrypt.a libtommath/libtommath.a -lutil -lz -lcrypt
scp.o: In function `sink':
../dropbear-0.52/scp.c:979: warning: the use of LEGACY `utimes' is discouraged, use `utime'
svr-main.o: In function `main_noinetd':
../dropbear-0.52/svr-main.c:272: undefined reference to `_fork'
e2fsprogs:
make[5]: Entering directory `/home/tshearer/blackfin-sources/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.4/lib/e2p'
make[5]: Nothing to be done for `all'.
make[5]: Leaving directory `/home/tshearer/blackfin-sources/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.4/lib/e2p'
making all in lib/uuid
make[5]: Entering directory `/home/tshearer/blackfin-sources/uclinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.4/lib/uuid'
LD tst_uuid
../../lib/libuuid.a(gen_uuid.o): In function `get_uuid_via_daemon':
../../../e2fsprogs-1.41.4/lib/uuid/gen_uuid.c:461: undefined reference to `_fork'
If anyone has any suggestions I'd be grateful!
Many thanks,
Tim
QuoteReplyEditDelete
2009-06-11 14:00:53 Re: "undefined reference to '_fork'" with Dropbear and e2fsprogs
Robin Getz (UNITED STATES)
Message: 75552
Tim:
Have a look at:
blackfin.uclinux.org/gf/project/uclinux-dist/forum/?_forum_action=ForumMessageBrowse&thread_id=34487&action=ForumBrowse&forum_id=39
Its the same issue. I added dropbear to the bug report, but I already noticed e2fsprogs.
-Robin
QuoteReplyEditDelete
2009-06-11 14:49:20 Re: "undefined reference to '_fork'" with Dropbear and e2fsprogs
Tim Shearer (UNITED STATES)
Message: 75554
Many thanks Robin. I'm skirting it for now by using dosfsck.