[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Building projects on i386-pc-solaris2.8
From: |
Robert Boehne |
Subject: |
Re: Building projects on i386-pc-solaris2.8 |
Date: |
Fri, 01 Feb 2002 15:29:18 -0600 |
Allan:
It helps to specify the verson of Libtool you're using as well
as the actual link line that Libtool creates. For my money
I can't think of any reason why the link line you have here
should work. It doesn't specify that you want to create
a shared library.
Rob
Allan McIntosh wrote:
>
> On the solaris machine there are 3 linkers:
>
> /opt/sfw/bin/ld
> /usr/ucb/ld
> /usr/ccs/bin/ld
>
> If I do a `which ld` it returns /opt/sfw/bin/ld
> /opt/sfw/bin/c++
>
> address@hidden 11:57:49 src]# ls -la /opt/sfw/bin/c++
> -r-xr-xr-x 2 root bin 74868 May 21 2001 /opt/sfw/bin/c++
> address@hidden 11:58:06 src]# /opt/sfw/bin/c++ -v
> Reading specs from /opt/sfw/lib/gcc-lib/i386-pc-solaris2.8/2.95.3/specs
> gcc version 2.95.3 20010315 (release)
>
> Then if I simply compile from the command line:
>
> c++ -o libagent.so -fPIC -L/usr/local/lib -G Agent.o AgentObject.o
> AgentObjectLinux.o AgentObjectFactory.o Vector.o Attribute.o
> SharedLibrary.o SharedLibraryMgr.o Storage.o StorageFile.o
> AttributeContainer.o ObjectContainer.o AgentObjectVersion.o ODParser.o
> XMLParser.o XMLItem.o md5.o -lcrypt -ldl -lltapi12 -lltstd12 -lz
>
> The library builds fine. But if I use libtool to build it. I get
> many undefined symbols.
>
> The libtool script has:
>
> LD="/usr/ccs/bin/ld"
>
> If i change LD="/opt/sfw/bin/ld" is that enough? Or must I define
> LD_RUN_PATH and recompile libtool?
>
> any suggestions?
>
> Thanks in advance.
>
> _______________________________________________
> Libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: address@hidden