Bug#197001: g77 no longer compiles using static libraries
- Please could you provide a test program which shows the behaviour?
- Are you able to reproduce the behaviour with the current g77 in
Josep Guerrero Sole writes:
> Something on the last security updates seems to have
> removed g77 capability to compile programs that use static libraries.
> Every call to a function in a static library gives an error like:
> /tmp/cckJSVES.o: In function `MAIN__':
> /tmp/cckJSVES.o(.text+0x7): undefined reference to `a_'
> collect2: ld returned 1 exit status
> when compiling (in this case, the function name is "a"). Note that the
> undefined reference occur in the temporary file "ccxxxx", not in the
> source file of the program I'm actually compiling. I know for sure
> that compiling with static libraries was working on February, but I
> don't know exactly when g77 started to act this way. I found this when
> trying to compile a program which uses the XSPEC library libxspec.a,
> for which there is only a static version, and the error messages above
> were obtained when trying to compile a test case, with a test library with
> only one function ("a") which in fact did nothing and a test program
> which only called that function and ended.