You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Rüdiger Plüm <r....@gmx.de> on 2008/04/12 15:28:55 UTC

Compilation of trunk broken

Its seems that the recent commits from Graham (r647263) and Mladen (r647384) (APR) broke httpd trunk:

server/.libs/libmain.a(exports.o):(.data+0x588): undefined reference to `ap_keep_body_filter'
server/.libs/libmain.a(exports.o):(.data+0x58c): undefined reference to `ap_kept_body_filter'
server/.libs/libmain.a(exports.o):(.data+0x590): undefined reference to `ap_parse_request_form'
server/.libs/libmain.a(exports.o):(.data+0x9cc): undefined reference to `apr_pool_create_ex_core_debug'
server/.libs/libmain.a(exports.o):(.data+0xa14): undefined reference to `apr_pool_pre_cleanup_register'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Fehler 1
make: *** [all-recursive] Fehler 1


Regards

Rüdiger



Re: Compilation of trunk broken

Posted by Ruediger Pluem <rp...@apache.org>.

On 04/12/2008 03:52 PM, Mladen Turk wrote:
> Rüdiger Plüm wrote:
>> Its seems that the recent commits from Graham (r647263) and Mladen 
>> (r647384) (APR) broke httpd trunk:
>>
>> server/.libs/libmain.a(exports.o):(.data+0x9cc): undefined reference 
>> to `apr_pool_create_ex_core_debug'
>> server/.libs/libmain.a(exports.o):(.data+0xa14): undefined reference 
>> to `apr_pool_pre_cleanup_register'
> 
> Those two should be fixed now.
> See r647447 and r647448.

I confirm that this is now fixed.

Regards

Rüdiger


Re: Compilation of trunk broken

Posted by Ruediger Pluem <rp...@apache.org>.

On 04/12/2008 03:52 PM, Mladen Turk wrote:
> Rüdiger Plüm wrote:
>> Its seems that the recent commits from Graham (r647263) and Mladen 
>> (r647384) (APR) broke httpd trunk:
>>
>> server/.libs/libmain.a(exports.o):(.data+0x9cc): undefined reference 
>> to `apr_pool_create_ex_core_debug'
>> server/.libs/libmain.a(exports.o):(.data+0xa14): undefined reference 
>> to `apr_pool_pre_cleanup_register'
> 
> Those two should be fixed now.
> See r647447 and r647448.

I confirm that this is now fixed.

Regards

Rüdiger


Re: Compilation of trunk broken

Posted by Mladen Turk <mt...@apache.org>.
Rüdiger Plüm wrote:
> Its seems that the recent commits from Graham (r647263) and Mladen 
> (r647384) (APR) broke httpd trunk:
> 
> server/.libs/libmain.a(exports.o):(.data+0x9cc): undefined reference to 
> `apr_pool_create_ex_core_debug'
> server/.libs/libmain.a(exports.o):(.data+0xa14): undefined reference to 
> `apr_pool_pre_cleanup_register'

Those two should be fixed now.
See r647447 and r647448.

Regards
--
(TM)


Public APIs in Modules

Posted by Paul Querna <ch...@force-elite.com>.
Ruediger Pluem wrote:
.....
> Once I move mod_request.h from includes to modules/filters it all works
> fine (after make extraclean; buildconf of course). The reason is that the
> generator for exports.c picks up the symbols from mod_request.h which
> is IMHO wrong as it is not statically compiled into httpd (BTW: Public
> functions from other modules like mod_cache or mod_proxy do not show up
> in exports.c).

^^ this.

Any public function for an optional module MUST be declared as an 
optional function using the APR Optional function stuff.

If you don't do this, you create order dependencies for loading modules, 
which is a massive pain for our users.

-Paul

Re: Compilation of trunk broken

Posted by Ruediger Pluem <rp...@apache.org>.

On 04/12/2008 06:15 PM, Ruediger Pluem wrote:
> 
> 
> On 04/12/2008 04:11 PM, Graham Leggett wrote:
>> Rüdiger Plüm wrote:
>>
>>> Its seems that the recent commits from Graham (r647263) and Mladen 
>>> (r647384) (APR) broke httpd trunk:
>>>
>>> server/.libs/libmain.a(exports.o):(.data+0x588): undefined reference 
>>> to `ap_keep_body_filter'
>>> server/.libs/libmain.a(exports.o):(.data+0x58c): undefined reference 
>>> to `ap_kept_body_filter'
>>> server/.libs/libmain.a(exports.o):(.data+0x590): undefined reference 
>>> to `ap_parse_request_form'
>>> server/.libs/libmain.a(exports.o):(.data+0x9cc): undefined reference 
>>> to `apr_pool_create_ex_core_debug'
>>> server/.libs/libmain.a(exports.o):(.data+0xa14): undefined reference 
>>> to `apr_pool_pre_cleanup_register'
>>> collect2: ld returned 1 exit status
>>> make[1]: *** [httpd] Fehler 1
>>> make: *** [all-recursive] Fehler 1
>>
>> Just did a clean rebuild and it works for me... Quick question - did 
>> you do a ./buildconf and rerun ./config.nice?
> 
> Yep.
> make extraclean
> ./buildconf
> ./config.nice
> 
> Still the following result (the APR issue is now fixed):
> 
> server/.libs/libmain.a(exports.o):(.data+0x588): undefined reference to 
> `ap_keep_body_filter'
> server/.libs/libmain.a(exports.o):(.data+0x58c): undefined reference to 
> `ap_kept_body_filter'
> server/.libs/libmain.a(exports.o):(.data+0x590): undefined reference to 
> `ap_parse_request_form'
> collect2: ld returned 1 exit status
> make[1]: *** [httpd] Fehler 1
> make: *** [all-recursive] Fehler 1

Once I move mod_request.h from includes to modules/filters it all works
fine (after make extraclean; buildconf of course). The reason is that the
generator for exports.c picks up the symbols from mod_request.h which
is IMHO wrong as it is not statically compiled into httpd (BTW: Public
functions from other modules like mod_cache or mod_proxy do not show up
in exports.c).
So please try again and delete exports.c before recompiling.

Regards

Rüdiger


Re: Compilation of trunk broken

Posted by Ruediger Pluem <rp...@apache.org>.

On 04/12/2008 04:11 PM, Graham Leggett wrote:
> Rüdiger Plüm wrote:
> 
>> Its seems that the recent commits from Graham (r647263) and Mladen 
>> (r647384) (APR) broke httpd trunk:
>>
>> server/.libs/libmain.a(exports.o):(.data+0x588): undefined reference 
>> to `ap_keep_body_filter'
>> server/.libs/libmain.a(exports.o):(.data+0x58c): undefined reference 
>> to `ap_kept_body_filter'
>> server/.libs/libmain.a(exports.o):(.data+0x590): undefined reference 
>> to `ap_parse_request_form'
>> server/.libs/libmain.a(exports.o):(.data+0x9cc): undefined reference 
>> to `apr_pool_create_ex_core_debug'
>> server/.libs/libmain.a(exports.o):(.data+0xa14): undefined reference 
>> to `apr_pool_pre_cleanup_register'
>> collect2: ld returned 1 exit status
>> make[1]: *** [httpd] Fehler 1
>> make: *** [all-recursive] Fehler 1
> 
> Just did a clean rebuild and it works for me... Quick question - did you 
> do a ./buildconf and rerun ./config.nice?

Yep.
make extraclean
./buildconf
./config.nice

Still the following result (the APR issue is now fixed):

server/.libs/libmain.a(exports.o):(.data+0x588): undefined reference to `ap_keep_body_filter'
server/.libs/libmain.a(exports.o):(.data+0x58c): undefined reference to `ap_kept_body_filter'
server/.libs/libmain.a(exports.o):(.data+0x590): undefined reference to `ap_parse_request_form'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Fehler 1
make: *** [all-recursive] Fehler 1

Regards

Rüdiger

Re: Compilation of trunk broken

Posted by Graham Leggett <mi...@sharp.fm>.
Rüdiger Plüm wrote:

> Its seems that the recent commits from Graham (r647263) and Mladen 
> (r647384) (APR) broke httpd trunk:
> 
> server/.libs/libmain.a(exports.o):(.data+0x588): undefined reference to 
> `ap_keep_body_filter'
> server/.libs/libmain.a(exports.o):(.data+0x58c): undefined reference to 
> `ap_kept_body_filter'
> server/.libs/libmain.a(exports.o):(.data+0x590): undefined reference to 
> `ap_parse_request_form'
> server/.libs/libmain.a(exports.o):(.data+0x9cc): undefined reference to 
> `apr_pool_create_ex_core_debug'
> server/.libs/libmain.a(exports.o):(.data+0xa14): undefined reference to 
> `apr_pool_pre_cleanup_register'
> collect2: ld returned 1 exit status
> make[1]: *** [httpd] Fehler 1
> make: *** [all-recursive] Fehler 1

Just did a clean rebuild and it works for me... Quick question - did you 
do a ./buildconf and rerun ./config.nice?

Regards,
Graham
--