(continuing from the irc discussion here for the archives)

when starting the static modperl/httpd we get:

lt-httpd: symbol lookup error: /home/stas/apache.org/mp2-static/blib/arch/Apache2/auto/APR/Bucket/Bucket.so: undefined symbol: modperl_bucket_sv_create

1) APR.so doesn't get loaded when run under apache/mod_perl, so it's useless to check its symbols.

2)
nm /home/stas/apache.org/httpd-2.0/.libs/lt-httpd | grep modperl_ | wc -l
453
nm /home/stas/apache.org/httpd-2.0/.libs/lt-httpd | grep modperl_bucket | wc -l
0


Here is your answer: modperl_bucket is not linked into httpd

but:

% nm src/modules/perl/mod_perl.a | grep modperl_buc
modperl_bucket.o:
00000265 T modperl_bucket_sv_create
00000088 t modperl_bucket_sv_destroy
0000012e t modperl_bucket_sv_make
00000000 t modperl_bucket_sv_read
00000060 r modperl_bucket_sv_type

so that means that the linker decides that those symbols aren't used (and they indeed aren't) and it drops them. I think I've seen that behavior before. Just to prove that idea, try to use them somewhere (e.g some dummy function in mod_perl.c).

--
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to