[#5214] trunk applications don't build with trunk toolchain due to missing fork()

Document created by Aaronwu Employee on Sep 4, 2013
Version 1Show Document
  • View in full screen mode

[#5214] trunk applications don't build with trunk toolchain due to missing fork()

Submitted By: Robin Getz

Open Date

2009-06-06 13:04:25    

Priority:

Medium     Assignee:

Nobody

Status:

Open     Fixed In Release:

N/A

Found In Release:

2010R1     Release:

trunk

Category:

N/A     Board:

N/A

Processor:

ALL     Silicon Revision:

all

Is this bug repeatable?:

Yes     Resolution:

Assigned (Not Start)

Uboot version or rev.:

any     Toolchain version or rev.:

trunk

App binary format:

N/A     

Summary: trunk applications don't build with trunk toolchain due to missing fork()

Details:

 

I can't build trunk anymore...

 

bfin-uclinux-gcc --version

bfin-uclinux-gcc (ADI-trunk/svn-3407) 4.3.3

 

 

../objects/ditto.o: In function `_open_tty':

../../ncurses-5.7/test/ditto.c:(.text+0x2f4): undefined reference to `_fork'

collect2: ld returned 1 exit status

 

 

Follow-ups

 

--- Robin Getz                                               2009-06-06 15:29:52

Also

 

../../DirectFB-1.2.7/tests/fusion_fork.c: In function ‘main’:

../../DirectFB-1.2.7/tests/fusion_fork.c:130: error: implicit declaration of

function ‘fork’

make[6]: *** [fusion_fork.o] Error 1

 

--- Robin Getz                                               2009-06-06 16:14:41

And another:

 

../../DirectFB-1.2.7/tests/fusion_reactor.c: In function ‘main’:

../../DirectFB-1.2.7/tests/fusion_reactor.c:136: error: implicit declaration of

function ‘fork’

make[6]: *** [fusion_reactor.o] Error 1

 

--- Robin Getz                                               2009-06-06 16:19:19

and another:

 

-D_GNU_SOURCE  -Werror-implicit-function-declaration -c

../../DirectFB-1.2.7/tests/fusion_stream.c

../../DirectFB-1.2.7/tests/fusion_stream.c: In function ‘main’:

../../DirectFB-1.2.7/tests/fusion_stream.c:299: error: implicit declaration of

function ‘fork’

make[6]: *** [fusion_stream.o] Error 1

 

 

--- Robin Getz                                               2009-06-06 16:23:40

And another:

 

/bin/sh ./libtool --mode=link bfin-linux-uclibc-gcc -o build/playwave

build/playwave.lo

-I/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/include/SDL

-D_GNU_SOURCE=1 -D_REENTRANT

-L/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib

-Wl,-rpath,/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib -lSDL

-lpthread build/libSDL_mixer.la

bfin-linux-uclibc-gcc -o build/.libs/playwave build/.libs/playwave.o

-I/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/include/SDL

-D_GNU_SOURCE=1 -D_REENTRANT -Wl,-rpath

-Wl,/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib

-L/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib

build/.libs/libSDL_mixer.so

/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib/libSDL.so -lm -ldl

-lpthread  -Wl,--rpath

-Wl,/home/rgetz/blackfin/trunk/uClinux-dist/staging/usr/lib

build/.libs/libSDL_mixer.so: undefined reference to `_fork'

collect2: ld returned 1 exit status

 

 

--- Robin Getz                                               2009-06-06 16:51:50

../../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'

collect2: ld returned 1 exit status

make[6]: *** [tst_uuid] Error 1

 

./user/e2fsprogs/e2fsprogs-1.41.4/lib/uuid/gen_uuid.c

 

 

--- Robin Getz                                               2009-06-06 17:07:15

../../e2fsprogs-1.41.4/debugfs/htree.c:305: warning: implicit declaration of

function ‘uuid_parse’

        CC ../../e2fsprogs-1.41.4/debugfs/unused.c

        LD debugfs

../lib/libss.a(help.o): In function `ss_help':

../../../e2fsprogs-1.41.4/lib/ss/help.c:109: undefined reference to `_fork'

../lib/libss.a(pager.o): In function `ss_pager_create':

../../../e2fsprogs-1.41.4/lib/ss/pager.c:81: undefined reference to `_fork'

collect2: ld returned 1 exit status

make[6]: *** [debugfs] Error 1

 

 

--- Robin Getz                                               2009-06-06 17:10:45

make[6]: Entering directory

`/home/rgetz/blackfin/trunk/uClinux-dist/user/e2fsprogs/build-e2fsprogs-1.41.4/debugfs'

        LD debugfs

../lib/libss.a(pager.o): In function `ss_pager_create':

../../../e2fsprogs-1.41.4/lib/ss/pager.c:81: undefined reference to `_fork'

collect2: ld returned 1 exit status

make[6]: *** [debugfs] Error 1

 

--- Robin Getz                                               2009-06-06 17:14:58

../../e2fsprogs-1.41.4/misc/logsave.c:141: undefined reference to `_fork'

logsave.o: In function `main':

../../e2fsprogs-1.41.4/misc/logsave.c:267: undefined reference to `_fork'

collect2: ld returned 1 exit status

 

--- Robin Getz                                               2009-06-06 17:24:39

fsck.o: In function `execute':

../../e2fsprogs-1.41.4/misc/fsck.c:497: undefined reference to `_fork'

fsck.o: In function `wait_one':

../../e2fsprogs-1.41.4/misc/fsck.c:647: undefined reference to `_fork'

collect2: ld returned 1 exit status

make[6]: *** [fsck] Error 1

 

--- Robin Getz                                               2009-06-06 17:28:52

        CC ../../e2fsprogs-1.41.4/misc/uuidd.c

../../e2fsprogs-1.41.4/misc/uuidd.c: In function ‘create_daemon’:

../../e2fsprogs-1.41.4/misc/uuidd.c:66: warning: implicit declaration of

function ‘fork’

        LD uuidd

uuidd.o: In function `create_daemon':

../../e2fsprogs-1.41.4/misc/uuidd.c:66: undefined reference to `_fork'

collect2: ld returned 1 exit status

make[6]: *** [uuidd] Error 1

 

 

--- Robin Getz                                               2009-06-11 12:49:49

make[5]: Entering directory

`/home/billy/Projects/blackfin/uclinux-dist/uclinux-dist/lib/alsa-lib/build-alsa-lib-1.0.18/aserver'

/bin/bash ../libtool --tag=CC --mode=link bfin-linux-uclibc-gcc  -pipe -Wall -g

-O2      -mcpu=bf537-0.2  -mcpu=bf537-0.2 -o aserver  aserver.o

../src/libasound.la

bfin-linux-uclibc-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2 -mcpu=bf537-0.2 -o

.libs/aserver aserver.o  ../src/.libs/libasound.so -ldl -lpthread -lrt

../src/.libs/libasound.so: undefined reference to `_fork'

collect2: ld returned 1 exit status

 

In lib/alsa-lib/alsa-lib-1.0.18/src/pcm/pcm_direct.c

 

--- Robin Getz                                               2009-06-11 13:59:34

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'

 

--- Tim Shearer                                              2009-06-17 08:59:32

Hi Robin,  Python also fails to build with the trunk toolchain:

 

libpython2.4.a(posixmodule.o): In function `posix_utime':

../python-2.4.4/Modules/posixmodule.c:2123: warning: the use of LEGACY `utimes'

is discouraged, use `utime'

libpython2.4.a(posixmodule.o): In function `_posix_fork':

../python-2.4.4/Modules/posixmodule.c:(.text+0x1fb8): undefined reference to

`_fork'

collect2: ld returned 1 exit status

make[3]: *** [python] Error 1

 

 

--- Michael Hennerich                                        2009-06-29 06:37:40

ffmpeg build fails also ...

 

bfin-linux-uclibc-gcc

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavdevice

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavformat

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavcodec

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavutil

-mcpu=bf537-0.2     -mcpu=bf537-0.2 -mfdpic -rdynamic -export-dynamic

-Wl,--warn-common

-Wl,-rpath-link,"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavcodec

-Wl,-rpath-link,"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavformat

-Wl,-rpath-link,"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavutil

-g -o ffmpeg_g ffmpeg.o cmdutils.o -lavdevice -lavformat -lavcodec -lavutil -lz

-lm -ldl -ldl

bfin-linux-uclibc-gcc

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavdevice

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavformat

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavcodec

-L"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavutil

-mcpu=bf537-0.2     -mcpu=bf537-0.2 -mfdpic -rdynamic -export-dynamic

-Wl,--warn-common

-Wl,-rpath-link,"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavcodec

-Wl,-rpath-link,"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavformat

-Wl,-rpath-link,"/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build"/libavutil

-g -Wl,-E -o ffserver ffserver.o cmdutils.o -lavdevice -lavformat -lavcodec

-lavutil -lz -lm -ldl -ldl

ffserver.o: In function `start_children':

/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build/../ffmpeg-svn-11114/ffserver.c:379:

undefined reference to `_fork'

ffserver.o: In function `main':

/home/michael/devel/svn/uclinux-dist-2009R1/lib/ffmpeg/build/../ffmpeg-svn-11114/ffserver.c:4437:

undefined reference to `_fork'

collect2: ld returned 1 exit status

make[4]: *** [ffserver] Error 1

 

--- Michael Hennerich                                        2009-06-29 07:53:29

mplayer build fails too ...

 

bfin-linux-uclibc-gcc -o mencoder mencoder.o mp_msg-mencoder.o parser-mecmd.o

xvid_vbr.o asxparser.o codec-cfg.o cpudetect.o edl.o find_sub.o get_path.o

m_config.o m_option.o m_struct.o mpcommon.o parser-cfg.o playtree.o

playtreeparser.o spudec.o sub_cc.o subopt-helper.o subreader.o vobsub.o

unrarlib.o libmpcodecs/libmpencoders.a libmpdemux/libmpmux.a

libmpcodecs/libmpcodecs.a libaf/libaf.a libmpdemux/libmpdemux.a stream/stream.a

libswscale/libswscale.a libvo/libosd.a libavformat/libavformat.a

libavcodec/libavcodec.a libavutil/libavutil.a libpostproc/libpostproc.a

liba52/liba52.a libmpeg2/libmpeg2.a libfaad2/libfaad2.a tremor/libvorbisidec.a

dvdread/libdvdread.a libdvdcss/libdvdcss.a osdep/libosdep.a  -Wl,-z,noexecstack

    -mcpu=bf527-0.2  -lpng -lz -ljpeg -lz -llzo2-lmad -lpthread -ldl -rdynamic

-lm

stream/stream.a(cache2.o): In function `stream_enable_cache':

/home/michael/devel/svn/uclinux-dist-trunk_3/user/blkfin-apps/mplayer/mplayer-svn-25211/stream/cache2.c:279:

undefined reference to `_fork'

collect2: ld returned 1 exit status

make[5]: *** [mencoder] Error 1

make[5]: *** Waiting for unfinished jobs....

command.o: In function `run_command':

/home/michael/devel/svn/uclinux-dist-trunk_3/user/blkfin-apps/mplayer/mplayer-svn-25211/command.c:2887:

undefined reference to `_fork'

stream/stream.a(cache2.o): In function `stream_enable_cache':

/home/michael/devel/svn/uclinux-dist-trunk_3/user/blkfin-apps/mplayer/mplayer-svn-25211/stream/cache2.c:279:

undefined reference to `_fork'

collect2: ld returned 1 exit status

make[5]: *** [mplayer] Error 1

 

--- Peter Meerwald                                           2009-07-10 14:31:08

what's going on?

why is it broken?

any way to circumnavigate?

 

--- Robin Getz                                               2009-07-11 18:39:57

Peter:

 

Have a look at (and follow up in the forums):

http://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?_forum_action=ForumMessageBrowse&thread_id=34487&action=ForumBrowse&forum_id=39

 

--- Robin Getz                                               2009-07-17 16:09:01

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I..

-D_PATH_MODDIR=\"/lib/rsyslog/\" -pthread-DEMBED -D__uClinux__

-I/scratch/bmat/blackfin/uclinux-dist  -mcpu=bf532-0.5  -pipe -Wall -g -O2   

 

-mcpu=bf532-0.5 -W -Wall -Wformat-security -Wshadow -Wcast-align

-Wpointer-arith

-Wmissing-format-attribute -g -c -o rsyslogd-omusrmsg.o `test -f 'omusrmsg.c'

||

echo '../'`omusrmsg.c

../conf.c:35:19: error: dlfcn.h: No such file or directory

bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I..

-D_PATH_MODDIR=\"/lib/rsyslog/\" -pthread-DEMBED -D__uClinux__

-I/scratch/bmat/blackfin/uclinux-dist  -mcpu=bf532-0.5  -pipe -Wall -g -O2   

 

-mcpu=bf532-0.5 -W -Wall -Wformat-security -Wshadow -Wcast-align

-Wpointer-arith

-Wmissing-format-attribute -g -c -o rsyslogd-omfwd.o `test -f 'omfwd.c'|| echo

'../'`omfwd.c

make[6]: *** [rsyslogd-conf.o] Error 1

make[6]: *** Waiting for unfinished jobs....

../omusrmsg.c: In function ‘wallmsg’:

../omusrmsg.c:185: warning: implicit declaration of function ‘fork’

make[6]: Leaving directory

`/scratch/bmat/blackfin/uclinux-dist/user/rsyslog/build'

make[5]: *** [all-recursive] Error 1

make[5]: Leaving directory

`/scratch/bmat/blackfin/uclinux-dist/user/rsyslog/build'

make[4]: *** [all] Error 2

make[4]: Leaving directory

`/scratch/bmat/blackfin/uclinux-dist/user/rsyslog/build'

make[3]: *** [all] Error 2

make[3]: Leaving directory `/scratch/bmat/blackfin/uclinux-dist/user/rsyslog'

make[2]: *** [rsyslog] Error 2

make[2]: Leaving directory `/scratch/bmat/blackfin/uclinux-dist/user'

make[1]: *** [all] Error 2

make[1]: Leaving directory `/scratch/bmat/blackfin/uclinux-dist/user'

make: *** [subdirs] Error 1

 

--- Graf Yang                                                2009-10-29 22:41:31

Can we turn on UCLIBC_HAS_STUBS? This makes the build pass just like using

2009R1.

 

Jie had ported a patch on toolchain trunk,

 

r3417 | jiez | 2009-06-01 15:25:42 +0800 (Mon, 01 Jun 2009) | 2 lines

 

Backport UCLIBC_HAS_STUBS config option from the upstream. This option makes

uClibc provide fork() stub on NOMMU targets. It's default off.

 

--- Mike Frysinger                                           2009-10-29 23:33:14

we're not turning on stubs anymore.  fix the packages in question.

 

--- Graf Yang                                                2009-11-01 23:30:47

I will fix these build issues first.

If any of these Apps can not work, we will fix one by one.

 

--- Mike Frysinger                                           2009-11-02 06:10:29

just make sure to try and build the latest version of a package first and some

of the reported packages here have been fixed already

 

also, i have samba updated locally, so dont spend time on that one either

 

--- Vivi Li                                                  2009-11-05 03:18:26

irda

irda-tools also fails at fork.

 

--

bfin-uclinux-gcc  -Wl,-elf2flt    -mcpu=bf537-0.2 -o irattach irattach.o

util.o

irattach.o: In function `get_module_devices':

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/irda-tools/irattach/irattach.c:400:

undefined reference to `_fork'

collect2: ld returned 1 exit status

--

 

--- Vivi Li                                                  2009-11-05 03:29:15

lib eXosip fails.

 

--

bfin-linux-uclibc-gcc -pipe -Wall -g -mcpu=bf537-0.2 -pthread -DOSIP_MT

-DENABLE_DEBUG -g -DENABLE_TRACE -pipe -Wall -g -mcpu=bf537-0.2 -mcpu=bf537-0.2

-o .libs/sip_reg sip_reg.o  ../src/.libs/libeXosip2.so

-L/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib -losipparser2

-losip2 -lrt -lresolv ^M

sip_reg.o: In function `main':^M

../../libeXosip2-3.3.0/tools/sip_reg.c:273: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [sip_reg] Error 1^M

make[5]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/lib/libeXosip/build-libeXosip2-3.3.0/tools'^M

--

 

--- Vivi Li                                                  2009-11-05 03:32:10

pcmcia-cs fails.

 

--

bfin-uclinux-gcc  -Wl,-elf2flt    -mcpu=bf537-0.2  cardmgr.o yacc_config.o

lex_config.o   -o cardmgr

cardmgr.o: In function `fork_now':

/home/test/work/cruise/checkouts/uclinux-dist/user/pcmcia-cs/cardmgr/cardmgr.c:1305:

undefined reference to `_fork'

collect2: ld returned 1 exit status

make[4]: *** [cardmgr] Error 1

make[4]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/pcmcia-cs/cardmgr'

--

 

--- Vivi Li                                                  2009-11-05 03:36:32

app samba fails.

 

--

bfin-uclinux-gcc  -pipe -Wall -g -O2 -mcpu=bf537-0.2 -D_SAMBA_BUILD_=3

-I/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build/../popt

-I/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build/../iniparser/src

-Iinclude -I../include  -I. -I.. -I../lib/replace -I../lib/talloc

-I../tdb/include -I../libaddns -I../librpc -DHAVE_CONFIG_H

-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DEMBED -D__uClinux__

-I/home/test/work/cruise/checkouts/uclinux-dist -mcpu=bf537-0.2  

-I/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build/../lib

-D_SAMBA_BUILD_=3 -o bin/nmbd nmbd/asyncdns.o nmbd/nmbd.o nmbd/nmbd_become_dmb.o

nmbd/nmbd_become_lmb.o nmbd/nmbd_browserdb.o nmbd/nmbd_browsesync.o

nmbd/nmbd_elections.o nmbd/nmbd_incomingdgrams.o nmbd/nmbd_incomingrequests.o

nmbd/nmbd_lmhosts.o nmbd/nmbd_logonnames.o nmbd/nmbd_mynames.o

nmbd/nmbd_namelistdb.o nmbd/nmbd_namequery.o nmbd/nmbd_nameregister.o

nmbd/nmbd_namerelease.o nmbd/nmbd_nodestatus.o nmbd/nmbd_packets.o

nmbd/nmbd_processlogon.o nmbd/nmbd_responserecordsdb.o nmbd/nmbd_sendannounce.o

nmbd/nmbd_serverlistdb.o nmbd/nmbd_subnetdb.o nmbd/nmbd_winsproxy.o

nmbd/nmbd_winsserver.o nmbd/nmbd_workgroupdb.o nmbd/nmbd_synclists.o dynconfig.o

param/loadparm.o param/params.o lib/sharesec.o libsmb/clientgen.o

libsmb/cliconnect.o libsmb/clifile.o libsmb/clikrb5.o libsmb/clispnego.o

libsmb/asn1.o libsmb/clirap.o libsmb/clierror.o libsmb/climessage.o

libsmb/clireadwrite.o libsmb/clilist.o libsmb/cliprint.o libsmb/clitrans.o

libsmb/clisecdesc.o libsmb/clidgram.o libsmb/clistr.o libsmb/cliquota.o

libsmb/clifsinfo.o libsmb/clidfs.o libsmb/smberr.o libsmb/credentials.o

libsmb/pwd_cache.o libsmb/clioplock.o libsmb/errormap.o libsmb/clirap2.o

libsmb/doserr.o rpc_parse/parse_prs.o rpc_parse/parse_misc.o

rpc_parse/parse_sec.o libsmb/nterr.o libsmb/dcerpc_err.o libsmb/smbdes.o

libsmb/smbencrypt.o libsmb/ntlm_check.o libsmb/ntlmssp.o libsmb/ntlmssp_parse.o

libsmb/ntlmssp_sign.o libsmb/unexpected.o libsmb/namecache.o libsmb/nmblib.o

libsmb/namequery.o libsmb/conncache.o libads/dns.o libads/kerberos.o

libads/ads_status.o profile/profile.o lib/replace/replace.o

lib/replace/snprintf.o lib/replace/dlfcn.o lib/replace/strptime.o

lib/talloc/talloc.o lib/version.o lib/charcnv.o lib/debug.o lib/fault.o

lib/interface.o lib/md4.o lib/interfaces.o lib/pidfile.o lib/signal.o

lib/system.o lib/sendfile.o lib/time.o lib/ufc.o lib/genrand.o lib/username.o

lib/util_pw.o lib/access.o lib/smbrun.o lib/bitmap.o lib/crc32.o lib/dprintf.o

lib/xfile.o lib/wins_srv.o lib/util_str.o lib/clobber.o lib/util_sid.o

lib/util_uuid.o lib/util_unistr.o lib/util_file.o lib/data_blob.o lib/util.o

lib/util_sock.o lib/sock_exec.o lib/util_sec.o lib/substitute.o lib/fsusage.o

lib/ms_fnmatch.o lib/select.o lib/messages.o lib/tallocmsg.o lib/dmallocmsg.o

libsmb/smb_signing.o lib/md5.o lib/hmacmd5.o lib/arc4.o lib/iconv.o

nsswitch/wb_client.o nsswitch/wb_common.o lib/pam_errors.o intl/lang_tdb.o

lib/adt_tree.o lib/gencache.o tdb/common/tdb.o tdb/common/dump.o

tdb/common/error.o tdb/common/freelist.o tdb/common/freelistcheck.o

tdb/common/io.o tdb/common/lock.o tdb/common/open.o tdb/common/transaction.o

tdb/common/traverse.o lib/util_tdb.o tdb/common/tdbback.o lib/module.o

lib/events.o lib/ldap_escape.o  modules/CP850.o modules/CP437.o lib/secdesc.o

lib/util_seaccess.o lib/secace.o lib/secacl.o libads/krb5_errs.o

lib/system_smbd.o lib/audit.o lib/dummysmbd.o lib/dummyroot.o passdb/secrets.o

passdb/machine_sid.o lib/popt_common.o -Wl,-elf2flt -mcpu=bf537-0.2

-Wl,--export-dynamic -lcrypt -lresolv popt/findme.o popt/popt.o

popt/poptconfig.o popt/popthelp.o popt/poptparse.o  ^M

Linking bin/swat^M

lib/system.o: In function `sys_fork':^M

../lib/system.c:1325: undefined reference to `_fork'^M

lib/sock_exec.o: In function `sock_exec':^M

../lib/sock_exec.c:105: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [bin/nmbd] Error 1^M

make[5]: *** Waiting for unfinished jobs....^M

modules/vfs_default.o: In function `vfswrap_ntimes':^M

../modules/vfs_default.c:631: warning: the use of LEGACY `utimes' is

discouraged, use `utime'^M

lib/system.o: In function `sys_fork':^M

../lib/system.c:1325: undefined reference to `_fork'^M

lib/sock_exec.o: In function `sock_exec':^M

../lib/sock_exec.c:105: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [bin/smbd] Error 1^M

web/startstop.o: In function `start_winbindd':^M

../web/startstop.c:73: undefined reference to `_fork'^M

web/startstop.o: In function `start_nmbd':^M

../web/startstop.c:53: undefined reference to `_fork'^M

web/startstop.o: In function `start_smbd':^M

../web/startstop.c:33: undefined reference to `_fork'^M

lib/system.o: In function `sys_fork':^M

../lib/system.c:1325: undefined reference to `_fork'^M

lib/sock_exec.o: In function `sock_exec':^M

../lib/sock_exec.c:105: undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [bin/swat] Error 1^M

make[5]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/samba/samba-3.0.25a/source/build'^M

--

 

--- Vivi Li                                                  2009-11-08 21:28:14

App oggplay fails.

 

--

bfin-linux-uclibc-gcc -pipe -Wall -g -O2      -mcpu=bf537-0.2 -Wall

-DPACKAGE=\"libvorbisidec\" -DVERSION=\"1.0.2\"

-DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -D_REENTRANT -DUSE_MEMORY_H

-fsigned-char -I. -DEMBED -D__uClinux__

-I/home/test/work/cruise/checkouts/uclinux-dist  -mcpu=bf537-0.2 -ITremor  -c -o

ivorbisfile_example.o ivorbisfile_example.c^M

ivorbisfile_example.c: In function ‘main’:^M

ivorbisfile_example.c:72: warning: implicit declaration of function

‘ioctl’^M

bfin-linux-uclibc-gcc     -mcpu=bf537-0.2 -o ivorbisfile_example

ivorbisfile_example.o libvorbisidec.a ^M

make[4]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/oggplay/Tremor'^M

bfin-linux-uclibc-gcc     -mcpu=bf537-0.2  oggplay.o Tremor/libvorbisidec.a 

-o oggplay^M

oggplay.o: In function `play_one':^M

/home/test/work/cruise/checkouts/uclinux-dist/user/oggplay/oggplay.c:672:

undefined reference to `_fork'^M

oggplay.o: In function `main':^M

/home/test/work/cruise/checkouts/uclinux-dist/user/oggplay/oggplay.c:896:

undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[3]: *** [oggplay] Error 1^M

make[3]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/oggplay'

--

 

--- Vivi Li                                                  2009-11-08 23:18:49

App linphone fails.

 

--

/bin/sh ../libtool --tag=CC --mode=link bfin-linux-uclibc-gcc  -DIN_LINPHONE

-DENABLE_TRACE -D_ORTP_SOURCE   -DOSIP_MT

-I/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/include   -pipe

-Wall -g -O2      -mcpu=bf537-0.2 -fno-strict-aliasing -ffast-math -mfast-fp

-Wl,--defsym,__stacksize=0x40000  -mcpu=bf537-0.2 -o linphonec  linphonec.o

commands.o ../coreapi/liblinphone.la -lreadline -lncurses

../mediastreamer2/src/libmediastreamer.la ../oRTP/src/libortp.la

-L/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib -lspeex -lm 

-L/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib -losipparser2

-losip2   ^M

shell.o: In function `spawn_linphonec':^M

/home/test/work/cruise/checkouts/uclinux-dist/user/linphone/linphone-3.1.2/console/shell.c:174:

undefined reference to `_fork'^M

collect2: ld returned 1 exit status^M

make[5]: *** [linphonecsh] Error 1^M

make[5]: *** Waiting for unfinished jobs....^M

make[5]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/linphone/build-linphone-3.1.2/console'^M

make[4]: *** [install-recursive] Error 1^M

make[4]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/linphone/build-linphone-3.1.2'^M

--

 

--- Graf Yang                                                2009-11-09 03:55:49

The newly reported compile issues of linphone, oggplay, samba are fixed.

 

--- Vivi Li                                                  2009-11-15 22:52:00

Build btsco fail:

--

bfin-linux-uclibc-gcc -pipe -Wall -g -O2 -mcpu=bf537-0.2

-I/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/include

-mcpu=bf537-0.2 -o headsetd headsetd.o daemon.o states.o sdp.o volctl.o dbus.o

-L/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/btsco/build-btsco-0.5/sbc/

-L/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib

/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib/libasound.so -lrt

-lm -ldl -lpthread

/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib/libbluetooth.so

-Wl,--rpath -Wl,/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib

-Wl,--rpath -Wl,/home/test/work/cruise/checkouts/uclinux-dist/staging/usr/lib

headsetd.o: In function `main':

/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/btsco/btsco-0.5/alsa-plugins/headsetd/headsetd.c:58:

undefined reference to `_fork'^M

collect2: ld returned 1 exit status

make[7]: *** [headsetd] Error 1

make[7]: Leaving directory

`/home/test/work/cruise/checkouts/uclinux-dist/user/blkfin-apps/btsco/build-btsco-0.5/alsa-plugins/headsetd'

--

 

--- Graf Yang                                                2010-01-08 05:22:58

The btsco fork issue is fixed on trunk.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes