Hi,

sorry I am new to unix and openSSL, so I donīt know what "curl" and
"pkg-config" is. What I have discovered is, that I have a libcrypto.a
file in my OpenSSL directory as well as in the Cygwin dir. If I
understand it correctly the error may be the fact that it compiles and
links with the wrong libcrypto.a, being the one within the Cygwin dir.
But I do not understand how or where to change this.
I hope someone can provide help again.

Regards,
Michael


Peter Sylvester <[EMAIL PROTECTED]> schrieb am 22.10.2004,
12:56:54:
> 
> you seem to complie and link the curl with the wrong libcrypto part.
> 
> There seems to be a bug in the configure of curl which, in case
> that you have installed an openssl version in /usr/local/ssl
> and a pkg-config. 
> 
> Even if you specify -with-ssl=/somewhere, curl will use the 
> include and lib  of both pieces,
> 
> If during conpile and link you see BOTH /usr/local/ssl/include
> and /yourpath/ssl/include you have that problem.
> 
> For a small remedy, rename the pkg-config openssl file or
> /usr/local/ssl 
> 
> 
> 
> IMO in configure.ac the code should look something like:
> 
>   if test "$PKGTEST" = "yes"; then
> 
>     dnl Detect the pkg-config tool, as it may have extra info about the
>     dnl openssl installation we can use. I *believe* this is what we are
>     dnl expected to do on really recent Redhat Linux hosts.
> 
>     AC_PATH_PROG( PKGCONFIG, pkg-config, no, $PATH:/usr/bin:/usr/local/bin)
>     if test "$PKGCONFIG" != "no" ; then
>       AC_MSG_CHECKING([OpenSSL options with pkg-config])
> 
>       $PKGCONFIG --exists openssl
>       SSL_EXISTS=$?
> 
>       if test "$SSL_EXISTS" -eq "0"; then
>         SSL_LIBS=`$PKGCONFIG --libs-only-l openssl 2>/dev/null`
>         SSL_LDFLAGS=`$PKGCONFIG --libs-only-L openssl 2>/dev/null`
>         SSL_CPPFLAGS=`$PKGCONFIG --cflags-only-I openssl 2>/dev/null`
> 
>         dnl use the values pkg-config reported
>         LIBS="$LIBS $SSL_LIBS"
>         CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
>         LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
>         AC_MSG_RESULT([found])
>       else
>         AC_MSG_RESULT([no])
>       fi
>     fi
> # here starts the difference
>     if test x"$SSL_CPPFLAGS" = x; then
>       if test X"$OPT_SSL" = Xyes; then
>         LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib$libsuff"
>         CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
>       fi
>     fi
>   fi
> 
>   AC_CHECK_LIB(crypto, CRYPTO_lock,[
>      HAVECRYPTO="yes"
>      ],[
>      AC_CHECK_LIB(crypto, CRYPTO_add_lock,[
>        HAVECRYPTO="yes" ], [
>        LDFLAGS="$CLEANLDFLAGS"
>        CPPFLAGS="$CLEANCPPFLAGS"
>        LIBS="$CLEANLIBS"
>        ])
>     ])
> # and ends here
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [EMAIL PROTECTED]
> Automated List Manager                           [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to