[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Linking modules in MB problem




I am trying to create a linked library (Sofia-SIP libraries) within the
./petalinux-dist/lib tree. When trying to link to those libraries it
errors out with undefines (see below). Using mb-linux-nm shows the
modules are there (see below). Following is the makefile.
thanks for the help.............chris

make ERRORS.............

mb-linux-gcc -L/petalinux-dist/lib/sofia-sip/libsofia-sip-ua/.libs \
-lsofia-sip-ua -lpthread -o responder -I/usr/include \
-g -Wall inflight.o handlers.o hash.o config.o responder.c
In file included from responder.c:8:
/usr/include/pthread.h:653: warning: ‘__regparm__’ attribute directive
ignored
/tmp/ccxVGAQt.o: In function `EventCallBack':
/petalinux-dist/user/responder/responder.c:220: undefined reference to
`su_root_break'

MB-LINUX-NM check............
mb-linux-nm
/petalinux-dist/lib/sofia-sip/libsofia-sip-ua/.libs/libsofia-sip-ua.a |
grep su_root_break
000002d4 T su_root_break
U su_root_break

MAKEFILE contents.................
responder: responder.c handlers.o Makefile common.h config.o hash.o
inflight.o
$(CC) $(LDLIBS) -L$(ROOTDIR)/lib/sofia-sip/libsofia-sip-ua/.libs
-lsofia-sip-ua -lpthread -o responder -I/usr/include \
-g -Wall inflight.o handlers.o hash.o config.o responder.c
romfs:
$(ROMFSINST) -e CONFIG_USER_INITIATORRESPONDER /bin/responder



Quick access to Windows Live and your favorite MSN content with Internet Explorer 8.