/usr/lib/libldc.so: undefined reference to `ldc::ldc_version'

Konstantinos Margaritis markos at freevec.org
Fri Apr 4 10:09:55 PDT 2014


Hi all,

Trying to write a simple project (using 0.13-alpha2) that uses the
libldc.so (this is actually from the Debian package ldc).

$ make
rdmd --build-only --chatty -O2 -w -version=VibeLibeventDriver -debug
-L-lssl -L-lcrypto -L-levent -L-lldc -oftest test.d
stat /tmp/.rdmd-1000
stat /tmp/.rdmd-1000/rdmd-test.d-F4B94AE57773E24968FE4B80E626AD8D
stat /tmp/.rdmd-1000/rdmd-test.d-F4B94AE57773E24968FE4B80E626AD8D/rdmd.deps
read /tmp/.rdmd-1000/rdmd-test.d-F4B94AE57773E24968FE4B80E626AD8D/rdmd.deps
stat test.d stat /usr/include/d/common/deimos/openssl/evp.d
stat /usr/include/d/common/deimos/event2/buffer.d
stat /usr/include/d/common/vibe/core/drivers/libevent2.d
stat /usr/include/d/common/vibe/inet/message.d
stat /usr/include/d/common/vibe/stream/operations.d
stat /usr/include/d/common/deimos/openssl/opensslconf.d
stat /usr/include/d/common/vibe/http/rest.d
stat /usr/include/d/common/deimos/openssl/ts.d
stat /usr/include/d/common/vibe/db/mongo/collection.d
stat /usr/include/d/common/deimos/openssl/tls1.d
stat /usr/include/d/common/vibe/data/bson.d
stat /usr/include/d/common/deimos/openssl/pqueue.d
stat /usr/include/d/common/vibe/utils/string.d
stat /usr/include/d/common/vibe/web/rest.d
stat /usr/include/d/common/deimos/openssl/objects.d
stat /usr/include/d/common/vibe/http/server.d
stat /usr/include/d/common/deimos/openssl/conf.d
stat /usr/include/d/common/vibe/core/concurrency.d
stat /usr/include/d/common/vibe/db/mongo/database.d
stat /usr/include/d/common/vibe/core/task.d
stat /usr/include/d/common/vibe/db/mongo/client.d
stat /usr/include/d/common/deimos/openssl/ssl23.d
stat /usr/include/d/common/vibe/textfilter/markdown.d
stat test2.d
'ldmd2' '-O2' '-w' '-version=VibeLibeventDriver' '-debug' '-L-lssl'
'-L-lcrypto' '-L-levent' '-L-lldc' '-v' '-o-' 'test.d' '-I.'
read /tmp/.rdmd-1000/rdmd-test.d-F4B94AE57773E24968FE4B80E626AD8D/rdmd.deps
stat /tmp/.rdmd-1000/rdmd-test.d-F4B94AE57773E24968FE4B80E626AD8D/.built
stat test 'ldmd2'
'@/tmp/.rdmd-1000/rdmd-test.d-F4B94AE57773E24968FE4B80E626AD8D/rdmd.rsp' /usr/lib/libldc.so:
undefined reference to `ldc::ldc_version'
collect2: error: ld returned
1 exit status Error: /usr/bin/gcc failed with status: 1
make: *** [emporium] Error 1

If I remove -L-lldc it compiles a static binary which works just fine
but I thought I'd try to make the binary smaller.

Any ideas?

Konstantinos

PS. I've created debian packages (source only) of
openssl/libevent/vibe.d, which I will be uploading to the archive very
soon, just need to finish some typical stuff (licenses, etc).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-ldc/attachments/20140404/4d5749f1/attachment.sig>


More information about the digitalmars-d-ldc mailing list