libtool

Ryan Schmidt ryandesign at macports.org
Tue Jan 16 17:25:44 PST 2007


On Jan 16, 2007, at 19:02, Thomas De Contes wrote:

> Le mercredi, 17 jan 2007, à 00:50 Europe/Paris, Timothy Brown a  
> écrit :
>
>> On Wed, Jan 17, 2007 at 12:28:28AM +0100, Thomas De Contes wrote:
>>
>>> what does exactly
>>> port install libtool
>>> ?
>>
>> It installs the GNU libtool.
>
> does it make some things diferent than the apple version ?

I think so, but I don't know what. Well, at least the way in which  
you identify the version differs, as you see below.


>>> while making a tool, i got the error
>>> /usr/bin/libtool: unknown option character `m' in: - 
>>> macosx_version_min
>>>
>>> on the list GNAT-OSX at hermes.gwu.edu, someone said me "It looks  
>>> like it
>>> is using the wrong libtool. Apple has its own. If there is a  
>>> libtool in
>>> the path that isn't the Apple version then you will have problems
>>> creating dynamic libraries."
>>> but
>>> thomas% which libtool
>>> /usr/bin/libtool
>>> so it seems to be the apple's one
>>
>> Yes this is correct. This is Apple's one.
>>
>>> and after have run "port install libtool", it's the same(the  
>>> error and
>>> the path), and there is no libtool binary in the bin folder of  
>>> macports
>>>
>>> so, what should i do ?
>>
>> It is installed, however it is installed as glibtool.
>>
>>> ps :
>>> how to know the version of the installed libtool ?
>>
>> I have it installed, and to find the version:
>>
>> m1:$ port installed | grep libtool
>>   libtool @1.5.22_0 (active)
>>
>> m1:$ /opt/local/bin/glibtool --version
>> ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
>
> (it is /usr/bin/libtool, since /Users/thomas/bin/autoinstall/ 
> macports/bin/libtool does not exist)

No, one more time:

/usr/bin/libtool is the libtool provided by Apple.

/Users/thomas/bin/autoinstall/macports/bin/glibtool (note well:  
glibtool, not libtool) would be the one installed by the MacPorts  
libtool port.


> thomas% libtool --version
> libtool: unknown option character `-' in: --version
> Usage: libtool -static [-] file [...] [-filelist listfile 
> [,dirname]] [-arch_only arch] [-sacLT]
> Usage: libtool -dynamic [-] file [...] [-filelist listfile 
> [,dirname]] [-arch_only arch] [-o output] [-install_name name] [- 
> compatibility_version #] [-current_version #] [-seg1addr 0x#] [- 
> segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [- 
> seg_addr_table <filename>] [-seg_addr_table_filename  
> <file_system_path>] [-all_load] [-noall_load]
> thomas% libtool -v
> libtool: no output file specified (specify with -o output)
> Usage: libtool -static [-] file [...] [-filelist listfile 
> [,dirname]] [-arch_only arch] [-sacLT]
> Usage: libtool -dynamic [-] file [...] [-filelist listfile 
> [,dirname]] [-arch_only arch] [-o output] [-install_name name] [- 
> compatibility_version #] [-current_version #] [-seg1addr 0x#] [- 
> segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [- 
> seg_addr_table <filename>] [-seg_addr_table_filename  
> <file_system_path>] [-all_load] [-noall_load]
> thomas%
>
> is it right ?? :-/

Yes, that is right. I get the same output on my Mac for both of those  
commands. The Apple-provided version of libtool does not recognize  
either the --version or -v switches. Try -V.

$ /usr/bin/libtool -V
Apple Computer, Inc. version cctools-622.5







More information about the macports-users mailing list