[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool and Solaris

From: Albert Chin
Subject: Re: libtool and Solaris
Date: Fri, 1 Mar 2002 13:26:51 -0600
User-agent: Mutt/1.2.5i

On Fri, Mar 01, 2002 at 11:13:18AM -0800, Ben  Rockwood wrote:
> I'm trying to build several projects from Linux on Solaris.  I'm
> using libtool 1.4 and GCC 2.95.3 on Solaris8.  I'm building IMLIB2.
> When I build it using the Sun linker I get the following behavour:
> /bin/sh ../libtool --mode=link gcc  -g -O2 -L/usr/X11R6/lib -o 
> -rpath /usr/local/lib/loaders/filter -no-undefined -module -avoid-version 
> filter_test.lo  
> rm -fr .libs/ .libs/testfilter.* .libs/testfilter.*
> /usr/ccs/bin/ld -G -z defs -h -o .libs/  
> filter_test.lo  -L/usr/X11R6/lib -lc 
> Undefined                       first referenced
>  symbol                             in file
> imlib_create_color_modifier         filter_test.lo
> imlib_free_image_and_decache        filter_test.lo
> imlib_create_image                  filter_test.lo
> imlib_image_fill_rectangle          filter_test.lo
> imlib_context_set_color_modifier    filter_test.lo
> <snip>
> ld: fatal: Symbol referencing errors. No output written to .libs/

You're not linking in the imlib library.

> The interesting thing is that if I use GNU Binutils on Solaris the
> library builds with no problems... HOWEVER everything that uses this
> library compiled via Binutils code dumps on startup (Bus Error).  

Maybe because libtool defaults, when using binutils ld, to allowing
undefined symbols in the object file?

> I've removed binutils from my system, grabbed the latest Sun patch
> for the linker and tried over and over to get past this, but can't.
> Can anyone help?  

Please wrap your lines to 70 characters!

albert chin (address@hidden)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]