Stas Bekman wrote:

Slade Edmonds wrote:

Has anyone successfuly compiled mod_perl 1.29 from source on Debian Woody? I have the mod_perl source in /usr/local/src/mod_perl-1.29 and apache 1.3.29 source in /usr/local/src/apache_1.3.29. I run the following to start the process:

perl Makefile.PL APACHE_SRC=../apache_1.3.29/src APACHE_PREFIX=/usr/local/apache DO_HTTPD=1 USE_APACI=1 EVERYTHING=1

That finishes up just fine. The problem is during make. An onslaught of errors come back starting with these:

modules/standard/libstandard.a(mod_include.o): In function `handle_perl':
mod_include.o(.text+0x1e78): undefined reference to `Perl_newAV'
mod_include.o(.text+0x1f4c): undefined reference to `Perl_newSVpv'
mod_include.o(.text+0x1fb3): undefined reference to `Perl_newSVpv'
mod_include.o(.text+0x1fc5): undefined reference to `Perl_av_push'


... many more snipped ...


can you post the whole thing? including the output of gcc


see comments below please.


The problem most likely coming during the linking phase. On my machine:


cc -DLINUX=22 -I/usr/include/db1 -DMOD_PERL -DUSE_PERL_SSI -DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -DDEBUGGING -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -DPERL_DESTRUCT_LEVEL=2 `./apaci` \
-o httpd buildmark.o modules.o modules/standard/libstandard.a modules/proxy/libproxy.a modules/perl/libperl.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a -lm -lcrypt -ldb1 -rdynamic -Wl,-rpath,/home/stas/perl/5.6.1/lib/5.6.1/i686-linux-perlio/CORE -L/usr/local/lib /home/stas/perl/5.6.1/lib/5.6.1/i686-linux-perlio/auto/DynaLoader/DynaLoader.a -L/home/stas/perl/5.6.1/lib/5.6.1/i686-linux-perlio/CORE -lperl -lnsl -ldl -lm -lc -lcrypt -lutil



modules/standard/libstandard.a is the archive including mod_include.a so it should link with -lperl just fine. Unless it finds a wrong perl library.


is it possible that you have other (older?) perls installed on the same system and it finds them before your 5.6.1's libperl.so?

Show us the output of:

% locate libperl.so

(there may be libperl.so from mod_perl 1 too if you have ever built mod_perl 1 as DSO, which is misleading called the same as the perl library).

Here I think lies a problem. Turns out there was no libperl.so on the system. I installed the libperl5.6 package and now have:


/usr/lib/libperl.so.5.6.1
/usr/lib/libperl.so.5.6

Now when I run "perl Makefile.PL APACHE_SRC=../apache_1.3.29/src APACHE_PREFIX=/usr/local/apache DO_HTTPD=1 USE_APACI=1 EVERYTHING=1", it stops and reports this:

======== Error Output for sanity check ========
cd ..; cc -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_HSREGEX -DNO_DL_NEEDED -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 `./apaci` -I. -I/usr/lib/perl/5.6.1/CORE -o helpers/dummy helpers/dummy.c -lm -lcrypt -rdynamic -L/usr/local/lib /usr/lib/perl/5.6.1/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt
/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make: *** [dummy] Error 1
============= End of Error Report =============



Thanks for your help.



-- 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



Reply via email to