cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Why OpenSSL problems building conftest.c?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 12 Apr 2011 22:15:02 +0200 (CEST)

On Tue, 12 Apr 2011, Saqib Ali wrote:

> I'm running on a Sparc Box: SunOS 5.10 Generic_142900-05 sun4v sparc
> I'm using this compiler: cc: Sun C 5.11 SunOS_sparc 2010/08/13
> I'm using the nightly snapshot of CURL from 3/21/2011

> So my first question is: The configuration script was told to include the
> SSH2 library. However, the link step failed to include the "-lssh2" flag.
> Why?

It's a bug that seems to exist if pkg-config isn't found and used! I'm
committing and pushing a fix now:

https://github.com/bagder/curl/commit/fde795894f9af996aff

> configure:21363: /usr/bin/cc -o conftest -g -v -DCURLDEBUG -DDEBUGBUILD
> -I<myOpenSSLLoc>/include -I<MyOpenSSLLoc>/include/openssl
> I<mySSH2Loc>/include -L<myOpenSSLLoc> -L<mySSH2Loc>/lib conftest.c -lssh2
> -lssl -lcrypto -lldap -lrt -lsocket -lnsl -lz >&5
> "conftest.c", line 89: warning: statement not reached
> Undefined first referenced
> symbol in file
> EVP_Cipher
> /SS8/users/sali/ssh2/lib/libssh2.a(openssl.o)

This is a separate issue, if it really does present a problem.

> BTW, I did a "find / -name conftest.c", I can't find it anywhere. Very
> wierd.

That's the name of the generated source that configure uses to do run-time
tests. It will be created and removed again during configure's lifetime so it
isn't around when configure has completed.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-12