Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 120837 - ERROR: dev-libs/apr-0.9.7 failed. `PTHREAD_PRIO_INHERIT' undeclared
Summary: ERROR: dev-libs/apr-0.9.7 failed. `PTHREAD_PRIO_INHERIT' undeclared
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-29 10:43 UTC by Alexey Maximov
Modified: 2006-04-01 03:42 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 Alexey Maximov 2006-01-29 10:43:24 UTC
make[2]: Leaving directory `/var/tmp/portage/apr-0.9.7/work/apr-0.9.7/misc/unix'
make[1]: Leaving directory `/var/tmp/portage/apr-0.9.7/work/apr-0.9.7/misc/unix'
Making all in locks/unix
make[1]: Entering directory `/var/tmp/portage/apr-0.9.7/work/apr-0.9.7/locks/unix'
make[2]: Entering directory `/var/tmp/portage/apr-0.9.7/work/apr-0.9.7/locks/unix'
/bin/sh /var/tmp/portage/apr-0.9.7/work/apr-0.9.7/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -pthread  -march=k8 -O2 -fomit-frame-pointer -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   -I../../include -I../../include/arch -I../../include/arch/unix  -c thread_mutex.c && touch thread_mutex.lo
/bin/sh /var/tmp/portage/apr-0.9.7/work/apr-0.9.7/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -pthread  -march=k8 -O2 -fomit-frame-pointer -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   -I../../include -I../../include/arch -I../../include/arch/unix  -c thread_rwlock.c && touch thread_rwlock.lo
/bin/sh /var/tmp/portage/apr-0.9.7/work/apr-0.9.7/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -pthread  -march=k8 -O2 -fomit-frame-pointer -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   -I../../include -I../../include/arch -I../../include/arch/unix  -c thread_cond.c && touch thread_cond.lo
/bin/sh /var/tmp/portage/apr-0.9.7/work/apr-0.9.7/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -pthread  -march=k8 -O2 -fomit-frame-pointer -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE   -I../../include -I../../include/arch -I../../include/arch/unix  -c proc_mutex.c && touch proc_mutex.lo
proc_mutex.c: In function `proc_mutex_proc_pthread_create':
proc_mutex.c:341: error: `PTHREAD_PRIO_INHERIT' undeclared (first use in this function)
proc_mutex.c:341: error: (Each undeclared identifier is reported only once
proc_mutex.c:341: error: for each function it appears in.)
make[2]: *** [proc_mutex.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/apr-0.9.7/work/apr-0.9.7/locks/unix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/apr-0.9.7/work/apr-0.9.7/locks/unix'
make: *** [all-recursive] Error 1

!!! ERROR: dev-libs/apr-0.9.7 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.



Portage 2.1_pre4 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.90.20060121-r0, 2.6.15-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r1 x86_64 AMD Opteron(tm) Processor 244
Gentoo Base System version 1.12.0_pre15
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -O2 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 apache2 bash-completion berkdb crypt extensions glibc-omitfp mailwrapper mbox multislot ncurses nptl nptlonly pam pam_chroot pam_console pic readline slang ssl threads unicode urandom userlocales utf-8 utf8 zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS
Comment 1 Jory A. Pratt 2006-01-29 10:46:00 UTC
try MAKEOPTS="-j1" emerge dev-libs/apr and report back.
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2006-01-29 10:49:53 UTC
if you're going to use an unsupported glibc, don't post bug reports.  and at least read the entire forum post.

---
dev-libs/apr fail to build against glibc 2.3.90
Run export ac_cv_func_pthread_mutexattr_setrobust_np=no before you emerge it.
---

http://forums.gentoo.org/viewtopic-t-376943.html
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-01-29 10:58:49 UTC
Closing.
Comment 4 Alexey Maximov 2006-01-29 11:03:53 UTC
FIXED :-) works thanks
Comment 5 Patrick Borjesson 2006-04-01 03:42:34 UTC
I had it fail in the exact same way as the OP (running ~amd64), so the bug as such is not really invalid anymore since glibc-2.4 is now unmasked. 

The export "hack" is _not_ a valid solution as it should be included in the ebuild if it's required to build apr when using glibc-2.4

$ emerge --info
Portage 2.1_pre7-r3 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.4-r1, 2.6.16-gentoo x86_64)
=================================================================
System uname: 2.6.16-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /usr/lib/X11/xkb /etc/env.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://mirror.pudas.net/gentoo http://ftp.du.se/pub/os/gentoo"
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/psycho/coding/portage_overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X aac acl alsa avi bash-completion browserplugin bzip2 cairo cjk crypt cups dbus dri dvd dvdr fam ffmpeg flac ftp gif glut gnutls gstreamer gtk2 hal imagemagick imap imlib jabber javascript jpeg kdeenablefinal lm_sensors mad maildir mailwrapper matroska mng mp3 mpeg mplayer musicbrainz ncurses nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl oss pam png ppds python quicktime readline ruby samba sasl sdl spell ssl subversion syslog tcpd theora tiff truetype unicode usb vcd vhosts vorbis xcomposite xine xinerama xml xml2 xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_none video_cards_nv video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, LDFLAGS, LINGUAS