Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423491 - sys-libs/uclibc-0.9.33.2: gnulib's rpmatch.c:58:1: error: redefinition of 'rpmatch' /// /usr/include/stdlib.h:810:28: note: previous definition of 'rpmatch' was here
Summary: sys-libs/uclibc-0.9.33.2: gnulib's rpmatch.c:58:1: error: redefinition of 'rp...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Embedded Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 17:15 UTC by Jude Pereira
Modified: 2012-07-05 04:12 UTC (History)
1 user (show)

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


Attachments
build.log for findutils (build.log,46.69 KB, text/plain)
2012-06-26 16:07 UTC, Jude Pereira
Details
build log for tar (build.log,39.01 KB, text/plain)
2012-06-26 16:13 UTC, Jude Pereira
Details
Disables uclibc provided rpmatch (disable-uclibc-rpmatch.patch,472 bytes, patch)
2012-06-30 20:47 UTC, Anthony Basile
Details | Diff
Patch against uclibc-0.9.33.2 to prevent application Gentoo specific patches (vanilla-uclibc.patch,622 bytes, patch)
2012-06-30 22:30 UTC, Anthony Basile
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jude Pereira 2012-06-25 17:15:25 UTC
When building sys-apps/findutils-4.4.2-r1 on uclibc, it fails at this point:

In file included from regex.c:58:
regex_internal.h:185:55: warning: integer overflow in preprocessor expression
rpmatch.c:58: error: redefinition of 'rpmatch'
/usr/include/stdlib.h:810: note: previous definition of 'rpmatch' was here
make[4]: *** [rpmatch.o] Error 1
make[4]: *** Waiting for unfinished jobs....


If I comment out the entire rpmatch function in stdlib.h, it builds just fine.
Is this a good workaround?
Comment 1 Jeroen Roovers gentoo-dev 2012-06-26 15:54:32 UTC
1) Please post your `emerge --info' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 Jude Pereira 2012-06-26 16:05:36 UTC
emerge --info


Portage 2.1.10.49 (uclibc/x86, gcc-4.5.3, uclibc-0.9.33.2, 2.6.38-hardened-no-grsec-no-pax-default-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-hardened-no-grsec-no-pax-default-r1-x86_64-AMD_Turion-tm-_64_X2_Mobile_Technology_TL-52-with-gentoo-2.1
Timestamp of tree: Mon, 18 Jun 2012 00:45:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.1-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/uclibc:          0.9.33.2
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-march=i386 -Os -pipe"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=i386 -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-Os"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-Os"
GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="cli crypt cxx dri modules mudflap ncurses openmp pcre readline session ssl tcpd uclibc x86 xorg 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="uclibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Jude Pereira 2012-06-26 16:07:01 UTC
Created attachment 316323 [details]
build.log for findutils
Comment 4 Jude Pereira 2012-06-26 16:12:05 UTC
This also happens for a few other packages, like app-arch/tar-1.26. 
I will attach the build log for that too.
Comment 5 Jude Pereira 2012-06-26 16:13:10 UTC
Created attachment 316325 [details]
build log for tar
Comment 6 Anthony Basile gentoo-dev 2012-06-27 11:50:31 UTC
(In reply to comment #5)
> Created attachment 316325 [details]
> build log for tar

This also happens for coreutils.
Comment 7 Anthony Basile gentoo-dev 2012-06-30 20:47:45 UTC
Created attachment 316805 [details, diff]
Disables uclibc provided rpmatch

This is a quick and (possibly?) dirty patch against /usr/include/stdlib.h to disable the uclibc provided definition of rpmatch.

FYI: I think rpmatch should be migrated into libc, but we'll need to patch and push upstream at least three fixes.
Comment 8 Anthony Basile gentoo-dev 2012-06-30 22:05:52 UTC
@vapier, I was confused why I wasn't hitting this on vanilla uclibc, and then noticed this is due to your 00_all_rpmatch.patch.  My patch in the previous comment just reverts yours.  How should we proceed with this?  What do you think of a USE="vanilla" like we have with gcc and glibc?
Comment 9 Anthony Basile gentoo-dev 2012-06-30 22:30:20 UTC
Created attachment 316817 [details, diff]
Patch against uclibc-0.9.33.2 to prevent application Gentoo specific patches