dev-db/libpq-8.2.6 failed to configure Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.2.3, glibc-2.7-r1, 2.6.23-gentoo-r8 x86_64) ================================================================= System uname: 2.6.23-gentoo-r8 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Mon, 17 Mar 2008 13:30:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.3 dev-lang/python: 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LINGUAS="en nl" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/nouveau /home/marijn/git/gentoo-lisp-overlay /home/marijn/overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emacs emboss encode esd evo fam firefox fortran gdbm gif gmp gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde kerberos ldap lm_sensors mad midi mikmod mmx mng mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia offensive ogg opengl openmp pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection sdl session smp spell spl sse sse2 ssl svg tcpd theora threads tiff truetype unicode vorbis xinerama xml xorg xpm xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en nl" USERLAND="GNU" VIDEO_CARDS="fbdev nouveau nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 146393 [details] build.log
Created attachment 146396 [details] config.log
did you guys fix this? it's working now.
To repeat what I wrote for the same bug, but for dev-db/postgreql (both packages are affected, yes): I do _not_ have the slightest idea what's causing this error. What I know is: * it is sandbox related since it only appears when the sandbox is enabled and people having this problem were able to successfully compile libpq and/or postgresql when disabling the sandbox * I can't reproduce it properly. This error appears randomly. To answer your question: no, we didn't change anything.
Maybe this gives a hint whats going on? Tried to compile serveral times on a quad core intel (amd64), an one gives this message: [....] checking for msgmerge... msgmerge checking for xgettext... xgettext checking for onsgmls... onsgmls checking for openjade... openjade checking for DocBook V4.2... yes checking for DocBook stylesheets... /usr/share/sgml/stylesheets/dsssl/docbook checking for collateindex.pl... /usr/bin/collateindex.pl checking for sgmlspl... sgmlspl checking thread safety of required library functions... *** glibc detected *** ./conftest: malloc(): memory corruption: 0x0000000001acf390 *** ======= Backtrace: ========= /lib/libc.so.6[0x7f2b2ccdcaad] /lib/libc.so.6[0x7f2b2ccded36] /lib/libc.so.6(__libc_malloc+0x7d)[0x7f2b2cce033d] /usr/lib/libsandbox.so[0x7f2b2e28fbad] /usr/lib/libsandbox.so[0x7f2b2e290c9b] /usr/lib/libsandbox.so(unlink+0xdd)[0x7f2b2e2913c9] ./conftest[0x400e2b] /lib/libpthread.so.0[0x7f2b2cfb5037] /lib/libc.so.6(clone+0x6d)[0x7f2b2cd3025d] ======= Memory map: ======== 00400000-00402000 r-xp 00000000 09:00 8467112 /var/tmp/portage/dev-db/libpq-8.2.7/work/postgresql-8.2.7/conftest 00601000-00602000 r--p 00001000 09:00 8467112 /var/tmp/portage/dev-db/libpq-8.2.7/work/postgresql-8.2.7/conftest 00602000-00603000 rw-p 00002000 09:00 8467112 /var/tmp/portage/dev-db/libpq-8.2.7/work/postgresql-8.2.7/conftest 01acd000-01aee000 rw-p 01acd000 00:00 0 [heap] 4178d000-4178e000 ---p 4178d000 00:00 0 4178e000-41f8e000 rw-p 4178e000 00:00 0 41f8e000-41f8f000 ---p 41f8e000 00:00 0 41f8f000-4278f000 rw-p 41f8f000 00:00 0 7f2b20000000-7f2b20021000 rw-p 7f2b20000000 00:00 0 7f2b20021000-7f2b24000000 ---p 7f2b20021000 00:00 0 7f2b28000000-7f2b28021000 rw-p 7f2b28000000 00:00 0 7f2b28021000-7f2b2c000000 ---p 7f2b28021000 00:00 0 7f2b2c807000-7f2b2c813000 r-xp 00000000 09:00 2314 /lib64/libgcc_s.so.1 7f2b2c813000-7f2b2ca12000 ---p 0000c000 09:00 2314 /lib64/libgcc_s.so.1 7f2b2ca12000-7f2b2ca13000 r--p 0000b000 09:00 2314 /lib64/libgcc_s.so.1 7f2b2ca13000-7f2b2ca14000 rw-p 0000c000 09:00 2314 /lib64/libgcc_s.so.1 7f2b2ca14000-7f2b2ca60000 r-xp 00000000 09:00 6518692 /lib64/libncurses.so.5.6 7f2b2ca60000-7f2b2cc60000 ---p 0004c000 09:00 6518692 /lib64/libncurses.so.5.6 7f2b2cc60000-7f2b2cc6d000 r--p 0004c000 09:00 6518692 /lib64/libncurses.so.5.6 7f2b2cc6d000-7f2b2cc6f000 rw-p 00059000 09:00 6518692 /lib64/libncurses.so.5.6 7f2b2cc6f000-7f2b2cc70000 rw-p 7f2b2cc6f000 00:00 0 7f2b2cc70000-7f2b2cda6000 r-xp 00000000 09:00 5546375 /lib64/libc-2.6.1.so 7f2b2cda6000-7f2b2cfa5000 ---p 00136000 09:00 5546375 /lib64/libc-2.6.1.so 7f2b2cfa5000-7f2b2cfa9000 r--p 00135000 09:00 5546375 /lib64/libc-2.6.1.so 7f2b2cfa9000-7f2b2cfaa000 rw-p 00139000 09:00 5546375 /lib64/libc-2.6.1.so 7f2b2cfaa000-7f2b2cfaf000 rw-p 7f2b2cfaa000 00:00 0 7f2b2cfaf000-7f2b2cfc4000 r-xp 00000000 09:00 5548406 /lib64/libpthread-2.6.1.so 7f2b2cfc4000-7f2b2d1c4000 ---p 00015000 09:00 5548406 /lib64/libpthread-2.6.1.so 7f2b2d1c4000-7f2b2d1c5000 r--p 00015000 09:00 5548406 /lib64/libpthread-2.6.1.so 7f2b2d1c5000-7f2b2d1c6000 rw-p 00016000 09:00 5548406 /lib64/libpthread-2.6.1.so 7f2b2d1c6000-7f2b2d1ca000 rw-p 7f2b2d1c6000 00:00 0 7f2b2d1ca000-7f2b2d24a000 r-xp 00000000 09:00 5548114 /lib64/libm-2.6.1.so 7f2b2d24a000-7f2b2d449000 ---p 00080000 09:00 5548114 /lib64/libm-2.6.1.so 7f2b2d449000-7f2b2d44a000 r--p 0007f000 09:00 5548114 /lib64/libm-2.6.1.so 7f2b2d44a000-7f2b2d44b000 rw-p 00080000 09:00 5548114 /lib64/libm-2.6.1.so 7f2b2d44b000-7f2b2d44d000 r-xp 00000000 09:00 5548166 /lib64/libdl-2.6.1.so 7f2b2d44d000-7f2b2d64d000 ---p 00002000 09:00 5548166 /lib64/libdl-2.6.1.so 7f2b2d64d000-7f2b2d64e000 r--p 00002000 09:00 5548166 /lib64/libdl-2.6.1.so 7f2b2d64e000-7f2b2d64f000 rw-p 00003000 09:00 5548166 /lib64/libdl-2.6.1.so 7f2b2d64f000-7f2b2d654000 r-xp 00000000 09:00 5548398 /lib64/libcrypt-2.6.1.so 7f2b2d654000-7f2b2d853000 ---p 00005000 09:00 5548398 /lib64/libcrypt-2.6.1.so 7f2b2d853000-7f2b2d854000 r--p 00004000 09:00 5548398 /lib64/libcrypt-2.6.1.so 7f2b2d854000-7f2b2d855000 rw-p 00005000 09:00 5548398 /lib64/libcrypt-2.6.1.so 7f2b2d855000-7f2b2d883000 rw-p 7f2b2d855000 00:00 0 7f2b2d883000-7f2b2d8b8000 r-xp 00000000 09:00 7182958 /lib64/libreadline.so.5.2 7f2b2d8b8000-7f2b2dab7000 ---p 00035000 09:00 7182958 /lib64/libreadline.so.5.2 7f2b2dab7000-7f2b2dab9000 r--p 00034000 09:00 7182958 /lib64/libreadline.so.5.2 7f2b2dab9000-7f2b2dabf000 rw-p 00036000 09:00 7182958 /lib64/libreadline.so.5.2 7f2b2dabf000-7f2b2dac1000 rw-p 7f2b2dabf000 00:00 0 7f2b2dac1000-7f2b2dc11000 r-xp 00000000 09:00 4913951 /usr/lib64/libcrypto.so.0.9.8 7f2b2dc11000-7f2b2de10000 ---p 00150000 09:00 4913951 /usr/lib64/libcrypto.so.0.9.8 7f2b2de10000-7f2b2de1e000 r--p 0014f000 09:00 4913951 /usr/lib64/libcrypto.so.0.9.8 7f2b2de1e000-7f2b2de34000 rw-p 0015d000 09:00 4913951 /usr/lib64/libcrypto.so.0.9.8 7f2b2de34000-7f2b2de38000 rw-p 7f2b2de34000 00:00 0 7f2b2de38000-7f2b2de7c000 r-xp 00000000 09:00 4913954 /usr/lib64/libssl.so.0.9.8 7f2b2de7c000-7f2b2e07b000 ---p 00044000 09:00 4913954 /usr/lib64/libssl.so.0.9.8 7f2b2e07b000-7f2b2e07d000 r--p 00043000 09:00 4913954 no configure: error: thread test program failed This platform is not thread-safe. Check the file 'config.log'for the exact reason. [...] The threads are running: seaborg:/var/tmp/portage/dev-db/libpq-8.2.7/work/postgresql-8.2.7 # gdb -c core.6657 GNU gdb 6.7.1 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `./conftest'. Program terminated with signal 6, Aborted. #0 0x00007f2b2cca03c5 in ?? () (gdb) info thr 3 process 6657 0x00007f2b2cd1a6f7 in ?? () 2 process 6659 0x00007f2b2cd24a87 in ?? () * 1 process 6658 0x00007f2b2cca03c5 in ?? ()
I was having this problem until I updated autoconf 2.61-r1 The other work around I found was to edit the configure.in file and change the line 16577 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2" to acx_pthread_flags="pthread none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2" but this fix is system dependant
(In reply to comment #6) > I was having this problem until I updated autoconf 2.61-r1 That did not work for me; I tried autoconf-2.59-r1 / autoconf-2.61-r1 / autoconf-2.62 (as well as just the slotted autoconf-2.13 - no others) - same threads errors - the only thing that worked for me was disabling sandboxes.
This is gone in dev-db/postgresql-{base,server}. Thanks.
*** Bug 292493 has been marked as a duplicate of this bug. ***