[Lunar-bugs] [Lunar Linux 0000448]: iproute2 wont compile

noreply at bugs.lunar-linux.org noreply at bugs.lunar-linux.org
Sat May 8 00:50:06 GMT 2004


A BUGNOTE has been added to this bug.
=======================================================================
http://bugs.lunar-linux.org/view_bug_page.php?f_id=0000448
=======================================================================
Reporter:                   nhudson
Handler:                    
=======================================================================
Project:                    Lunar Linux
Bug ID:                     0000448
Category:                   moonbase
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
=======================================================================
Date Submitted:             2004-03-02 00:43 GMT
Last Modified:              2004-05-08 00:50 GMT
=======================================================================
Summary:                    iproute2 wont compile
Description: 
I cant get iproute2 to compile and I am trying to install the new
initscript system, halfway through and I get this.

gcc  -s -z combreloc  ip.o ipaddress.o iproute.o iprule.o rtm_map.o
iptunnel.o ipneigh.o iplink.o ipmaddr.o ipmonitor.o ipmroute.o
../lib/libnetlink.a ../lib/libutil.a  -lresolv -L../lib -lnetlink -lutil
-o ip
iptunnel.o(.text+0x687): In function `parse_args':
: undefined reference to `__constant_htons'
iptunnel.o(.text+0x6a3): In function `parse_args':
: undefined reference to `__constant_htons'
iptunnel.o(.text+0x78a): In function `parse_args':
: undefined reference to `__constant_htons'
iptunnel.o(.text+0x85f): In function `parse_args':
: undefined reference to `__constant_htons'
iptunnel.o(.text+0x91c): In function `parse_args':
: undefined reference to `__constant_htons'
iptunnel.o(.text+0x938): more undefined references to `__constant_htons'
follow
collect2: ld returned 1 exit status
make[1]: *** [ip] Error 1
make[1]: Leaving directory `/usr/src/iproute2/ip'
make: *** [all] Error 2
Creating /var/log/lunar/compile/iproute2-2.4.7-now-ss010824.bz2
! Problem detected during BUILD
root at nhudson /var/lib/lunar/moonbase/init #
=======================================================================

-----------------------------------------------------------------------
 hardkrash - 2004-03-15 04:43 GMT 
-----------------------------------------------------------------------
grepping /usr/include pulled up a couple of referances to __constant_htons

what kernel are you running, what kernel did you last compile glibc with
what compilier are you using and all that good stuff :-P

-----------------------------------------------------------------------
 nhudson - 2004-03-17 17:21 GMT 
-----------------------------------------------------------------------
at the time it was 2.6.2 with gcc 3.3.3 and 2.6.x kernel headers.

-----------------------------------------------------------------------
 guido.trentalancia - 2004-05-08 00:50 GMT 
-----------------------------------------------------------------------
Hi !
                                                                          
                                                   I saw you had troubles
with "iproute2".
                                                                          
                                                  
To compile the "iproute" package properly, you need to add the following
to
ip/iptunnel.c:
                                                                          
                                                  
#include <endian.h>
#include <asm/byteorder.h>
#include <linux/byteorder/swab.h>
                                                                          
                                                  
Hope it helps.
                                                                          
                                                  
Regards,
                                                                          
                                                  
Guido Trentalancia
guido.trentalancia at ieee.org


More information about the Lunar-bugs mailing list