cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl and HTTP/2

From: Bisera Milosheska <biseramilosheska_at_gmail.com>
Date: Mon, 1 Sep 2014 11:16:47 +0200

On Mon, Sep 1, 2014 at 8:20 AM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> That's why we link to http://curl.haxx.se/mail/etiquette.html in the
> footer of every single mail sent to the list. It allows newcomers (and
> oldies) to read up on and learn what we consider proper etiquette on the
> curl mailing lists!
>

Once again, I sincerely apologise.

> I meant when you built OpenSSL. Ie do you have the .so versions in
> /usr/local/ssl/lib or only .a files?

Yes, I also meant about the built. I did not specify the shared option
during the configuration. I have only .a files in /usr/local/ssl/lib:

bisera_at_bisera:/usr/local/ssl/lib$ ll

total 5612

drwxr-xr-x 4 root root 4096 Sep 1 01:32 *.*/

drwxr-xr-x 9 root root 4096 Sep 1 01:32 *..*/

drwxr-xr-x 2 root root 4096 Sep 1 01:32 *engines*/

-rw-r--r-- 1 root root 4906012 Sep 1 01:32 libcrypto.a

-rw-r--r-- 1 root root 820886 Sep 1 01:32 libssl.a

drwxr-xr-x 2 root root 4096 Sep 1 01:32 *pkgconfig*/

Then you need to check config.log to learn more details about the failure.
> A guess is that you only have static libs and then you probably need to
> pass LDFLAGS="-ldl" to configure.

Passing the LDFLAGS="-ldl" doesn't change anything either.

However, this is what seems suspiciuos in the config.log file:

configure:21633: checking for SSL_connect in -lssl

configure:21655: gcc -o conftest -O2 -Wno-system-headers
-I/usr/local/ssl/include -I/usr/local/ssl/include/openssl -ldl
-L/usr/local/ssl/lib conftest.c -lssl -lcrypto >&5

/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function
`dlfcn_globallookup':

dso_dlfcn.c:(.text+0x11): undefined reference to `dlopen'

dso_dlfcn.c:(.text+0x24): undefined reference to `dlsym'

dso_dlfcn.c:(.text+0x2f): undefined reference to `dlclose'

/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_func':

dso_dlfcn.c:(.text+0x334): undefined reference to `dlsym'

dso_dlfcn.c:(.text+0x3db): undefined reference to `dlerror'

/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_bind_var':

dso_dlfcn.c:(.text+0x454): undefined reference to `dlsym'

dso_dlfcn.c:(.text+0x4fb): undefined reference to `dlerror'

/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_load':

dso_dlfcn.c:(.text+0x569): undefined reference to `dlopen'

dso_dlfcn.c:(.text+0x5cb): undefined reference to `dlclose'

dso_dlfcn.c:(.text+0x603): undefined reference to `dlerror'

/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_pathbyaddr':

dso_dlfcn.c:(.text+0x68f): undefined reference to `dladdr'

dso_dlfcn.c:(.text+0x6f1): undefined reference to `dlerror'

/usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_unload':

dso_dlfcn.c:(.text+0x742): undefined reference to `dlclose'

collect2: error: ld returned 1 exit status

I really hope this reveals more information on the problem.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-09-01