This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
Re: Unable to generate static binaries
- To: Pablo Bianucci <pbian at pccp dot com dot ar>
- Subject: Re: Unable to generate static binaries
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Tue, 20 Jun 2000 19:24:23 +0100 (BST)
- Cc: gsl-discuss at sourceware dot cygnus dot com
- References: <20000619170826.A21402@pccp.com.ar>
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.
>
>
>