[Lunar-bugs] [Lunar Linux 0000292]: portmap 6.0 still doesn't compile

Lunar bug reports list lunar-bugs at lunar-linux.org
Sun Sep 30 16:17:47 CEST 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.lunar-linux.org/view.php?id=292 
====================================================================== 
Reported By:                gb
Assigned To:                dveatch
====================================================================== 
Project:                    Lunar Linux
Issue ID:                   292
Category:                   module
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Moonbase Version:           20070929.17 
Core Tools:                 Lunar 
Core Tools Version:         20070623 
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             09-30-2007 13:54 CEST
Last Modified:              09-30-2007 16:17 CEST
====================================================================== 
Summary:                    portmap 6.0 still doesn't compile
Description: 
(arch: x86_64)

#:make

cc -MM -O2 -Wall -Wstrict-prototypes *.c > .depend
cc -O2 -Wall -Wstrict-prototypes -fpie -DHOSTS_ACCESS -DCHECK_PORT
-DIGNORE_SIGCHLD      -DFACILITY=LOG_DAEMON   -c -o portmap.o portmap.c
cc -O2 -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'
cc -O2 -Wall -Wstrict-prototypes -fpie -DHOSTS_ACCESS -DCHECK_PORT
-DIGNORE_SIGCHLD      -DFACILITY=LOG_DAEMON   -c -o from_local.o
from_local.c
cc -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

====================================================================== 

---------------------------------------------------------------------- 
 dveatch - 09-30-07 14:18  
---------------------------------------------------------------------- 
Not seeing that problem here. And no. At this point do not comment out the
portmap CFLAGS/LDFLAGS Makefile. The error looks to be caused by
tcp_wrappers. Though that also compiled fine here. 

Perhaps try a relin of tcp_wrappers and then portmap. If that does not
correct the issue. Then try adding;

export CFLAGS="$CFLAGS -fPIC" 

to the BUILD of tcp_wrappers, then relin tcp_wrappers and portmap. 

---------------------------------------------------------------------- 
 gb - 09-30-07 16:06  
---------------------------------------------------------------------- 
Indeed, relining tcp_wrappers before "lin portmap" solved the problem.

Thank you very much. :) 

---------------------------------------------------------------------- 
 dveatch - 09-30-07 16:17  
---------------------------------------------------------------------- 
Based on users feedback closing this. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
09-30-07 13:54  gb             New Issue                                    
09-30-07 13:54  gb             Moonbase Version          => 20070929.17     
09-30-07 13:54  gb             Core Tools                => Lunar           
09-30-07 13:54  gb             Core Tools Version        => 20070623        
09-30-07 13:54  gb             Issue Monitored: gb                          
09-30-07 14:18  dveatch        Note Added: 0000648                          
09-30-07 16:06  gb             Note Added: 0000650                          
09-30-07 16:17  dveatch        Status                   new => resolved     
09-30-07 16:17  dveatch        Resolution               open => fixed       
09-30-07 16:17  dveatch        Assigned To               => dveatch         
09-30-07 16:17  dveatch        Note Added: 0000651                          
======================================================================



More information about the Lunar-bugs mailing list