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


Hi,
Thanks for the bug report.

I haven't encountered that error -- I have been able to make
statically linked executables successfully. Can you provide more
information about what compiler options you are using, compiler
version etc and how you installed the library.

I can see where a problem *might* arise: in the libtool link phase,
which produces the single libgsl.a file, the libraries in our SUBLIBS
variable are not in order (e.g. libgslblock occurs before libgslvector
-- this is probably what gives rise to the error). We could put them
in order, even though it works ok for me (using gcc-2.7.2).

regards
Brian Gough.

Pablo Bianucci writes:
 > Hi!
 > 
 > I tried to compile a static linked binary using gsl routines, but it seems I
 > can't do so. Here is what I get when I try to do it:
 > 
 > ===
 > /usr/lib/libgsl.a(init.lo): In function `gsl_vector_complex_long_double_alloc':
 > init.lo(.text+0x5b): undefined reference to `gsl_block_complex_long_double_alloc'
 > /usr/lib/libgsl.a(init.lo): In function `gsl_vector_complex_long_double_free':
 > init.lo(.text+0x2eb): undefined reference to `gsl_block_complex_long_double_free'
 > [...]
 > /usr/lib/libgsl.a(init.lo): In function `gsl_vector_uchar_free':
 > init.lo(.text+0x5437): undefined reference to `gsl_block_uchar_free'
 > /usr/lib/libgsl.a(init.lo): In function `gsl_vector_char_alloc':
 > init.lo(.text+0x583b): undefined reference to `gsl_block_char_alloc'
 > /usr/lib/libgsl.a(init.lo): In function `gsl_vector_char_free':
 > init.lo(.text+0x5aa7): undefined reference to `gsl_block_char_free'
 > collect2: ld returned 1 exit status
 > ===
 > 
 > I am working in a Debian Linux system with gsl 0.6.
 > Does anybody have any clue about this?
 > 
 > 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]