Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47187 - iproute-20010824-r5 compile failure
Summary: iproute-20010824-r5 compile failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High major (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-08 00:23 UTC by Andrei Ivanov
Modified: 2004-04-09 22:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Ivanov 2004-04-08 00:23:27 UTC
gcc -D_GNU_SOURCE -march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse -Wstrict-prototypes -Wall -g -I../include -include ../include-glibc/glibc-bugs.h -I/usr/include -DRESOLVE_HOSTNAMES   -c -o iptunnel.o iptunnel.c
iptunnel.c: In function `parse_args':
iptunnel.c:208: warning: implicit declaration of function `__constant_htons'
...
...

gcc   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
gcc   rtacct.o  -lresolv -L../lib -lnetlink -lutil -o rtacct
iptunnel.o(.text+0x162): In function `print_tunnel':
/var/tmp/portage/iproute-20010824-r5/work/iproute2/ip/iptunnel.c:439: undefined reference to `__constant_htons'
iptunnel.o(.text+0x176):/var/tmp/portage/iproute-20010824-r5/work/iproute2/ip/iptunnel.c:439: undefined reference to `__constant_htons'
iptunnel.o(.text+0x1a5):/var/tmp/portage/iproute-20010824-r5/work/iproute2/ip/iptunnel.c:441: undefined reference to `__constant_htons'
iptunnel.o(.text+0x1bd):/var/tmp/portage/iproute-20010824-r5/work/iproute2/ip/iptunnel.c:448: undefined reference to `__constant_htons'
iptunnel.o(.text+0x1d5):/var/tmp/portage/iproute-20010824-r5/work/iproute2/ip/iptunnel.c:450: undefined reference to `__constant_htons'
iptunnel.o(.text+0x1e9):/var/tmp/portage/iproute-20010824-r5/work/iproute2/ip/iptunnel.c:452: more undefined references to `__constant_htons' follow
collect2: ld returned 1 exit status
make[1]: *** [ip] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/var/tmp/portage/iproute-20010824-r5/work/iproute2/ip'
make: *** [all] Error 2


Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0, 2.6.4-gentoo-r1)
=================================================================
System uname: 2.6.4-gentoo-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.4
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -fprefetch-loop-arrays -ffast-math -fforce-addr -falign-functions=4 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl adns apache2 berkdb crypt curl flash gd gdbm gif gpm imap innodb java jpeg ldap libg++ libwww maildir mcal memlimit ncurses nls noauthcram nptl oss pam pdflib pg-hier pg-intdatetime pg-vacuumdelay pic png python readline samba slang slp spell sse ssl tcpd tiff truetype x86 xml xml2 zlib"

Using sys-kernel/linux-headers-2.6.5
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-04-08 04:23:03 UTC
drop down your CFLAGS and try again
Comment 2 Andrei Ivanov 2004-04-08 12:44:16 UTC
Exactly the same error with
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer"
Comment 3 SpanKY gentoo-dev 2004-04-08 14:37:59 UTC
CFLAGS shouldnt matter ...

what does `head -n 3 /usr/portage/sys-apps/iproute/iproute-20010824-r5.ebuild` show ?
Comment 4 Andrei Ivanov 2004-04-08 21:31:09 UTC
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/sys-apps/iproute/iproute-20010824-r5.ebuild,v 1.8 2004/04/07 17:45:46 kloeri Exp $
Comment 5 SpanKY gentoo-dev 2004-04-08 21:52:53 UTC
how about `ls /var/db/pkg/sys-kernel/` ?
Comment 6 Andrei Ivanov 2004-04-09 00:14:56 UTC
ls /var/db/pkg/sys-kernel/
gentoo-dev-sources-2.6.3-r2  gentoo-sources-2.4.22-r4  gentoo-sources-2.4.22-r7   ksymoops-2.4.9       vanilla-sources-2.4.25
gentoo-dev-sources-2.6.4-r1  gentoo-sources-2.4.22-r5  gs-sources-2.4.25_pre7-r2  linux-headers-2.6.5
Comment 7 Andrei Ivanov 2004-04-09 13:45:16 UTC
Upgraded kernel to gentoo-dev-sources-2.6.5 and the same error happens.

Raising severity to major because of the security issues caused by the imposibility to upgrade.
Comment 8 SpanKY gentoo-dev 2004-04-09 22:06:37 UTC
it's not related to your kernel, it's related to your headers

fixed in cvs