trouble building RPM
adrian.p.smith at bt.com
adrian.p.smith at bt.com
Sat Jan 25 18:49:20 CET 2014
Trying to upgrade from 2.1.12 on our antiquated OS and cannot build the RPM.
/usr/bin/libtool --mode=link gcc -release 020203 \
-pie -Wl,-znow -export-dynamic -o libfreeradius-radius.la -rpath /usr/lib64/freeradius dict.lo filters.lo hash.lo hmac.lo hmacsha1.lo isaac.lo log.lo misc.lo missing.lo md4.lo md5.lo print.lo radius.lo rbtree.lo sha1.lo snprintf.lo strlcat.lo strlcpy.lo token.lo udpfromto.lo valuepair.lo fifo.lo packet.lo event.lo getaddrinfo.lo vqp.lo heap.lo dhcp.lo base64.lo
gcc -shared .libs/dict.o .libs/filters.o .libs/hash.o .libs/hmac.o .libs/hmacsha1.o .libs/isaac.o .libs/log.o .libs/misc.o .libs/missing.o .libs/md4.o .libs/md5.o .libs/print.o .libs/radius.o .libs/rbtree.o .libs/sha1.o .libs/snprintf.o .libs/strlcat.o .libs/strlcpy.o .libs/token.o .libs/udpfromto.o .libs/valuepair.o .libs/fifo.o .libs/packet.o .libs/event.o .libs/getaddrinfo.o .libs/vqp.o .libs/heap.o .libs/dhcp.o .libs/base64.o -Wl,-znow -Wl,-soname -Wl,libfreeradius-radius-020203.so -o .libs/libfreeradius-radius-020203.so
/usr/bin/ld: .libs/dict.o: relocation R_X86_64_PC32 against `dict_attr_types' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[4]: *** [libfreeradius-radius.la] Error 1
gmake[4]: Leaving directory `/usr/src/redhat/BUILD/freeradius-server-2.2.3/src/lib'
gmake[3]: *** [lib] Error 2
gmake[3]: Leaving directory `/usr/src/redhat/BUILD/freeradius-server-2.2.3/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/usr/src/redhat/BUILD/freeradius-server-2.2.3/src'
gmake[1]: *** [src] Error 2
gmake[1]: Leaving directory `/usr/src/redhat/BUILD/freeradius-server-2.2.3'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.56364 (%build)
It does appear to be compiling with -fPIC
Any ideas appreciated
Regards,
Adrian Smith
More information about the Freeradius-Users
mailing list