curl-users
Re: build problems on solaris...
Date: Thu, 22 Aug 2002 20:11:46 -0400
As I had already responded in private message.
The default ld in Solaris is for the Sun version of cc. Therefore
the correct way to fix this problem if you are using gcc to compile
curl on solaris is to define gld as the linker instead of ld or
to remove ld from the system altogether and to create a link to
gld for ld. This is the only correct solution for this problem
as you do not use the sun ld with gcc at any time since it breaks
software compiled on the system.
Sorry but your fix is completely incorrect. This has been an ongoing
problem as Solaris takes on more GNU based software into the core
install.
Rob Andrews
RELI Networks, Inc.
Marietta, GA. US.
On Thu, Aug 22, 2002 at 04:23:26PM +0200, Daniel Stenberg wrote:
> On Tue, 20 Aug 2002 imajes_at_php.net wrote:
>
> > Trying to build curl on solaris...
> >
> > make[2]: Entering directory `/home/pkg/curl-7.9.8/lib'
> > /bin/sh ../libtool --mode=link gcc -g -O2 -o libcurl.la -rpath
> > /usr/local/lib -no-undefined -version-info 2:2:
>
> [cut]
>
> > Undefined first referenced
> > symbol in file
> > main /usr/local/ssl/lib/libssl.so
> > ld: fatal: Symbol referencing errors. No output written to
> > .libs/libcurl.so.2.0.2
>
> I think the fix for this problem is shown below. You need to run automake
> after having applied this, rerun ./config.status and then do 'make clean' and
> 'make'.
>
> If you don't have automake around, you can edit the lib/Makefile.in file
> accordingly too and then proceed as suggested above.
>
> I'd appreciate if you let me know how it works!
>
> diff -u -r1.39 Makefile.am
> --- lib/Makefile.am 13 Aug 2002 14:20:47 -0000 1.39
> +++ lib/Makefile.am 22 Aug 2002 14:20:45 -0000
> @@ -16,7 +16,7 @@
> # we use srcdir/lib for the lib-private header files
> INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/lib -I$(top_srcdir)/lib
>
> -libcurl_la_LDFLAGS = -no-undefined -version-info 2:2:0
> +libcurl_la_LDFLAGS = -version-info 2:2:0
> # This flag accepts an argument of the form current[:revision[:age]]. So,
> # passing -version-info 3:12:1 sets current to 3, revision to 12, and age to
> # 1.
>
>
> --
> Daniel Stenberg -- curl related mails on curl related mailing lists please
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same old
> cell phone? Get a new here for FREE!
> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-23