problem compiling portmap
Thibaud de Borggraef
thibaud.deborggraef at telenet.be
Wed Oct 31 22:48:45 CET 2007
Trying to compile portmap I get this message:
*bash-3.1# lin portmap
Checking dependencies for portmap
Building portmap version 6.0
gcc -MM -O2 -march=athlon64 -pipe -Wall -Wstrict-prototypes *.c > .depend
gcc -O2 -march=athlon64 -pipe -Wall -Wstrict-prototypes -fpie
-DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD
-DFACILITY=LOG_DAEMON -c -o portmap.o portmap.c
gcc -O2 -march=athlon64 -pipe -Wall -Wstrict-prototypes -fpie
-DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD
-DFACILITY=LOG_DAEMON -c -o pmap_check.o pmap_check.c
pmap_check.c: In function 'good_client':
pmap_check.c:117: warning: implicit declaration of function 'hosts_ctl'
gcc -O2 -march=athlon64 -pipe -Wall -Wstrict-prototypes -fpie
-DHOSTS_ACCESS -DCHECK_PORT -DIGNORE_SIGCHLD
-DFACILITY=LOG_DAEMON -c -o from_local.o from_local.c
gcc -O2 -march=athlon64 -pipe -Wall -Wstrict-prototypes -DHOSTS_ACCESS
-DCHECK_PORT -DIGNORE_SIGCHLD -DFACILITY=LOG_DAEMON -c -o
pmap_dump.o pmap_dump.c
gcc -O2 -march=athlon64 -pipe -Wall -Wstrict-prototypes -DHOSTS_ACCESS
-DCHECK_PORT -DIGNORE_SIGCHLD -DFACILITY=LOG_DAEMON -c -o
pmap_set.o pmap_set.c
sed -e 's/RPCUSER//' -e 's/DAEMON_UID/1/' -e 's/DAEMON_GID/1/' <
portmap.8 > portmap.man
gcc -s -pie portmap.o pmap_check.o from_local.o -lwrap -o portmap
/usr/bin/ld:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libwrap.a(update.o):
relocation R_X86_64_32S against `a local symbol' can not be used when
making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/libwrap.a:
could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [portmap] Error 1
make: *** Waiting for unfinished jobs....
Creating /var/log/lunar/compile/portmap-6.0.bz2
! Problem detected during BUILD
Any idea on how to solve this?
thanks
*
More information about the Lunar
mailing list