libtool
[Top][All Lists]
Advanced

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

Linking non libtool libraries with libtool generated libraries


From: Larry Cotton
Subject: Linking non libtool libraries with libtool generated libraries
Date: Fri, 7 Sep 2001 16:55:09 +0100

Hi

I'm completely new to libtool, Autoconf, Automake et., but I have recently
down load and biilt php whose build system uses these tools.

I have also built an php extenstion which I wish to build in to php.

My problem is that my extension depends on external libraries which have not
been built using libtool. When I try to link them into the php exe i get an
error message something like :
cannot build libtool library from non-libtool objects:
ext/phpwebinterface/libprodssinterface.a

So I built my external libraries using libtool and copied them accross to my
extension directory with commands similar to :
libtool: link: libtool --mode=compile g++ -c $INCLUDES file.cxx

libtool --mode=link g++ -static -o libwebprodssinterface.la *.lo
ranlib .libs/libwebprodssinterface.a
chmod 644 .libs/libwebprodssinterface.a
cp .libs/libwebprodssinterface.la $PHP_EXT/phpwebinterface/.libs
cp .libs/libwebprodssinterface.a $PHP_EXT/phpwebinterface/.libs

but I still get the same error :
libtool: link: 'ext/phpwebinterface/libprodssinterface.la'  is not a valid
libtool archive

or if I link to the library directly :
cannot build libtool library from non-libtool objects:
ext/phpwebinterface/libprodssinterface.a

Could anyone give me an idea how I can either get my external libraries to
be conpatible or modify the php libtool build stuff to link to standard
object files ?

Cheers
Larry


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Imerge Limited                          Tel :- +44 (0)1954 783600 
Unit 6 Bar Hill Business Park           Fax :- +44 (0)1954 783601 
Saxon Way                               Web :- http://www.imerge.co.uk 
Bar Hill 
Cambridge 
CB3 8SL 
United Kingdom 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 





reply via email to

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