Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Nov 1999 19:17:53 +0200
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/14924: p5-Apache-Radius with mod_perl broken on CURRENT
Message-ID:  <82686.942772673@axl.noc.iafrica.com>

next in thread | raw e-mail | index | archive | help

>Number:         14924
>Category:       ports
>Synopsis:       p5-Apache-Radius with mod_perl broken on CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 16 09:20:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Sheldon Hearn
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
UUNET South Africa
>Environment:

	
	FreeBSD 4.0-CURRENT #0: Mon Nov 15 14:04:19 SAST 1999 i386

>Description:

    When the p5-Apache-Radius port is used in conjunction with the
    mod_perl port on a RELENG_3 box, it works.  On a HEAD box, it
    breaks:

	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.

    The mod_perl port installs a loadable perl interpreter module for
    use with the Apache web server.  The p5-Apache-Radius port installs
    a perl module which may be used by a mod_perl-enabled Apache to use
    RADIUS authentication.

>How-To-Repeat:


    On a CURRENT FreeBSD machine with an up-to-date ports tree:

    Make sure that you do not have p5-Apache installed.  The p5-Apache
    port integrates the perl interpretor into the httpd binary.  You
    will not see this problem if you have p5-Apache installed.

    # cd /usr/ports/www/p5-Apache-Radius
    # make install
    # /usr/local/sbin/apachectl configtest

    Observe that the test is successful with "Syntax OK".

    Now edit /usr/local/etc/apache/httpd.conf and search for this line:

	AddModule mod_perl.c

    Add the following line directly after it:

	PerlModule Apache::AuthenRadius

    Now rerun the Apache configuration test:
    # /usr/local/sbin/apachectl configtest

    Observe the error messages as quoted above in the Description.

>Fix:

    I have had no feedback from the modperl@apache.org mailing list.  I
    received this reply to a message I sent to freebsd-hackers:

|	Date      : Thu, 11 Nov 1999 00:45:52 +0100
|	From      : Ollivier Robert <roberto@keltia.freenix.fr>
|	To        : hackers@freebsd.org
|	Subject   : Re: mode_perl DSO works on STABLE, not CURRENT
|	Message-ID: <19991111004552.B44926@keltia.freenix.fr>
|
|	Your Perl binary is compiled without '-Wl,-E' (or
|	'-Wl,--export-dynamic'). Without this option the Perl binary
|	doesn't expoert its symbols thus preventing any dynamically
|	loaded module to use anything from the binary.

    My perl binary _is_ compiled with '-Wl,-E' but I suspect that
    mod_perl may not have been.

    Regrettably, I don't know where to start with this problem. :-(

Regards,
Sheldon.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82686.942772673>