You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by CC <cc...@kdtc.net> on 2010/08/28 06:11:25 UTC
[users@httpd] 2.2.16 and pthread
Hi,
I just downloaded 2.2.16 and am trying to compile it, but I'm getting
an error:
/usr/lib/apr-1.3.3/build-1/libtool --silent --mode=link
i486-slackware-linux-gcc -pthread -L/usr/local/ssl/lib -o htpasswd
htpasswd.lo -lm /home/compile/httpd-2.2.16/srclib/pcre/libpcre.la
/usr/lib/libaprutil-1.la -ldb-4.4 -lexpat /usr/lib/libapr-1.la -luuid
-lrt -lcrypt -lpthread -ldl
/usr/lib/libapr-1.so: undefined reference to
`pthread_mutexattr_setprotocol@GLIBC_2.4'
/usr/lib/libapr-1.so: undefined reference to
`pthread_mutexattr_setrobust_np@GLIBC_2.4'
/usr/lib/libapr-1.so: undefined reference to
`pthread_mutex_consistent_np@GLIBC_2.4'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/home/compile/httpd-2.2.16/support'
make[1]: ** [all-recursive] Error 1
make[1]: Leaving directory `/home/compile/httpd-2.2.16/support'
make: *** [all-recursive] Error 1
Am I missing something?
Re: [users@httpd] 2.2.16 and pthread
Posted by Nick Kew <ni...@webthing.com>.
On 30 Aug 2010, at 03:10, CC wrote:
> I think that was what was bugging my build.
Glad to hear you're sorted.
But APR 1.3 wasn't the problem - rather it was the pthread library
version against which it was built. Hopefully it was just a one-off
inconsistency and the new APR build has fixed the whole of it :)
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] 2.2.16 and pthread
Posted by CC <cc...@kdtc.net>.
Nick Kew wrote:
>
> On 28 Aug 2010, at 05:11, CC wrote:
>
>> Hi,
>>
>> I just downloaded 2.2.16 and am trying to compile it, but I'm getting
>> an error:
>>
>> /usr/lib/apr-1.3.3/build-1/libtool --silent --mode=link i486-slackware-linux-gcc -pthread -L/usr/local/ssl/lib -o htpasswd htpasswd.lo -lm /home/compile/httpd-2.2.16/srclib/pcre/libpcre.la /usr/lib/libaprutil-1.la -ldb-4.4 -lexpat /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
>> /usr/lib/libapr-1.so: undefined reference to `pthread_mutexattr_setprotocol@GLIBC_2.4'
>> /usr/lib/libapr-1.so: undefined reference to `pthread_mutexattr_setrobust_np@GLIBC_2.4'
>> /usr/lib/libapr-1.so: undefined reference to `pthread_mutex_consistent_np@GLIBC_2.4'
>
>
> Have you got multiple versions of some core libraries on there?
>
> It looks as if your /usr/lib/libpthread.so may be incompatible with the version against
> which APR was built. Possibly you need to reinstall APR, preferably without
> anything C++-ish in the build. And 'update all' with your package manager first,
> to reduce the likelihood of being hit with similar problems in future!
>
I ended up having to uninstall (or rather remove) old APR, APR-UTIL
packages and then I built/compiled/installed the new APR/APR-UTIl.
I thought since I was upgrading from an old 2.2.6 build, I thought
the requirements were the same. Apparently it has changed. My
old APR stuff were of the 1.3.x era. I d/led the 1.4.x stuff
and installed it.
I think that was what was bugging my build.
Thanks for the help!
Re: [users@httpd] 2.2.16 and pthread
Posted by Nick Kew <ni...@webthing.com>.
On 28 Aug 2010, at 05:11, CC wrote:
> Hi,
>
> I just downloaded 2.2.16 and am trying to compile it, but I'm getting
> an error:
>
> /usr/lib/apr-1.3.3/build-1/libtool --silent --mode=link i486-slackware-linux-gcc -pthread -L/usr/local/ssl/lib -o htpasswd htpasswd.lo -lm /home/compile/httpd-2.2.16/srclib/pcre/libpcre.la /usr/lib/libaprutil-1.la -ldb-4.4 -lexpat /usr/lib/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
> /usr/lib/libapr-1.so: undefined reference to `pthread_mutexattr_setprotocol@GLIBC_2.4'
> /usr/lib/libapr-1.so: undefined reference to `pthread_mutexattr_setrobust_np@GLIBC_2.4'
> /usr/lib/libapr-1.so: undefined reference to `pthread_mutex_consistent_np@GLIBC_2.4'
Have you got multiple versions of some core libraries on there?
It looks as if your /usr/lib/libpthread.so may be incompatible with the version against
which APR was built. Possibly you need to reinstall APR, preferably without
anything C++-ish in the build. And 'update all' with your package manager first,
to reduce the likelihood of being hit with similar problems in future!
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org