Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ubuntu 7.10 + derelictsdl + derelictsdlnet + Tango + dsss

Moderators: kris

Posted: 03/04/08 10:22:22

that combination produces these errors if I try to compile my source code:

http://trac2.assembla.com/neiderra2/ticket/51

you see, there are errors correlated with Tango.

maybe that's all because of wrong installation..

i have downloaded the old bundle of dsss-0.74+tango-0.99.4+gdc, then installed it and fixed: 1) that error in gdmd script ($header=1), 2) the environment setting in ...dsss-install-path.../etc/rebuild/default I've changed the gdc-posix to gdc-posix-tango.

only after that fixes I finally 'dsss net installed' derelict*, minid, etc... and 'rebuild' finally stopped thinking that it uses phobos as default lib.

P.S. under dmd/tango/windows everything is ok.

sources: http://trac2.assembla.com/neiderra2/browser

Author Message

Posted: 03/04/08 12:08:24

I've already tried -L-ldl, actually, the errors are the output of 'rebuild gserver.d -L-ldl' command, look:

without -L-ldl:

jetbird@jetbird-desktop:~/workspace/d/spaceshigh$ rebuild gserver.d .text._D5tango4util10collection4impl16AbstractIterator47__T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb' referenced in section .text.t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb[t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb]' of ./spaceshigh.world.o: defined in discarded section `.text._D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb[_D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb]' of ./spaceshigh.world.o .text._D5tango4util10collection4impl16AbstractIterator47__T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb' referenced in section .text.t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb[t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb]' of ./spaceshigh.world.o: defined in discarded section `.text._D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb[_D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb]' of ./spaceshigh.world.o .text._D5tango4util10collection4impl16AbstractIterator47__T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk' referenced in section .text.t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk[t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk]' of ./spaceshigh.world.o: defined in discarded section `.text._D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk[_D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk]' of ./spaceshigh.world.o /home/jetbird/sdk/d/dsss/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libDerelictUtil.a(derelict.util.loader.o): In function `_D8derelict4util6loader22Platform_LoadSharedLibFAaZC8derelict4util6loader9SharedLib': loader.d:(.text+0x33f): undefined reference to `dlopen' /home/jetbird/sdk/d/dsss/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libDerelictUtil.a(derelict.util.loader.o): In function `_D8derelict4util6loader24Platform_UnloadSharedLibFC8derelict4util6loader9SharedLibZv': loader.d:(.text+0x414): undefined reference to `dlclose' /home/jetbird/sdk/d/dsss/bin/../lib/gcc/i686-pc-linux-gnu/4.1.2/../../../libDerelictUtil.a(derelict.util.loader.o): In function `_D8derelict4util6loader16Platform_GetProcFC8derelict4util6loader9SharedLibAaZPv': loader.d:(.text+0x44c): undefined reference to `dlsym' collect2: ld returned 1 exit status

with -L-ldl

jetbird@jetbird-desktop:~/workspace/d/spaceshigh$ rebuild gserver.d -L-ldl .text._D5tango4util10collection4impl16AbstractIterator47__T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb' referenced in section .text.t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb[t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb]' of ./spaceshigh.world.o: defined in discarded section `.text._D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb[_D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator4moreMFZb]' of ./spaceshigh.world.o .text._D5tango4util10collection4impl16AbstractIterator47__T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb' referenced in section .text.t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb[t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb]' of ./spaceshigh.world.o: defined in discarded section `.text._D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb[_D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9corruptedMFZb]' of ./spaceshigh.world.o .text._D5tango4util10collection4impl16AbstractIterator47__T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk' referenced in section .text.t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk[t24D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk]' of ./spaceshigh.world.o: defined in discarded section `.text._D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk[_D5tango4util10collection4impl16AbstractIterator47T16AbstractIteratorTC10spaceshigh5units4UnitZ16AbstractIterator9remainingMFZk]' of ./spaceshigh.world.o collect2: ld returned 1 exit status

Posted: 03/04/08 22:20:45

Sorry, I just noticed the dl symbols at first.

This is an old problem which I believe is (more or less at least) fixed in DMD 1.024. GDC 0.24 is sadly rather old, and so it may be more fruitful testing with a later version (latest svn is typically the one most people use if they have the opportunity).

The issue is related to templates and how they are represented in libraries. I am a bit confused as to why you get this with GDC though, as it was supposed to be a DMD only issue. You could look at #631 which has a workaround suggested for a similar issue, or http://d.puremagic.com/issues/show_bug.cgi?id=1508 for the Bugzilla report on DMD.