[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#43438: libieee.a and libm.so shared problem.



Package: libc6
Version: 2.1.2-0pre10

I discovered this while trying to build the TK library for Erlang.

If when making a shared library, -lm is referenced before -lieee, a
strange error occurs.

--t1.c----------------------------------------------------------------------
/* A very small shared library. */

nothing ()
{
}
--build------------------------------------------------------------
gcc -c -o t1.o t1.c -fPIC
gcc -shared -o mylib.so t1.o -lm -lieee
----------------------------------------------------------------------

Running build on the given file produces the following error:
----------------------------------------------------------------------
+ gcc -c -o t1.o t1.c -fPIC
+ gcc -shared -o mylib.so t1.o -lm -lieee
/usr/bin/ld: mylib.so: undefined versioned symbol name _LIB_VERSION@@GLIBC_2.0
/usr/bin/ld: failed to set dynamic section sizes: Bad value
collect2: ld returned 1 exit status
----------------------------------------------------------------------

If I swap -lieee and -lm, then it builds fine.

David Brown
ug-debianbug@davidb.org


Reply to: