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"
Created attachment 347042 [details] build log
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?
(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)?
(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.
For what I can see, it is defined for the 2.12.2 version, so I suggest to change the DEPEND
not specific to SuperH
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