From owner-freebsd-hackers Wed Nov 10 0:53: 6 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id B5F7A15329 for ; Wed, 10 Nov 1999 00:52:58 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.040 #1) id 11lTUv-00009h-00 for hackers@freebsd.org; Wed, 10 Nov 1999 10:52:57 +0200 From: Sheldon Hearn To: hackers@freebsd.org Subject: mode_perl DSO works on STABLE, not CURRENT Date: Wed, 10 Nov 1999 10:52:57 +0200 Message-ID: <600.942223977@axl.noc.iafrica.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, Below is a message that I sent to the modperl@apache.org mailing list regarding a problem I'm having with Apache::AuthenRadius and mod_perl. I'm mailing here in the hopes that someone here knows about a subtle difference between STABLE and CURRENT that would blow me out of the water. :-) Ciao, Sheldon. ------- Forwarded Message Date: Tue, 09 Nov 1999 17:01:06 +0200 From: Sheldon Hearn To: modperl@apache.org Subject: Undefined symbol "PL_markstack_ptr" at runtime Message-ID: <93760.942159666@axl.noc.iafrica.com> - ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <93758.942159665.1@axl.noc.iafrica.com> Hi folks, I'm setting up a FreeBSD 4.0-CURRENT machine to run an Apache server that uses RADIUS authentication. I've already done this successfully with FreeBSD 3.2-STABLE, but read on to see why I'm asking here and not on the FreeBSD mailing lists. :-) I'm using: perl 5.005_03 apache-1.3.9 mod_perl-1.21 (Built as a DSO with APXS [EVERYTHING=1]) Apache-AuthenRadius-0.3 (Perl Module) RadiusPerl-0.05 (Perl Module) MD5-1.7 (Perl Module) I've configured httpd.conf with the following pertinent directives: | [...] | LoadModule perl_module libexec/apache/libperl.so | # perl_module is the last LoadModule | | [...] | AddModule mod_perl.c | # mod_perl.c is the last AddModule | | PerlModule Apache::AuthenRadius Without the PerlModule directive, ``apachectl configtest'' reports that the syntax is OK. However, when I Uncomment the perlModule directive, the configtest produces this (tidied up) output: | Syntax error on line 261 of /usr/local/etc/apache/httpd.conf: | Can't load '/usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/MD5/MD5.so' for module MD5: /usr/local/lib/perl5/site_perl/5.005/i386-freebsd/auto/MD5/MD5.so: Undefined symbol "PL_markstack_ptr" at /usr/libdata/perl/5.00503/DynaLoader.pm line 169. | | at /usr/local/lib/perl5/site_perl/5.005/Authen/Radius.pm line 18 | BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.005/Authen/Radius.pm line 18. | BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.005/Apache/AuthenRadius.pm line 8. When I use Apache::AuthenRadius from a perl script and run it with the perl interpretor from the command-line, no such error occurs. That's why I'm mailing this list. I'm hoping _someone_ here knows enough to at least point me in the right direction. As suggested in mod_perl's SUPPORT document, I've attached below the output of ``perl -V''. Thanks, Sheldon. - ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <93758.942159665.2@axl.noc.iafrica.com> Content-Description: perlv Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration: Platform: osname=freebsd, osvers=4.0-current, archname=i386-freebsd uname='freebsd freefall.freebsd.org 4.0-current freebsd 4.0-current #0: $Date$' hint=recommended, useposix=true, d_sigaction=define usethreads=undef useperlio=undef d_sfio=undef Compiler: cc='cc', optimize='undef', gccversion=egcs-2.91.66 19990314 (egcs-1.1.2 release) cppflags='' ccflags ='' stdchar='char', d_stdstdio=undef, usevfork=true intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags ='-Wl,-E' libpth=/usr/lib libs=-lm -lc -lcrypt libc=/usr/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so.3 Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' ' cccdlflags='-DPIC -fpic', lddlflags='-shared' Characteristics of this binary (from libperl): Built under freebsd Compiled at Oct 14 1999 18:16:01 @INC: /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . - ------- =_aaaaaaaaaa0-- ------- End of Forwarded Message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message