{"thread":{"id":"33212","subject":"Git build fails on `make`, undefined references in libcrypto.a.","startedAt":"2013-03-18T04:03:37Z","lastAt":"2013-03-18T16:04:17Z","messageCount":3,"participants":["zero modulo","Konstantin Khomoutov"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"211544","messageId":"CAA8xkY==7021SyDmeiOcHMzXbX9L0GgG9yTTED5u1r+tfAPGqg@mail.gmail.com","threadId":"33212","inReplyTo":null,"subject":"Git build fails on `make`, undefined references in libcrypto.a.","fromName":"zero modulo","fromEmail":"zeromodulo@gmail.com","sentAt":"2013-03-18T04:03:37Z","receivedAt":"2013-03-18T04:03:37Z","isPatch":false,"sender":{"key":"zeromodulo@gmail.com","avatar":null},"body":"$ LDFLAGS=\"-L/sandbox/builds/lib\" CPPFLAGS=\"-I/sandbox/builds/include\"\n./configure --prefix=$PREFIX\n\n$ make\n[…]\n/sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':\ndso_dlfcn.c:(.text+0x1b): undefined reference to `dlopen'\ndso_dlfcn.c:(.text+0x31): undefined reference to `dlsym'\ndso_dlfcn.c:(.text+0x3b): undefined reference to `dlclose'\n/sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':\ndso_dlfcn.c:(.text+0x3c1): undefined reference to `dlsym'\ndso_dlfcn.c:(.text+0x4a0): undefined reference to `dlerror'\n/sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':\ndso_dlfcn.c:(.text+0x521): undefined reference to `dlsym'\ndso_dlfcn.c:(.text+0x600): undefined reference to `dlerror'\n/sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':\ndso_dlfcn.c:(.text+0x678): undefined reference to `dlopen'\ndso_dlfcn.c:(.text+0x6e8): undefined reference to `dlclose'\ndso_dlfcn.c:(.text+0x72d): undefined reference to `dlerror'\n/sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':\ndso_dlfcn.c:(.text+0x7e1): undefined reference to `dladdr'\ndso_dlfcn.c:(.text+0x849): undefined reference to `dlerror'\n/sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':\ndso_dlfcn.c:(.text+0x8aa): undefined reference to `dlclose'\ncollect2: error: ld returned 1 exit status\nmake: *** [git-imap-send] Error 1\n"},{"id":"211549","messageId":"20130318072933.GC5434@localhost.localdomain","threadId":"33212","inReplyTo":"CAA8xkY==7021SyDmeiOcHMzXbX9L0GgG9yTTED5u1r+tfAPGqg@mail.gmail.com","subject":"Re: Git build fails on `make`, undefined references in libcrypto.a.","fromName":"Konstantin Khomoutov","fromEmail":"kostix+git@007spb.ru","sentAt":"2013-03-18T07:29:33Z","receivedAt":"2013-03-18T07:29:33Z","isPatch":false,"sender":{"key":"kostix+git@007spb.ru","avatar":null},"body":"On Sun, Mar 17, 2013 at 10:03:37PM -0600, zero modulo wrote:\n\n> $ LDFLAGS=\"-L/sandbox/builds/lib\" CPPFLAGS=\"-I/sandbox/builds/include\"\n> ./configure --prefix=$PREFIX\n> \n> $ make\n> […]\n> /sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':\n> dso_dlfcn.c:(.text+0x1b): undefined reference to `dlopen'\n[...]\n> make: *** [git-imap-send] Error 1\n\nFYI, I've already tried to answer this exact question [1] with no\ncomments from the OP.\n\n1. http://serverfault.com/a/488604/118848\n"},{"id":"211578","messageId":"CAA8xkYmcEqt3Bmd3gJvFVL+HeiJOVgYX_01YQ0FYmMc8RnDpuQ@mail.gmail.com","threadId":"33212","inReplyTo":"20130318072933.GC5434@localhost.localdomain","subject":"Re: Git build fails on `make`, undefined references in libcrypto.a.","fromName":"zero modulo","fromEmail":"zeromodulo@gmail.com","sentAt":"2013-03-18T16:04:17Z","receivedAt":"2013-03-18T16:04:17Z","isPatch":false,"sender":{"key":"zeromodulo@gmail.com","avatar":null},"body":"On Mon, Mar 18, 2013 at 1:29 AM, Konstantin Khomoutov\n<kostix+git@007spb.ru> wrote:\n> FYI, I've already tried to answer this exact question [1] with no\n> comments from the OP.\n>\n> 1. http://serverfault.com/a/488604/118848\n\nIt is I who posted that question. :P\n\nI haven't made any comments yet because this issue is still a work in\nprogress. I re-compiled OpenSSL taking into consideration that libdl.a\nprobably wasn't linked properly to libcrypto.a, and have also tried\nre-compiling Git afterward, but with the same errors. I have also\ncreated a .conf file for `ld.so`, and ran `sudo ldconfig` which solved\nsome other issues I was having. Running `ldd msgfmt` revealed that\nrun-time libraries were not being found, and after running `sudo\nldconfig`, `ldd msgfmt` then showed the libgettext .so was linked. So,\nI solved some of my issues, and if there was an issue with statically\nlinked libraries not being found, as in this case, then, I believe\nre-compiling OpenSSL with the proper LDFLAGS and CPPFLAGS would have\nsolved the issue, but they have not.\n\nI'm currently attempting to install GCC 4.7.2, which is having some\nother issues with texinfo 5.1. I can't find the link, but I someone\nsaid it could be the compiler version... since everything else that\nseems like might be the issue isn't fixing it, I'm going to try\nre-compiling OpenSSL with GCC 4.7.2 and see how that goes.\n"}]}