This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re[2]: Apache2 & cygwin


ld2 -s -L/usr/local/lib \
 \
mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_apache_compat.lo modperl_error.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo  -s  -s -L/usr/local/apache2/lib -L/usr/local/lib /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE -lperl -lcrypt -lgdbm_compat -lapr-0 -laprutil-0 \
-o mod_perl.so
gcc -shared -o  mod_perl.dll -Wl,--out-implib=libmod_perl.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib mod_perl.lo modperl_interp.lo modperl_tipool.lo modperl_log.lo modperl_config.lo modperl_cmd.lo modperl_options.lo modperl_callback.lo modperl_handler.lo modperl_gtop.lo modperl_util.lo modperl_io.lo modperl_io_apache.lo modperl_filter.lo modperl_bucket.lo modperl_mgv.lo modperl_pcw.lo modperl_global.lo modperl_env.lo modperl_cgi.lo modperl_perl.lo modperl_perl_global.lo modperl_perl_pp.lo modperl_sys.lo modperl_module.lo modperl_svptr_table.lo modperl_const.lo modperl_constants.lo modperl_apache_compat.lo modperl_error.lo modperl_hooks.lo modperl_directives.lo modperl_flags.lo modperl_xsinit.lo -s -s -L/usr/local/apache2/lib -L/usr/local/lib /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE -lperl -lcrypt -lgdbm_compat -lapr-0 -laprutil-0

Just tried adding libapr-0 and libapr_util-0 (since these are their
name in /usr/bin/apache2/lib), they are found since it doesnt complain
but it's not any better
still loads of undef refs (same ones)

> Paul-Kenji wrote:

>> Thanks for the info, apache2 starts well now
>> the new prob i'm experiencing is about modperl 2 now
>> it almost succeeds until the linking at the end:
>> ld2 -s -L/usr/local/lib \

> [...]

>> -L/usr/local/lib
>> /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/auto/DynaLoader/DynaLoader.a
>> -L/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE -lperl -lcrypt
>> -lgdbm_compat 

> You probably also need to link the dll against libapr & libapr_util
> here.

>> Creating library file: libmod_perl.dll.a
>> mod_perl.lo(.text+0x3af):mod_perl.c: undefined reference to `_ap_server_root_relative'
>> mod_perl.lo(.text+0x3f7):mod_perl.c: undefined reference to `_ap_server_root_relative'
>> mod_perl.lo(.text+0x74b):mod_perl.c: undefined reference to `_ap_mpm_query'
>> mod_perl.lo(.text+0x816):mod_perl.c: undefined reference to `_apr_pool_create_ex'
>> mod_perl.lo(.text+0x823):mod_perl.c: undefined reference to `_apr_pool_cleanup_null'
>> [many more undef. refs]
>> collect2: ld returned 1 exit status
>> perlld: *** system() failed to execute

>> i've tried a few other versions of ld(in case it was ld) but it seems
>> not to be any dif.
>> anyone succeeded compiling modperl2+apache2?


> Gerrit


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]