libtool
[Top][All Lists]
Advanced

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

Re: Linking non libtool libraries with libtool generated libraries


From: Gary V. Vaughan
Subject: Re: Linking non libtool libraries with libtool generated libraries
Date: Mon, 10 Sep 2001 22:04:49 +0100
User-agent: Mutt/1.3.21i

This looks like a 1.3.x error message.  Upgrade to 1.4.2 and try again?

Cheers,
        Gary.

On Mon, Sep 10, 2001 at 01:14:45PM +0100, Larry Cotton wrote:
> 
> I wrote on Friday :
> 
> ****************************************************************************
> ****
> 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
> 
> ****************************************************************************
> ****
> 
> Anyone know anything about this ?
> 
> 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 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
> 
> 
> 
> _______________________________________________
> Libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool

-- 
  ())_. Gary V. Vaughan     gary@(oranda.demon.co.uk|gnu.org)
  ( '/  Research Scientist  http://www.oranda.demon.co.uk       ,_())____
  / )=  GNU Hacker          http://www.gnu.org/software/libtool  \'      `&
`(_~)_  Tech' Author        http://sources.redhat.com/autobook   =`---d__/



reply via email to

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