Re: Compiling to shared libraries

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

 



Well I have,
root@apollo:/> echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/local/mysql/bin:/usr/sbin:/usr/bin:/usr/lib/courier/bin:/usr/ucb:/sbin: \ /etc:/usr/openwin/bin:/usr/dt/bin:/usr/lib/courier/bin:/usr/lib/courier/sbin

I have also made a soft link from /usr/ccs/bin/ld to /usr/local/bin/ld as mentiond below to shortcut sun's ld infavor of GNU. The output of ./configure says that ld supports share libraries but not libtol.

Output from config for ld and libtool:
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries... yes
checking command to parse /usr/local/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/ccs/bin/ld option to reload object files... -r
checking dynamic linker characteristics... no
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool

/GH


Guus Leeuw jr. skrev:
Goran,

Can you send config.log please?
Is libtool in your $PATH?

glj

On Wed, May 9, 2007 14:52, Göran Höglund wrote:
Well I have,
root@apollo:/> echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/ccs/bin:/usr/local/mysql/bin:/usr/sbin:/us
r/bin:/usr/lib/courier/bin:/usr/ucb:/sbin:
\
/etc:/usr/openwin/bin:/usr/dt/bin:/usr/lib/courier/bin:/usr/lib/courier/sbin


I have also made a soft link from /usr/ccs/bin/ld to /usr/local/bin/ld
as mentiond below to shortcut sun's ld infavor of GNU. The output of
./configure says that ld supports share libraries but not
libtol.

/GH



Guus Leeuw jr. skrev:

The more supported way would be to make sure that /usr/local/bin is
mentioned first in your $PATH (as opposed to /usr/ccs). That way, you should
get GNU ld first...

On Wed, May 9, 2007 12:40, Göran Höglund wrote:

Hi,
I am trying to compile SASL (cyrus-sasl-2.1.22) into shared libriries on
a SUN SPARC Solaris  8 machine.

I only get .la files in /usr/local/lib no .so's



I have down loaded gcc and some otheer tools from Sunfreeware
(gcc_small-3.4.2, make-3.81, libtool-1.5, binutils-2.11.2 and
coreutils-6.4) and are using them. I had problems with SUNs
/usr/ccs/bin/ld
because the linker chooses suns dito since gcc seems to be linked with it.
My
./configure told me that ld did not support shared libraries.
So I have linked /usr/ccs/ld to GNU ld in /usr/local/bin.



My ./configure command:
./configure --enable-login --enable-plain --disable-gssapi
--with-mysql=/usr/local/mysql/lib/mysql --without-pam
--without-saslauthd --without-pwcheck --with-dblib=berkeley
--with-bdb-libdir=/usr/local/BerkeleyDB/lib --with-bdb-incdir
/usr/local/BerkeleyDB/include --with-openssl=/usr/local/ssl
--with-plugindir=/usr/local/lib/sasl2



This and make works just fine but the libs are:
/usr/local/lib/libsasl2.a and /usr/local/lib/libsasl2.la*



I am excpectin a /usr/local/lib/libsasl2.so.1 or similar.



My goal is to compile postfix with sasl support



I am suspecting the libtool to fool me.









--
Göran Höglund
Telemar Scandinavia AB
P O Box 9304
SE-400 97 Gothenburg, Sweden
Phone: +46 31 892807
Fax: +46 31 892801
www.telemar.se





--
Göran Höglund
Telemar Scandinavia AB
P O Box 9304
SE-400 97 Gothenburg, Sweden
Phone: +46 31 892807
Fax: +46 31 892801
www.telemar.se

[Index of Archives]     [Info Cyrus]     [Squirrel Mail]     [Linux Media]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux