On 06/02/2013 06:20 PM, Jonathan M Davis wrote:

I don't believe that it's not an ldconfig problem. It's the fact that there's a
libphobos2.so and not a libphobos2.so.0.63. It's the exact same problem that
the rpm and deb files are having. dmd.conf already makes it so that the linker
looks in the right place.

- Jonathan M Davis


Aha! you need to put -defaultlib=libphobos2.so for compiling the executable too!

and now it complains about not having libcurl-gnutls, which doesn't even exist in fedora, so

ln -s /usr/lib64/libcurl.so.4 /usr/lib64/libcurl-gnutls.so.4

then I get

/home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_global_init@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_easy_cleanup@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_slist_append@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_easy_init@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_easy_pause@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_slist_free_all@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_easy_duphandle@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_easy_strerror@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_easy_perform@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_global_cleanup@CURL_GNUTLS_3' /home/ellery/Downloads/dmd2/linux/bin64/../lib64/libphobos2.so: undefined reference to `curl_easy_setopt@CURL_GNUTLS_3'


So I concede the point about ldconfig (I'm thinking what I used was LD_LIBRARY_PATH)


hey! the rpm behaves the same way! Maybe building a fedora package on ubuntu is in fact a terrible idea!

Reply via email to