Git build fails on `make`, undefined references in libcrypto.a.
- From
- zero modulo <zeromodulo@gmail.com>
- Date
- Mar 18, 2013, 04:03 UTC
- Message-ID
- <CAA8xkY==7021SyDmeiOcHMzXbX9L0GgG9yTTED5u1r+tfAPGqg@mail.gmail.com>
$ LDFLAGS="-L/sandbox/builds/lib" CPPFLAGS="-I/sandbox/builds/include" ./configure --prefix=$PREFIX
$ make […] /sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup': dso_dlfcn.c:(.text+0x1b): undefined reference to `dlopen' dso_dlfcn.c:(.text+0x31): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x3b): undefined reference to `dlclose' /sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func': dso_dlfcn.c:(.text+0x3c1): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x4a0): undefined reference to `dlerror' /sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': dso_dlfcn.c:(.text+0x521): undefined reference to `dlsym' dso_dlfcn.c:(.text+0x600): undefined reference to `dlerror' /sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': dso_dlfcn.c:(.text+0x678): undefined reference to `dlopen' dso_dlfcn.c:(.text+0x6e8): undefined reference to `dlclose' dso_dlfcn.c:(.text+0x72d): undefined reference to `dlerror' /sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr': dso_dlfcn.c:(.text+0x7e1): undefined reference to `dladdr' dso_dlfcn.c:(.text+0x849): undefined reference to `dlerror' /sandbox/builds/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': dso_dlfcn.c:(.text+0x8aa): undefined reference to `dlclose' collect2: error: ld returned 1 exit status make: *** [git-imap-send] Error 1