Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postgres fails to build with threading on amd64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ali3nx
l33t
l33t


Joined: 21 Sep 2003
Posts: 732
Location: Winnipeg, Canada

PostPosted: Tue Jun 20, 2006 3:54 am    Post subject: postgres fails to build with threading on amd64 Reply with quote

I've a number of servers which all run threaded services stacks with nptl due to the performance advantages of using threading. While this is often been a great benifit a certain amount of hamony needs to exist with perl, php, apache and postgres where they all need to be thread safe or threaded. I've run into a snag awile ago with postgres on amd64 where it will not build with threads on either selinux or hardened amd64 aswell as non hardened amd64. If anyone has a suggestion or may be aware of a bug i'm all ears. error details and emerge --info are below.

Code:
checking for xgettext... xgettext
checking for onsgmls... no
checking for nsgmls... no
checking for openjade... no
checking for jade... no
checking for DocBook V4.2... no
checking for DocBook stylesheets... no
checking for collateindex.pl... /usr/bin/collateindex.pl
checking for sgmlspl... no
checking thread safety of required library functions... *** glibc detected *** double free or corruption (out): 0x00002c7e1840ec80 ***
no
configure: error:
*** Thread test program failed.  Your platform is not thread-safe.
*** Check the file 'config.log'for the exact reason.
***
*** You can use the configure option --enable-thread-safety-force
*** to force threads to be enabled.  However, you must then run
*** the program in src/tools/thread and add locking function calls
*** to your applications to guarantee thread safety.


!!! ERROR: dev-db/libpq-8.1.4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  libpq-8.1.4.ebuild, line 77:   Called die

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


Code:
excellent ~ # emerge --info
Portage 2.1 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-hardened x86_64)
=================================================================
System uname: 2.6.16-hardened x86_64 Intel(R) Xeon(TM) CPU 3.20GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  0.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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=nocona -Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.du.se/pub/os/gentoo ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.du.se/pub/os/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.eliteitminds.com/gentoo-portage"
USE="amd64 acl acpi apache2 authdaemond avi bash-completion berkdb bitmap-fonts bzip2 ccache cgi chroot cjk cli cluster crypt ctype cups curl curlwrappers dba dio dri eds emboss encode erandom exif expat extensions foomaticdb fortran ftp gdbm gif glibc-omitfp gmp gpm hardened icu idn imagemagick imap imlib innodb ipv6 isdnlog ithreads java javamail jpeg kde ldap libg++ logrotate logwatch lzw maildir memlimit mmext mp3 mpeg mpi mysql mysqli nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses neural nis nls nptl objc odbc offensive pam pam_chroot pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php pic png posix postgres pppd procmail python readline reflection ruby sasl sendfile session sftplogging shaper shared sharedext sharedmem simplexml snmp sockets softquota spl sqlite ssl sysvipc szip tcpd threads tiff truetype-fonts type1-fonts unicode urandom usb vda virtual-users virus-scan wddx wmf xinetd xml xml2 xmlrpc xorg xsl xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper!
Back to top
View user's profile Send private message
Syshalt
n00b
n00b


Joined: 26 Sep 2003
Posts: 22

PostPosted: Sun Jun 14, 2009 6:25 pm    Post subject: Reply with quote

Just got the same problem, found the fix here: Bug 234762
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum