httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: svn commit: r1142739 - in /httpd/httpd/trunk: CHANGES configure.in
Date Tue, 05 Jul 2011 05:51:52 GMT
Hi Igor,

On 05.07.2011 03:00, Igor Galić wrote:
> I'm not sure if it's this change that breaks the build
> or if it was always broken but:

It broke it, but ...

> /opt/bw/share/apr/build/libtool --silent --mode=link gcc -std=gnu99 -pthread  -mtune=native
-march=native -O3 -g     -Wl,--as-needed -Wl,--reduce-memory-overheads -Wl,-Bsymbolic-functions
-Wl,--no-copy-dt-needed-entries -o httpd  modules.lo buildmark.o -L/usr/lib/x86_64-linux-gnu
-lpcre -export-dynamic server/libmain.la modules/core/libmod_so.la modules/http/libmod_http.la
 os/unix/libos.la    /opt/bw/lib/x86_64-linux-gnu/libapr-2.la -lcrypt -lrt -lcrypt -lpthread
-ldl -lexpat 
> server/.libs/libmain.a(util_pcre.o): In function `ap_regfree':
> /tmp/build/httpd/server/util_pcre.c:103: undefined reference to `pcre_free'
> server/.libs/libmain.a(util_pcre.o): In function `ap_regcomp':
> /tmp/build/httpd/server/util_pcre.c:136: undefined reference to `pcre_compile'
> /tmp/build/httpd/server/util_pcre.c:142: undefined reference to `pcre_info'
> server/.libs/libmain.a(util_pcre.o): In function `ap_regexec_len':
> /tmp/build/httpd/server/util_pcre.c:197: undefined reference to `pcre_exec'
> collect2: ld returned 1 exit status
> make[2]: *** [httpd] Error 1
> make[2]: Leaving directory `/tmp/build/httpd'
> 
> Notice the complete lack of -lpcre in that line --

Not really: you'll find "-lpcre -export-dynamic server/libmain.la"
somewhere in the middle of the line.

But pcre being linked before libmain should be the problem. My linker
didn't complain, but yours obviously does.

Should be fixed in r1142893.
Thanks for testing!

> it only appeared after I added LIBS=-lpcre to ./configure.

Not necessary.

> I think something's wonky.

Right, it was :)

Regards,

Rainer


Mime
View raw message