On 4/17/2012 3:44 PM, tuxor1...@web.de wrote:
I'm helpless about this as well. gcc is correctly called
with -ldl as we can see from the verbose output:
gcc -g -O2 -O2 -g -Wall -W
-I/home/tuxor/sbox2/src/scratchbox2/include
-I/home/tuxor/sbox2/src/scratchbox2/include
-I/home/tuxor/sbox2/src/scratchbox2/luaif/lua-5.1.4/src
-D_GNU_SOURCE=1 -D_LARGEFILE_SOURCE=1
-D_LARGEFILE64_SOURCE=1 -Wall -W -Werror
-I/home/tuxor/sbox2/src/scratchbox2/preload -Ipreload/
-Wmissing-prototypes -Wstrict-prototypes
-I/home/tuxor/sbox2/src/scratchbox2/include -ldl
-Wp,-MT,utils/sb2dctl.o -Wp,-MMD,utils/.sb2dctl.o.d -o
utils/sb2dctl.o -c utils/sb2dctl.c
gcc -g -O2 -O2 -g -Wall -W
-I/home/tuxor/sbox2/src/scratchbox2/include
-I/home/tuxor/sbox2/src/scratchbox2/include
-I/home/tuxor/sbox2/src/scratchbox2/luaif/lua-5.1.4/src
-D_GNU_SOURCE=1 -D_LARGEFILE_SOURCE=1
-D_LARGEFILE64_SOURCE=1 -Wall -W -Werror
-I/home/tuxor/sbox2/src/scratchbox2/preload -Ipreload/
-Wmissing-prototypes -Wstrict-prototypes
-I/home/tuxor/sbox2/src/scratchbox2/include -ldl -o
utils/sb2dctl sb2d/libsupport.o utils/sb2dctl.o
rule_tree/rule_tree_rpc_client.o sblib/sb_log.o
utils/sb2dctl.o: In function
`call_sb2__ruletree_rpc__ping__':
/home/tuxor/sbox2/src/scratchbox2/utils/sb2dctl.c:50:
undefined reference to `dlsym'
utils/sb2dctl.o: In function `main':
/home/tuxor/sbox2/src/scratchbox2/utils/sb2dctl.c:96:
undefined reference to `dlopen'
utils/sb2dctl.o: In function
`call_sb2__ruletree_rpc__init2__':
/home/tuxor/sbox2/src/scratchbox2/utils/sb2dctl.c:45:
undefined reference to `dlsym'
collect2: ld returned 1 exit status
My main machine is a x86_64 Fedora 16 and here it's
building fine using the exact same procedure...
Would you recommend qemu 0.15 or 1.0?
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users
I had similar problems recently and the answer if was given
when querying it was as follows
-----
it's not screwed up... It's a change in GCC that requires
that you do your GNU Make and other build files when linking
correctly. --as-needed is turned on by default and if you're
putting your .so's in front of the .o files in your link
order, it skips things.
----
that a possible solution for you?
bst rgrds
Russell
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users