cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: problem with configure on solaris 5.8 of curl 7.15.4

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 27 Jul 2006 13:31:30 -0700

On Thu, Jul 27, 2006 at 02:45:39PM -0500, Kevin Martin wrote:
> Doing the following to try to build a statically linked version of curl that I can install on different Solaris 5.8 machines without
> having local dependencies:
>
> export
> LD_LIBRARY_PATH=/usr/local/lib/gcc/sparc-sun-solaris2.8/3.4.2:/usr/local/ssl/lib:/usr/local/lib:/usr/lib:/usr/ccs/lib:$LD_LIBRARY_PATH
> export LDFLAGS="-I/usr/include/sys -I/usr/local/ssl/include"

This has to be CPPFLAGS, not LDFLAGS, if you want it to have any effect.

> export CC=/usr/local/bin/gcc #(this is version 3.4.2)
> export LIBS="-lnsl -lssl -lcrypto -ldl -lsocket"

configure ought to be able to figure out all this on its own.

> export CFLAGS="-static"

This should be redundant with --enable-static

> ./configure --prefix=/opt/curl --disable-ldap --enable-http --enable-manual --enable-thread --enable-verbose --enable-debug
> - --enable-cookies --enable-static --disable-shared --with-ssl

The --with-ssl syntax is wrong; as documented by ./confiugure --help, it
takes a parameter which is the path to an OpenSSL installation directory.
If OpenSSL is set up properly, you shouldn't need the -I flag in CPPFLAGS.
If OpenSSL is installed in other than the canonical way, then it becomes
tricky as curl's configure isn't set up to make a custom install easy.

> So I "think" that this is failing because I don't have the gnu/stub.h file. However, I don't know where that file is supposed to
> come from and, if it's glibc as I suspect, I don't think glibc has been ported to Solaris 8! So maybe I'm doing something stupid
> (god I hope it's that easy). Any/all help is greatly appreciated.

I really doubt this is the problem. Fix the above issues and you should
have much greater success.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-07-27