This is the mail archive of the gsl-discuss@sourceware.cygnus.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Unable to generate static binaries


Looking at the nm output you sent me I see that you still have the
same problem, i.e. .lo files with the same name are not duplicated in
the .a file.

I tried compiling gsl-0.6 on a Redhat 6.2 system myself today, using
ar 2.9.5, and the problem did not occur there, so it does not seem to
be ar that is at fault.

Either this happens (1) at compile time and you are actually getting
the wrong source files and producing the wrong .lo files or (2) when
ar/ranlib are run to make the single libgsl.a the .lo files are not
read in the correct order.

Check if the individual .lo files in each directory are different.
That way you can determine whether it is (1) or (2).  If the
individual init.lo files are correct and different then you have
narrowed it down to ar/ranlib.

regards
Brian

I had a look at compaq's testdrive scheme to see if that might be
useful for doing testing.  Does anyone know how to actually transfer
files onto there? Once I had logged in I tried ftp/http to grab
gsl-0.6 but they seemed to have a firewall in operation. I could not
find anything about that in their faq pages.


Pablo Bianucci writes:
 > Hi Brian!
 > 
 > On Sun, Jul 02, 2000 at 12:17:43PM +0100, Brian Gough wrote:
 > 
 > > I looked for binutils-2.9.5 on the gnu site, to try it out, but it was
 > > not there.  The available versions were 2.9.1 (which I have), 2.9.2
 > > and then 2.10.  So maybe 2.9.5 had some problems, since it is not on
 > > the ftp site.  It would be interesting to know if 2.10 would fix the
 > > problem for you.
 > 
 > It is still not working...
 > Just in case, all the versions of the programs are shown below.
 > 
 > ===
 > atomic:(pbian)~$ ld -v
 > GNU ld version 2.10.90 (with BFD 2.10.0.9)
 > 
 > atomic:(pbian)~$ ar --version
 > GNU ar 2.10.90
 > Copyright 1997, 98, 99, 2000 Free Software Foundation, Inc.
 > This program is free software; you may redistribute it under the terms of
 > the GNU General Public License.  This program has absolutely no warranty.
 > 
 > atomic:(pbian)~$ gcc -v
 > Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.2/specs
 > gcc version 2.95.2 19991024 (release)
 > 
 > atomic:(pbian)~$ libtool --version
 > ltmain.sh (GNU libtool) 1.3.3 (1.385.2.181 1999/07/02 15:49:11)
 > ===
 > 
 > Where can the problem be?
 > 
 > Bye & Good Luck!
 > 
 > Pablo B.
 > 
 > 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]