apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Apitz <g...@unixarea.de>
Subject Re: GLIBC_2.10 && libapr-1.so
Date Thu, 23 Oct 2014 06:43:22 GMT
El día Wednesday, October 22, 2014 a las 07:14:43PM +0200, Rainer Jung escribió:

> Start with a more informative command:
> 
> nm libapr-1.so.0.5.1 | grep GLIBC
> 
> This will show you which symbol is taken with which version from GLIBC. 
> Let us know the result, especially the 2.10 ones.
> 
> I don't get any 2.10 dependencies for a 32 Bit SLES 10 system (with old 
> patch levels), but I do get a 2.10 dependency on SLES 11, namely for
> 
> accept4@@GLIBC_2.10
> 
> Presence of the function accept4() is checked by configure and noted via 
> HAVE_ACCEPT4 in include/arch/unix/apr_private.h. If it is found it is 
> used in network_io/unix/sockets.c.
> 
> You can overwrite the configure check (thus disabling the use of 
> accept4()) via exporting an environment variable named apr_cv_accept4 
> with value "no" before running configure. ...

Thanks! This was exactly the solution. And I was not aware of this
detailed tweaking of the configure process by such env vars.

Without the env vars:

nm .libs/libapr-1.so.0.4.5 | egrep 'GLIBC_2.[4-9]|GLIBC_2.10'
         U accept4@@GLIBC_2.10
         U dup3@@GLIBC_2.9
         U epoll_create1@@GLIBC_2.9

With setting:

apr_cv_accept4=no export apr_cv_accept4
apr_cv_dup3=no export apr_cv_dup3
apr_cv_epoll_create1=no export apr_cv_epoll_create1

we have:

nm .libs/libapr-1.so.0.4.5 | egrep 'GLIBC_2.[4-9]|GLIBC_2.10'
         U pthread_mutex_consistent_np@@GLIBC_2.4
         U pthread_mutexattr_setprotocol@@GLIBC_2.4
         U pthread_mutexattr_setrobust_np@@GLIBC_2.4

Thanks for this hint

	matthias
-- 
Matthias Apitz               |  /"\   ASCII Ribbon Campaign:
E-mail: guru@unixarea.de     |  \ /   - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ |   X    - No proprietary attachments
phone: +49-170-4527211       |  / \   - Respect for open standards
                             | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign

Mime
View raw message