httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: apreq-2 status update
Date Wed, 23 Apr 2003 05:07:36 GMT
Joe Schaefer wrote:

>>For some reason -lpthread wasn't added by configure. After 
>>manually adding it, all tests pass.
> Weird.
>   % /home/joe/apache2/bin/apr-config --cflags --libs
>    -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread
-lm -lcrypt -lnsl  -ldl
> My apr-config lists "-pthread" in the --cflags as well, which seems to
> work on my machine (RH 8).  How current is your apxs script?  Does line
> 471 look like this (httpd-2.0/support/ revision 1.54):
>         my $apr_libs=`$apr_bindir/apr-config --cflags --ldflags --link-libtool --libs`;
> It looks like the (undocumented) -p flag for apxs was added in 
> revision 1.46 (2002/09/19), so maybe it's in need of additional
> work on your platform.

that's right, but the problem is during the linking, not compilation.

I get the problem in:
cd t
/home/stas/httpd/prefork/build/libtool --silent --mode=link gcc -o testall 
-lapreq /home/stas/httpd/prefork/lib/ -lgdbm -ldb -lexpat 
/home/stas/httpd/prefork/lib/ -lm -lcrypt -lnsl -ldl testall.o 
libapreq_tests.a -L../src
/home/stas/httpd/prefork/lib/ undefined reference to `pthread_create'
... lots of these

as you can see, the output of --cflags is not there, my --ccflags gives:

/home/stas/httpd/prefork/bin/apr-config --cflags --libs 
                                             -g -O2 -Wall -Wmissing-prototypes 
-Wstrict-prototypes -Wmissing-declarations -pthread -lm -lcrypt -lnsl  -ldl

However you should probably use --ldflags for the linking stage, but I get an 
empty string when I retrieve these. Looks like a bug in apr?

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message