Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 28447

Summary: emerge apache fails (HAVE_PTHREAD_KEY_DELETE no defined correctly)
Product: Gentoo Linux Reporter: marcus <m.scotti>
Component: [OLD] ServerAssignee: Apache Team - Bugzilla Reports <apache-bugs>
Status: VERIFIED NEEDINFO    
Severity: normal    
Priority: High    
Version: 1.4   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description marcus 2003-09-11 08:15:46 UTC
emerge apache stops with [all-recursive] Error 1

the version of apache I had this problem with is 2.0.47

> cd /var/tmp/portage/apache-2.0.47/work/httpd-2.0.47/
> make

now the error message is more specific:
in libmain.al(exports.lo) undefined symbol apr_threadkey_private_delete

It turns out that configure doesn't set HAVE_PTHREAD_KEY_DELETE correctly

my bodged fix is to:
1. comment out the #ifdef HAVE_PTHREAD_KEY_DELETE in
httpd-2.0.47/srclib/apr/threadproc/unix/threadpriv.c, 
2. tar everything back up to /usr/portage/distfiles/httpd-2.0.47.tar.gz,
3. generate a new checksum for
/usr/portage/net-www/apache/files/digest-apache-2.0.47 and 
4. rerun emerge apache. 

Now everything works fine, but it was a bit of a hassle.
Comment 1 Donny Davies (RETIRED) gentoo-dev 2003-09-26 19:25:54 UTC
using linux-2.6.x and/or that new threading library?
Comment 2 Chuck Short (RETIRED) gentoo-dev 2004-04-06 07:33:50 UTC
In order for us to debug your problem more, we need to have more information. 

IE emerge info, kernel, if you are using the new threading library thanks.

chuck
Comment 3 Chuck Short (RETIRED) gentoo-dev 2004-04-14 11:15:42 UTC
No response, closing bug.
Comment 4 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-04-23 19:38:50 UTC
Closing.