Right, I'd need to remove -ldl from CFLAGS and add it to the end of the line which reads "$(Q)$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^".
About Qemu versions: The general rule is that always take the latest one. I don't know any reasons why you should not use 1.0 (I'm still using something older in my testing environment, but that is a different thing; when developing SB2, I'm trying to minimize changes i.e. SB2 is the only component which gets regular updates, others are frozen currently. That really simplifies regression testing) Lauri ________________________________ From: scratchbox-users-boun...@lists.scratchbox.org [scratchbox-users-boun...@lists.scratchbox.org] on behalf of ext Russell Keith Davis [rkda...@burninghorse.com] Sent: Tuesday, April 17, 2012 22:53 To: Discussion related to using of Scratchbox Subject: Re: [Scratchbox-users] debootstrap --second-stage fails because of /dev/ mapping On 4/17/2012 3:44 PM, tuxor1...@web.de<mailto: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<mailto: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