Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468120 - sys-apps/iproute2 fails to compile with <sys-libs/glibc-2.12
Summary: sys-apps/iproute2 fails to compile with <sys-libs/glibc-2.12
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-01 11:05 UTC by Agostino Sarubbo
Modified: 2013-05-04 05:09 UTC (History)
0 users

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


Attachments
build log (iproute2-3.8.0:20130428-115840.log,6.94 KB, text/plain)
2013-05-01 11:06 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2013-05-01 11:05:54 UTC
Portage 2.1.11.52 (default/linux/sh/13.0, gcc-4.6.3, glibc-2.11.3, 2.6.30.9 sh4)
=================================================================
System uname: Linux-2.6.30.9-sh4-SH7751R-with-gentoo-2.2
KiB Mem:       60920 total,      4240 free
KiB Swap:     999928 total,    878712 free
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.11.3
Repositories: gentoo
ACCEPT_KEYWORDS="sh"
ACCEPT_LICENSE="*"
CBUILD="sh4-unknown-linux-gnu"
CFLAGS="-O2 -m4 -pipe"
CHOST="sh4-unknown-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo 
/etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -m4 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --keep-going y -1 --quiet-fail y"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms split-log 
strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
PKGDIR="/var/foo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles 
--exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cxx fortran gdbm gpm gudev hwdb iconv ipv6 modules mudflap ncurses nls nossp nptl openmp pam pcre readline session sh ssl tcpd 
unicode zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug 
rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 
OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 
USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l"
USE_PYTHON="2.7 3.2"
Comment 1 Agostino Sarubbo gentoo-dev 2013-05-01 11:06:40 UTC
Created attachment 347042 [details]
build log
Comment 2 Agostino Sarubbo gentoo-dev 2013-05-01 11:09:05 UTC
  29 Apr 2013; Mike Frysinger <vapier@gentoo.org> iproute2-3.8.0.ebuild:                                                                                                            
  Mark s390/sh stable #458004.

@vapier, with which USE combo it worked for you?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2013-05-01 12:10:34 UTC
(In reply to comment #2)
> @vapier, with which USE combo it worked for you?

ipnetns.c:156:29: error: 'MS_SLAVE' undeclared (first use in this function)
ipnetns.c:156:40: error: 'MS_REC' undeclared (first use in this function)
ipnetns.c:372:42: error: 'MS_SHARED' undeclared (first use in this function)

Those are #define's from /usr/include/sys/mount.h
However I see #include <sys/mount.h> in iproute2-3.8.0/ip/ipnetns.c already.

Do you see MS_SLAVE, MS_REC, MS_SHARED in your copy of /usr/include/sys/mount.h (which is part of glibc)?
Comment 4 Agostino Sarubbo gentoo-dev 2013-05-01 12:31:08 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > @vapier, with which USE combo it worked for you?
> 
> ipnetns.c:156:29: error: 'MS_SLAVE' undeclared (first use in this function)
> ipnetns.c:156:40: error: 'MS_REC' undeclared (first use in this function)
> ipnetns.c:372:42: error: 'MS_SHARED' undeclared (first use in this function)
> 
> Those are #define's from /usr/include/sys/mount.h
> However I see #include <sys/mount.h> in iproute2-3.8.0/ip/ipnetns.c already.
> 
> Do you see MS_SLAVE, MS_REC, MS_SHARED in your copy of
> /usr/include/sys/mount.h (which is part of glibc)?

Obviously no.

sh ~ # cat /usr/include/sys/mount.h | grep -E "(MS_SLAVE|MS_REC|MS_SHARED)" | wc -l
0   

sh ~ # qfile -v /usr/include/sys/mount.h                                             
sys-libs/glibc-2.11.3 (/usr/include/sys/mount.h)

I have the latest stable version as an arch team member should have, I don't know which version Mike has.
Comment 5 Agostino Sarubbo gentoo-dev 2013-05-01 12:39:13 UTC
For what I can see, it is defined for the 2.12.2 version, so I suggest to change the DEPEND
Comment 6 SpanKY gentoo-dev 2013-05-02 01:29:32 UTC
not specific to SuperH
Comment 7 SpanKY gentoo-dev 2013-05-04 05:09:15 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix build with older C libs and missing defines in mount.h
http://sources.gentoo.org/sys-apps/iproute2/files/iproute2-3.8.0-old-mount-libc.patch?rev=1.1
http://sources.gentoo.org/sys-apps/iproute2/iproute2-3.8.0.ebuild?r1=1.13&r2=1.14