seem LIBS=-ldl working, i'll try pkg-config latter without OpenSSL
2014/1/11 Dan Fandrich <[email protected]> > On Fri, Jan 10, 2014 at 05:39:38PM +0700, Dung Nguyen wrote: > > seem this file missing, i had try install libldap2-dev but still the > error > > exists :( > > configure:20482: result: no > > configure:20495: checking for ldap_ssl.h > > configure:20537: gcc -c -O2 -Wno-system-headers conftest.c >&5 > > conftest.c:72:22: fatal error: ldap_ssl.h: No such file or directory > > #include <ldap_ssl.h> > > ^ > > That's a red herring as it's in the LDAP check, not the OpenSSL > check. Here's the problem: > > configure:21646: checking for SSL_connect in -lssl > configure:21668: gcc -o conftest -O2 -Wno-system-headers > -I/usr/local/ssl/include -L/usr/local/ssl/lib > +conftest.c -lssl -lcrypto -lssl -lcrypto -llber -lldap -lz >&5 > /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function > `dlfcn_globallookup': > dso_dlfcn.c:(.text+0x15): undefined reference to `dlopen' > dso_dlfcn.c:(.text+0x2b): undefined reference to `dlsym' > dso_dlfcn.c:(.text+0x35): undefined reference to `dlclose' > /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func': > dso_dlfcn.c:(.text+0x381): undefined reference to `dlsym' > dso_dlfcn.c:(.text+0x460): undefined reference to `dlerror' > /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var': > dso_dlfcn.c:(.text+0x4e1): undefined reference to `dlsym' > dso_dlfcn.c:(.text+0x5c0): undefined reference to `dlerror' > /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load': > dso_dlfcn.c:(.text+0x630): undefined reference to `dlopen' > dso_dlfcn.c:(.text+0x6a0): undefined reference to `dlclose' > dso_dlfcn.c:(.text+0x6df): undefined reference to `dlerror' > /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function > `dlfcn_pathbyaddr': > dso_dlfcn.c:(.text+0x788): undefined reference to `dladdr' > dso_dlfcn.c:(.text+0x7d9): undefined reference to `dlerror' > /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload': > dso_dlfcn.c:(.text+0x834): undefined reference to `dlclose' > collect2: error: ld returned 1 exit status > configure:21668: $? = 1 > > For some reason, one of those libraries requires libdl and it's not > being pulled in. It would probably work if you specify LIBS=-ldl on your > configure command-line, but it would also be good to find out why it's > needed. > My first guess was one of the LDAP libraries (which isn't using > pkg-config to find the dependencies) but the config log shows it's actually > OpenSSL. That means that its pkgconfig file is invalid if it's missing > that library. If you can confirm that, it would be good to report that > problem > upstream. > > > > > 2014/1/8 Dan Fandrich <[email protected]> > > > > On Wed, Jan 08, 2014 at 09:57:39AM +0700, Dung Nguyen wrote: > > > env PKG_CONFIG_PATH=/usr/local/ssl/lib/pkgconfig ./configure > --with-ssl > > > env PKG_CONFIG_PATH=/opt/OpenSSL/lib/pkgconfig ./configure > --with-ssl > > > > > > also result in error > > > > > > checking whether to enable iOS/Mac OS X native SSL/TLS... no > > > checking for pkg-config... /usr/bin/pkg-config > > > checking for openssl options with pkg-config... found > > > configure: pkg-config: SSL_LIBS: "-lssl -lcrypto " > > > configure: pkg-config: SSL_LDFLAGS: "-L/usr/local/ssl/lib " > > > configure: pkg-config: SSL_CPPFLAGS: "-I/usr/local/ssl/include " > > > > These flags all look reasonable. > > > > > checking for CRYPTO_lock in -lcrypto... yes > > > > This shows that it's finding the crypto library just fine. > > > > > checking for SSL_connect in -lssl... no > > > > But not libssl. I suspect a problem with your OpenSSL build. You can > look > > at > > the config.log file for more details of what it's doing, and you can > > manually > > check (with nm) for that symbol in your libssl. > > > > > checking for ssl with RSAglue/rsaref libs in use... checking for > > SSL_connect in > > > -lssl... (cached) no > > > no > > > configure: error: OpenSSL libs and/or directories were not found > where > > > specified! > > > > > > ./configure --with-ssl=/usr/local/ssl/lib > > > /configure --with-ssl=/opt/openssl/ > > > result with > > > curl version: 7.34.0 > > > Host setup: i686-pc-linux-gnu > > > Install prefix: /usr/local > > > Compiler: gcc > > > SSL support: no (--with- > > > {ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} ) > > ------------------------------------------------------------------- > > List admin: http://cool.haxx.se/list/listinfo/curl-library > > Etiquette: http://curl.haxx.se/mail/etiquette.html > > > > > > > > ------------------------------------------------------------------- > > List admin: http://cool.haxx.se/list/listinfo/curl-library > > Etiquette: http://curl.haxx.se/mail/etiquette.html > > ------------------------------------------------------------------- > List admin: http://cool.haxx.se/list/listinfo/curl-library > Etiquette: http://curl.haxx.se/mail/etiquette.html >
------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
