At 21:43 01.05.2002, Alexander Solovey wrote: >Per Einar Ellefsen wrote: > > >Try to apply patch (attached) and then build using these options: > > > > > >perl Makefile.PL APACHE_SRC=../apache_1.3.24/src USE_APACI=1 EVERYTHING=1 > > >PERL_EXTRA_CFLAGS=-DUSEIMPORTLIB DO_HTTPD=1 > > >APACI_ARGS='--enable-rule=SHARED_CORE --enable-module=so' > > > > Thanks a lot for that patch, atleast it fixed the initial problem. > However, > > when mod_perl.config.sh is called, it reports "Note (probably > harmless): No > > library found for -lperl". > > > > Well, it is harmful :) I get tons of linking errors at compilation time > > (undefined references). How do I get it to find the perl library, if any? > > Or, how do I compile one if I have to? > >Oh, I forgot to tell you that one more step is required: > > cd /lib/perl5/5.6.1/cygwin-multi/CORE && ln -s libperl5_6_1.a libperl.a > >mod_perl requires libperl.a to be present but cygwin doesn't provide it >by default. So, here is a symbolic link and it works.
Thanks a lot for your help. Now, for some more problems :) <=== src/modules gcc -c -I./os/cygwin -I./include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include `./apaci` modules.c gcc -c -I./os/cygwin -I./include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include `./apaci` buildmark.c dllwrap --export-all -o libhttpd.dll buildmark.o modules.o modules/standard/libstandard.a modules/perl/libperl.a main/libmain.a ./os/cygwin/libos.a ap/libap.a regex/libregex.a -lcrypt -lgdbm -s -s -L/usr/local/lib /usr/lib/perl5/5.6.1/cygwin-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.6.1/cygwin-multi/CORE -lperl -lcrypt dllwrap: no export definition file provided dllwrap: creating one, but that may not be what you want gcc -I./os/cygwin -I./include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include `./apaci` \ -o libhttpd.ep -DSHARED_CORE_TIESTATIC main/http_main.c \ -L. -lhttpd -lcrypt -lgdbm -s -s -L/usr/local/lib /usr/lib/perl5/5.6.1/cygwin-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.6.1/cygwin-multi/CORE -lperl -lcrypt gcc -I./os/cygwin -I./include -DCYGWIN -DMOD_PERL -DUSE_HSREGEX -DSHARED_CORE -DUSEIMPORTLIB -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -I/usr/local/include `./apaci` \ -o httpd -DSHARED_CORE_BOOTSTRAP main/http_main.c \ ap/libap.a -lcrypt -lgdbm -s -s -L/usr/local/lib /usr/lib/perl5/5.6.1/cygwin-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.6.1/cygwin-multi/CORE -lperl -lcrypt libhttpd.dll make[3]: Leaving directory `/usr/src/apache_1.3.24/src' I'm not so sure what's happening, but re-running make will re-execute this section over and over again, so something must have gone wrong :( I tried playing around a little with options to dllwrap, but without much luck. -- Per Einar Ellefsen [EMAIL PROTECTED]