hi :-) what does exactly port install libtool ? while making a tool, i got the error /usr/bin/libtool: unknown option character `m' in: -macosx_version_min on the list GNAT-OSX@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 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 ? ps : how to know the version of the installed libtool ? -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
port installed | grep libtool will tell you all of the libtools you have installed. It sounds to me like your path has the apple tools in front of MP tools. What is your path? That is, what do you get from 'echo $PATH'? -- Sal smile. -------------- Salvatore Domenick Desiano Doctoral Candidate Robotics Institute Carnegie Mellon University On Wed, 17 Jan 2007, Thomas De�Contes wrote: o hi :-) o o o what does exactly o port install libtool o ? o o o while making a tool, i got the error o /usr/bin/libtool: unknown option character `m' in: -macosx_version_min o o on the list GNAT-OSX@hermes.gwu.edu, someone said me "It looks like it is o using the wrong libtool. Apple has its own. If there is a libtool in the path o that isn't the Apple version then you will have problems creating dynamic o libraries." o but o thomas% which libtool o /usr/bin/libtool o so it seems to be the apple's one o o and after have run "port install libtool", it's the same(the error and the o path), and there is no libtool binary in the bin folder of macports o o so, what should i do ? o o o ps : o how to know the version of the installed libtool ? o o o -- o Mon CV : http://tDeContes.hd.free.fr/divers/emploi/ o o _______________________________________________ o macports-users mailing list o macports-users@lists.macosforge.org o http://lists.macosforge.org/mailman/listinfo/macports-users o o
On Wed, Jan 17, 2007 at 12:28:28AM +0100, Thomas De Contes wrote:
hi :-)
Hello. Just a quick response, it might not be all that helpful...
what does exactly port install libtool ?
It installs the GNU libtool.
while making a tool, i got the error /usr/bin/libtool: unknown option character `m' in: -macosx_version_min
on the list GNAT-OSX@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) Sorry I can't help with your error. What are you trying to make? Regards, Timothy
Le mercredi, 17 jan 2007, à 00:48 Europe/Paris, Salvatore Domenick Desiano a écrit :
port installed | grep libtool
will tell you all of the libtools you have installed.
thomas% port installed | grep libtool libtool @1.5.22_0 (active) so, nothing else that the one i installed to replace /usr/bin/libtool, which made the error
It sounds to me like your path has the apple tools in front of MP tools.
no, i did care about that
What is your path? That is, what do you get from 'echo $PATH'?
thomas% echo $PATH /Users/thomas/bin/autoinstall/ada/4.2/bin:/Users/thomas/bin/ autoinstall/ada/4.0/bin:/Users/thomas/bin:/Users/thomas/bin/compil:/ Users/thomas/bin/outils:/Users/thomas/bin/divers:/Users/thomas/bin/ autoinstall/macports/bin:/Users/thomas/bin/autoinstall/subversion/bin:/ Users/thomas/bin/autoinstall/autre/bin:/bin:/sbin:/usr/bin:/usr/sbin the path for macports is /Users/thomas/bin/autoinstall/macports/bin /Users/thomas/bin/autoinstall/macports/bin/libtool does not exist
On Wed, 17 Jan 2007, Thomas De Contes wrote:
o hi :-) o o o what does exactly o port install libtool o ? o o o while making a tool, i got the error o /usr/bin/libtool: unknown option character `m' in: -macosx_version_min o o on the list GNAT-OSX@hermes.gwu.edu, someone said me "It looks like it is o using the wrong libtool. Apple has its own. If there is a libtool in the path o that isn't the Apple version then you will have problems creating dynamic o libraries." o but o thomas% which libtool o /usr/bin/libtool o so it seems to be the apple's one o o and after have run "port install libtool", it's the same(the error and the o path), and there is no libtool binary in the bin folder of macports o o so, what should i do ? o o o ps : o how to know the version of the installed libtool ? o o o -- o Mon CV : http://tDeContes.hd.free.fr/divers/emploi/ o o _______________________________________________ o macports-users mailing list o macports-users@lists.macosforge.org o http://lists.macosforge.org/mailman/listinfo/macports-users o o
-- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
Looks like you have everything in place. As Timothy asked, what are you trying to build? Is it a port or another application (the answer will be different). Incidentally, looking at your path, there are a couple of apps you could shift to MP rather than having to install them manually. -- Sal smile. -------------- Salvatore Domenick Desiano Doctoral Candidate Robotics Institute Carnegie Mellon University On Wed, 17 Jan 2007, Thomas De�Contes wrote: o o Le mercredi, 17 jan 2007, � 00:48 Europe/Paris, Salvatore Domenick Desiano a o �crit : o o > port installed | grep libtool o > o > will tell you all of the libtools you have installed. o o thomas% port installed | grep libtool o libtool @1.5.22_0 (active) o o so, nothing else that the one i installed to replace /usr/bin/libtool, which o made the error o o > It sounds to me o > like your path has the apple tools in front of MP tools. o o no, i did care about that o o > What is your o > path? That is, what do you get from 'echo $PATH'? o o thomas% echo $PATH o /Users/thomas/bin/autoinstall/ada/4.2/bin:/Users/thomas/bin/autoinstall/ada/4.0/bin: /Users/thomas/bin:/Users/thomas/bin/compil:/Users/thomas/bin/outils:/Users/thomas/bin/divers: /Users/thomas/bin/autoinstall/macports/bin:/Users/thomas/bin/autoinstall/subve o rsion/bin:/Users/thomas/bin/autoinstall/autre/bin:/bin:/sbin:/usr/bin:/usr/sbin o o the path for macports is /Users/thomas/bin/autoinstall/macports/bin o o /Users/thomas/bin/autoinstall/macports/bin/libtool does not exist o o o > On Wed, 17 Jan 2007, Thomas De�Contes wrote: o > o > o hi :-) o > o o > o o > o what does exactly o > o port install libtool o > o ? o > o o > o o > o while making a tool, i got the error o > o /usr/bin/libtool: unknown option character `m' in: -macosx_version_min o > o o > o on the list GNAT-OSX@hermes.gwu.edu, someone said me "It looks like it is o > o using the wrong libtool. Apple has its own. If there is a libtool in the o > path o > o that isn't the Apple version then you will have problems creating dynamic o > o libraries." o > o but o > o thomas% which libtool o > o /usr/bin/libtool o > o so it seems to be the apple's one o > o o > o and after have run "port install libtool", it's the same(the error and the o > o path), and there is no libtool binary in the bin folder of macports o > o o > o so, what should i do ? o > o o > o o > o ps : o > o how to know the version of the installed libtool ? o > o o > o o > o -- o > o Mon CV : http://tDeContes.hd.free.fr/divers/emploi/ o > o o > o _______________________________________________ o > o macports-users mailing list o > o macports-users@lists.macosforge.org o > o http://lists.macosforge.org/mailman/listinfo/macports-users o > o o > o o o -- o Mon CV : http://tDeContes.hd.free.fr/divers/emploi/ o o
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 ?
while making a tool, i got the error /usr/bin/libtool: unknown option character `m' in: -macosx_version_min
on the list GNAT-OSX@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) 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 ?? :-/
What are you trying to make?
gnat (ada compiler) do you want i give you the instructions to try on your computer ? -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
It sounds like GNAT is hard wired to look for libtool. I don't have access to the GNAT website or the download, so I can't tell you how to change which libtool to look for. I can think of three possibile solutions: 1) temporarily move /usr/lib/libtool out of the way (not a great idea, and absolutely don't forget to put it back) 2) temporarily link .../glibtool to .../libtool (not great, but workable, and also don't forget to remove it) 3) change the GNAT build system to look for glibtool instead of libtool (the GNAT mailing list is your best bet for this). -- Sal smile. -------------- Salvatore Domenick Desiano Doctoral Candidate Robotics Institute Carnegie Mellon University On Wed, 17 Jan 2007, Thomas De Contes wrote: o o Le mercredi, 17 jan 2007, à 00:50 Europe/Paris, Timothy Brown a écrit : o o > On Wed, Jan 17, 2007 at 12:28:28AM +0100, Thomas De Contes wrote: o > o > > what does exactly o > > port install libtool o > > ? o > o > It installs the GNU libtool. o o does it make some things diferent than the apple version ? o o > o > > while making a tool, i got the error o > > /usr/bin/libtool: unknown option character `m' in: -macosx_version_min o > > o > > on the list GNAT-OSX@hermes.gwu.edu, someone said me "It looks like it o > > is using the wrong libtool. Apple has its own. If there is a libtool in o > > the path that isn't the Apple version then you will have problems o > > creating dynamic libraries." o > > but o > > thomas% which libtool o > > /usr/bin/libtool o > > so it seems to be the apple's one o > o > Yes this is correct. This is Apple's one. o > o > > and after have run "port install libtool", it's the same(the error and o > > the path), and there is no libtool binary in the bin folder of macports o > > o > > so, what should i do ? o > o > It is installed, however it is installed as glibtool. o > o > > ps : o > > how to know the version of the installed libtool ? o > o > I have it installed, and to find the version: o > o > m1:$ port installed | grep libtool o > libtool @1.5.22_0 (active) o > o > m1:$ /opt/local/bin/glibtool --version o > ltmain.sh (GNU libtool) 1.5.22 (1.1220.2.365 2005/12/18 22:14:06) o o (it is /usr/bin/libtool, since o /Users/thomas/bin/autoinstall/macports/bin/libtool does not exist) o o thomas% libtool --version o libtool: unknown option character `-' in: --version o Usage: libtool -static [-] file [...] [-filelist listfile[,dirname]] o [-arch_only arch] [-sacLT] o Usage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] o [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] o [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] o [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] o [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load] o thomas% libtool -v o libtool: no output file specified (specify with -o output) o Usage: libtool -static [-] file [...] [-filelist listfile[,dirname]] o [-arch_only arch] [-sacLT] o Usage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] o [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] o [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] o [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] o [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load] o thomas% o o is it right ?? :-/ o o o > What are you trying to make? o o gnat (ada compiler) o o do you want i give you the instructions to try on your computer ? o o o -- o Mon CV : http://tDeContes.hd.free.fr/divers/emploi/ o o _______________________________________________ o macports-users mailing list o macports-users@lists.macosforge.org o http://lists.macosforge.org/mailman/listinfo/macports-users o o
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@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
Le mercredi, 17 jan 2007, à 02:25 Europe/Paris, Ryan Schmidt a écrit :
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.
ok
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 thomas% libtool -v libtool: no output file specified (specify with -o output)
is it right ?? :-/
Yes, that is right. I get the same output on my Mac for both of those commands.
i wanted to know the version of the (my) installed libtool, not necessary the one installed by macports, and actually i thought that it was the same way for all libtools :-)
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
thank you very much :-) thomas% libtool -V Apple Computer, Inc. version cctools-590 so that's probably the cause of my problem is there an other way to get the last version of apple's libtool than update mac os x ? -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
Le mercredi, 17 jan 2007, à 02:17 Europe/Paris, Salvatore Domenick Desiano a écrit :
It sounds like GNAT is hard wired to look for libtool. I don't have access to the GNAT website or the download, so I can't tell you how to change which libtool to look for.
cd /where-you-want/ svn checkout -r "{20061215}" svn://gcc.gnu.org/svn/gcc/branches/gcc-4_2-branch gnat/4.2/ cd gnat/4.2/ mkdir build cd build/ ../configure --enable-languages=ada --prefix=/where-you-want make make install but i'm talking with sb from the list GNAT-OSX@hermes.gwu.edu for this problem, i'm here only to understand what about libtool :-) (and he said me that i must have the apple's one and not an other) -- Mon CV : http://tDeContes.hd.free.fr/divers/emploi/
On Wed, Jan 17, 2007 at 01:11:57PM +0100, Thomas De Contes wrote: [SNIP]
$ /usr/bin/libtool -V Apple Computer, Inc. version cctools-622.5
thank you very much :-)
thomas% libtool -V Apple Computer, Inc. version cctools-590
so that's probably the cause of my problem
is there an other way to get the last version of apple's libtool than update mac os x ?
http://www.opensource.apple.com/darwinsource/10.4.8.{ppc,x86}/cctools-622.5.1/ There's the source. But I don't really think that would be a good idea. As in, how do I say this.... I often fubble compiling a kernel. So getting the cctools and making your own libtool might not work for you. :( Are you sure this is the problem? As without checking out GNAT, by what your going on it's an ada compiler from GNU. So that kind of implies to me GNU libtool etc... I like to fiddle... So what happens when you do something like alias libtool=/Users/thomas/bin/autoinstall/macports/bin/glibtool So your shell calls glibtool when you ask for libtool? With out having to move things out of the way. It might work, or it might just blow up in your face... in which case you quit that shell. Sorry. Timothy
On Wednesday, January 17, 2007, at 01:12PM, "Thomas De Contes" <d.l.tDeContes@free.fr> wrote:
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
thank you very much :-)
thomas% libtool -V Apple Computer, Inc. version cctools-590
so that's probably the cause of my problem
is there an other way to get the last version of apple's libtool than update mac os x ?
Install a newer version of Xcode (to be downloaded from the ADC website). BTW. Apple's libtool and GNU's libtool are entirely different tools, the latter is installed as glibtool by Apple (and AFAIK MacPorts does the same to avoid confusion between Apple's libtool and the GNU tool of the same name. Ronald
On Jan 16, 2007, at 7:35 PM, Thomas De Contes wrote:
Le mercredi, 17 jan 2007, à 00:48 Europe/Paris, Salvatore Domenick Desiano a écrit :
port installed | grep libtool
will tell you all of the libtools you have installed.
thomas% port installed | grep libtool libtool @1.5.22_0 (active)
so, nothing else that the one i installed to replace /usr/bin/ libtool, which made the error
You do not want to replace /usr/bin/libtool /usr/bin/libtool comes from Apple (and existed before GNU libtool). From its manpage: "The libtool command takes the specified input object files and creates a library for use with the link editor, ld(1)." In order to avoid confusion, Macports installs GNU libtool as 'glibtool'. From it's manpage: "glibtool is a script that allows package developers to provide generic shared library support." You need to convince the software that you are trying to build to use glibtool instead of 'libtool' You might be able to cd to the source directory and run 'glibtoolize' to fix things. -- Daniel J. Luke +========================================================+ | *---------------- dluke@geeklair.net ----------------* | | *-------------- http://www.geeklair.net -------------* | +========================================================+ | Opinions expressed are mine and do not necessarily | | reflect the opinions of my employer. | +========================================================+
participants (6)
-
Daniel J. Luke
-
Ronald Oussoren
-
Ryan Schmidt
-
Salvatore Domenick Desiano
-
Thomas De Contes
-
Timothy Brown