Bug#764740: qrouter: FTBFS on various architectures "recompile with -fPIC"
James Cowgill
james410 at cowgill.org.uk
Fri Oct 10 17:51:23 UTC 2014
Source: qrouter
Version: 1.3.1-1
Severity: serious
Justification: Policy 10.2
Hi,
Your package fails to build on various architectures because some files
were not compiled with -fPIC.
Eg on mips:
> cc -g -O2 -Wformat -Werror=format-security -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DQROUTER_PATH=\"/usr/lib/qrouter\" -DHAVE_LIBXT=1 -DTCL_QROUTER=1 -DLINUX=1 -DSYSV=1 -DVERSION=\"1.3\" -DREVISION=\"1\" -I/usr/include/tcl8.6/tk-private/generic -I/usr/include/tcl8.6 -c tclqrouter.c -o tclqrouter.o
> cc -g -O2 -Wformat -Werror=format-security -g -O2 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SETENV=1 -DHAVE_PUTENV=1 -DHAVE_VA_COPY=1 -DHAVE___VA_COPY=1 -DQROUTER_PATH=\"/usr/lib/qrouter\" -DHAVE_LIBXT=1 -DTCL_QROUTER=1 -DLINUX=1 -DSYSV=1 -DVERSION=\"1.3\" -DREVISION=\"1\" -I/usr/include/tcl8.6/tk-private/generic -I/usr/include/tcl8.6 -c tkSimple.c -o tkSimple.o
> rm -f qrouter.so
> cc -g -O2 -Wformat -Werror=format-security -g -O2 -Wformat -Werror=format-security -fPIC -o qrouter.so \
> -shared -Wl,-soname,qrouter.so -Wl,--version-script=symbol.map qrouter.o maze.o node.o qconfig.o lef.o def.o graphics.o tclqrouter.o tkSimple.o \
> -Wl,-z,relro -Wl,--as-needed -lc -lXt -lSM -lICE -lX11 \
> -ltk8.6 -ltcl8.6 -ldl -lm
> /usr/bin/ld: qrouter.o: relocation R_MIPS_HI16 against `__gnu_local_gp' can not be used when making a shared object; recompile with -fPIC
All input files must be compiled with -fPIC when compiling shared
libraries, don't just add -fPIC to the link stage.
Thanks,
James
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages qrouter depends on:
ii libc6 2.19-11
ii libtcl8.6 8.6.2+dfsg-1
ii libtk8.6 8.6.2-1
ii libx11-6 2:1.6.2-3
ii tkcon 2:2.7~20130123-2
qrouter recommends no packages.
qrouter suggests no packages.
-- no debconf information
More information about the debian-science-maintainers
mailing list