Last time I had to do a similar workaround for AIX. Please see this
section in lib/Apache/Build.pm and see if you can adjust the build to do something similar on cygwin. I'm not familiar with the linker/loader on that platform to tell you exactly what needs to be done.
I'll be experimenting on the linker flags. My linker is GNU ld version 2.13.90 20030308.
Meanwhile I tryed to make static build.
in fact it's probably the best to try to build DSO first (but may be not)
The httpd executable is created without problem (there are some infos):[...]
and everything seems fine until it's time to build APR/Base64: cp Base64.pm ../../../blib/lib/APR/Base64.pm /usr/local/bin/perl /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lo cal/lib/perl5/5.8.5/ExtUtils/typemap -typemap /usr/src/mp2/xs/typemap Base64.xs > Base64.xsc && mv Base64.xsc Base64.c gcc -c -I/usr/src/mp2/src/modules/perl -I/usr/src/mp2/xs -I/usr/src/httpd/inclu de -I/usr/src/httpd/srclib/apr/include -I/usr/src/httpd/srclib/apr-util/include -I/usr/src/httpd/os/unix -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -pipe -DMOD _PERL -DMP_COMPAT_1X -DUSEIMPORTLIB -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.0 1\" "-I/usr/local/lib/perl5/5.8.5/cygwin/CORE" -DMP_HAVE_APR_LIBS Base64.c In file included from Base64.xs:26: /usr/src/mp2/xs/APR/Base64/APR__Base64.h: In function `MPXS_apr_base64_encode': /usr/src/mp2/xs/APR/Base64/APR__Base64.h:37: static symbol `MPXS_apr_base64_enco de' is marked dllexport In file included from Base64.xs:26: /usr/src/mp2/xs/APR/Base64/APR__Base64.h: In function `MPXS_apr_base64_decode': /usr/src/mp2/xs/APR/Base64/APR__Base64.h:46: static symbol `MPXS_apr_base64_deco de' is marked dllexport
Sorry, but I've never seen this kind of errors before. Any chance you can find someone who groks cygwin compiler/linker so they can help to resolve those?
-- __________________________________________________________________ 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
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html