NetBSD-Bugs archive

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

lib/50646: [netbsd-7] undefined reference to `cabsl'



>Number:         50646
>Category:       lib
>Synopsis:       [netbsd-7] undefined reference to `cabsl'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 11 13:55:00 +0000 2016
>Originator:     BERTRAND Joël
>Release:        netbsd-7 Jan 10 2016
>Organization:
>Environment:
NetBSD legendre.systella.fr 7.0_STABLE NetBSD 7.0_STABLE (CUSTOM) #1: Sun Jan 10 12:53:36 CET 2016  root%legendre.systella.fr@localhost:/usr/obj/sys/arch/amd64/compile/CUSTOM amd64
>Description:
    I'm trying to package RPL/2 (http://www.rpl2.net). I have modified some script to build a standalone version but final link stage aborts with :

../rplcas/lib/librplcas.a(6-usual.o): In function `giac::erf0(giac::gen const&, giac::gen&, giac::context const*)':
(.text+0x3abd2): undefined reference to `cabsl'
../rplcas/lib/librplcas.a(6-usual.o): In function `giac::erf0(giac::gen const&, giac::gen&, giac::context const*)':
(.text+0x3b69a): undefined reference to `cabsl'

    I have tried to swap libraries invocations without any success. I have tried to add -std=gnu11. Same result. When makefile tries to link programm, it runs :

g++  -Wall -Wextra -g -O2 -mtune=native -march=native  -O3 -malign-double -mieee-fp -Wall -funsigned-char -g   -Wl,--export-dynamic -Wl,-R/usr/pkg/lib -Wl,-R/usr/pkg/gcc49/bin/../lib -Wl,-whole-archive ../tools/openmotif-2.3.4/lib/Xm/.libs/libXm.a ../tools/libXpm-3.5.9/src/.libs/libXpm.a ../tools/zlib-1.2.8/libz.a -L/usr/X11R7/lib -lXft -lXrender -L/usr/X11R7/lib -Wl,-rpath,/usr/X11R7/lib -lfontconfig  -L/usr/X11R7/lib -Wl,-rpath,/usr/X11R7/lib -lXft  -lXmu -Wl,-no-whole-archive  -o rpl
    (here: all object files)
../lapack/lapack/liblapack.a ../lapack/blas/libblas.a ../tools/readline-6.3/libhistory.a ../tools/readline-6.3/libreadline.a ../tools/ncurses-6.0/lib/libncurses.a ../tools/libiconv-1.14/lib/.libs/libiconv.a ../tools/openssl-1.0.2e/libcrypto.a ../tools/openssl-1.0.2e/libssl.a ../tools/sqlite-3.9.2/.libs/libsqlite3.a ../tools/libsigsegv-2.11/src/.libs/libsigsegv.a ../tools/zlib-1.2.8/libz.a ../tools/gsl-2.1/.libs/libgsl.a ../rplcas/lib/librplcas.a  -L/usr/X11R7/lib -R/usr/X11R7/lib -L/usr/X11R7/lib -lXt -lX11 -lXext -lgfortran -lpthread -lm  -lrt -lrt -lpthread

    As RPL/2 requires a fortran compiler, I have built gcc49 from pkgsrc tree :

legendre$ which gcc
/usr/pkg/gcc49/bin/gcc
legendre$ gcc -v
Utilisation des specs internes.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/pkg/gcc49/libexec/gcc/x86_64--netbsd/4.9.2/lto-wrapper
Target: x86_64--netbsd
Configuré avec: ../gcc-4.9.2/configure --enable-languages='c obj-c++ objc java fortran c++' --enable-shared --enable-long-long --with-local-prefix=/usr/pkg/gcc49 --enable-libssp --enable-threads=posix --with-boot-ldflags='-static-libstdc++ -static-libgcc -Wl,-R/usr/pkg/lib ' --with-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/bin/as --enable-nls --with-libiconv-prefix=/usr --with-gmp=/usr/pkg --with-mpc=/usr/pkg --with-mpfr=/usr/pkg --with-ecj-jar=/usr/pkgsrc/distfiles/ecj-4.5.jar --enable-java-home --with-os-directory=netbsd --with-arch-directory=amd64 --with-jvm-root-dir=/usr/pkg/java/gcc49 --with-java-home=/usr/pkg/java/gcc49 --with-system-zlib --enable-__cxa_atexit --with-gxx-include-dir=/usr/pkg/gcc49/include/c++/ --prefix=/usr/pkg/gcc49 --build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/gcc49/info --mandir=/usr/pkg/gcc49/man
Modèle de thread: posix
gcc version 4.9.2 (GCC) 

legendre$ nm libm.so | grep cabsl
0000000000018828 T __c99_cabsl

There is not unprotected symbol.

Best regards,

JKB


>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index