Bug#254916: pwlib: FTBFS: Shared libraries without -fPIC.
Kurt Roeckx
Kurt Roeckx <Q@ping.be>, 254916@bugs.debian.org
Thu, 17 Jun 2004 20:27:21 +0200
Package: pwlib
Version: 1.6.5-2
Severity: serious
When building shared libraries you should be using the -fPIC
option and static should be done without.
It's currently failing on this on atleast amd64 and hppa.
>From the log:
make[6]: Entering directory
`/home/freddy/build/pwlib/pwlib-1.6.5/plugins/sound_alsa'
mkdir -p ../pwlib/device/sound
g++ -DP_USE_PRAGMA -fno-rtti -ffunction-sections -fdata-sections
-D_REENTRANT -Wall -DP_64BIT
-I/home/freddy/build/pwlib/pwlib-1.6.5/include \
-lasound \
-I. -shared sound_alsa.cxx -o ../pwlib/device/sound/alsa.a
/usr/bin/ld: /tmp/ccKMnwDk.o: relocation R_X86_64_32 can not be
used when making a shared object; recompile with -fPIC
This looks really weird, it's using -shared for a .a file. Using
-fPIC actually makes this build on amd64 but is not the proper
solution. The extention should probably also be renamed to .so.
I really have no idea what the intention is here.
Kurt