Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 32588 - Apache 2.0.48 compile error
Summary: Apache 2.0.48 compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: rob holland (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-02 18:04 UTC by marco
Modified: 2011-10-30 23:16 UTC (History)
0 users

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 marco 2003-11-02 18:04:54 UTC
when emerging apache 2.0.48 ist stops on :
make[1]: Entering directory `/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48'
/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/srclib/apr/libtool --silent
--mode=link gcc    -mcpu=athlon -march=athlon -Os -pipe -fomit-frame-pointer
-funroll-loops -ffast-math  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE
-DAP_HAVE_DESIGNATED_INITIALIZER  
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/srclib/apr/include
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/srclib/apr-util/include -I.
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/os/unix
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/server/mpm/prefork
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/modules/http
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/modules/filters
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/modules/proxy
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/include
-I/usr/include/openssl
-I/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/modules/dav/main
-export-dynamic -L/usr/lib   -o apache2  modules.lo  modules/http/mod_http.la
modules/mappers/mod_so.la server/mpm/prefork/libprefork.la server/libmain.la
os/unix/libos.la -lz -lssl -lcrypto
/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/srclib/pcre/libpcre.la
/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/srclib/apr-util/libaprutil-0.la
-lldap -llber -lgdbm -ldb-4.0 -lexpat
/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48/srclib/apr/libapr-0.la -lrt -lm
-lcrypt -lnsl -ldl
server/.libs/libmain.al(exports.lo)(.data+0xb50): undefined reference to
`apr_threadkey_private_delete'
collect2: ld returned 1 exit status
make[1]: *** [apache2] Fehler 1
make[1]: Leaving directory `/var/tmp/portage/apache-2.0.48/work/httpd-2.0.48'

why it won't compile ?

i think it uses the internal apr ??


Reproducible: Always
Steps to Reproduce:
1.emerge apache 2.0.48
2.
3.
Comment 1 Chris Nott 2003-12-06 01:47:52 UTC
(this bug also appears in the apache bug database as bug #23837)

It appears there is a symbol exported that should only be exported if HAVE_PTHREAD_KEY_DELETE is defined.

My fix:
----- cut here -----
--- /tmp/apache-2.0.48-r1/work/httpd-2.0.48/srclib/apr/include/apr_thread_proc.h        2003-12-06 20:23:42.000000000 +1100
+++ ./srclib/apr/include/apr_thread_proc.h      2003-12-06 20:16:04.000000000 +1100
@@ -365,7 +365,9 @@
  * Free the thread private memory
  * @param key The handle for the desired thread private memory
  */
+#ifdef HAVE_PTHREAD_KEY_DELETE
 APR_DECLARE(apr_status_t) apr_threadkey_private_delete(apr_threadkey_t *key);
+#endif

 /**
  * Return the pool associated with the current threadkey.
----- cut here -----

With the above change, apache now compiles by hand with net-www/apache-2.0.48-r1.
Comment 2 rob holland (RETIRED) gentoo-dev 2004-01-08 09:13:20 UTC
will fix this shortly, been held up by some new repoman checks :) won't be long...
Comment 3 rob holland (RETIRED) gentoo-dev 2004-01-26 08:48:35 UTC
commited now (was committed a while ago, forgot to update bug :/ )
Comment 4 rob holland (RETIRED) gentoo-dev 2004-02-19 13:34:08 UTC
close