Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Nov 2001 12:25:25 +0100
From:      Anton Berezin <tobez@FreeBSD.org>
To:        Colin Legendre <sudz@ns3g.com>, Vince Brammer <vbrammer@home.com>
Cc:        ports@FreeBSD.org
Subject:   Re: p5-Authen-PAM-0.12
Message-ID:  <20011105122525.A12905@heechee.tobez.org>
In-Reply-To: <EGEAJNBPMIDPDNBOENHFCEEICGAA.sudz@ns3g.com>; from sudz@ns3g.com on Thu, Sep 27, 2001 at 02:33:54PM -0400
References:  <000a01c16499$5ec7a280$0200a8c0@cc515939b.owml1.md.home.com> <EGEAJNBPMIDPDNBOENHFCEEICGAA.sudz@ns3g.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

First,

On Thu, Sep 27, 2001 at 02:33:54PM -0400, Colin Legendre wrote:

> Are you aware of the bug with the p5-Authen-PAM perl module.  After trying
> to use it and as well verifying the PR on the module's home page it seems
> that there is a but that only affects freebsd.  Has there been any thoughs
> on a patch to make it work with FreeBSD ???

And then:

On Sat, Nov 03, 2001 at 01:57:21PM -0500, Vince Brammer wrote:
>     Im trying to build Authen::PAM from the ports tree.
> However, its not working. Configure checks for -ldl (which it doesnt find). 
> The build works (doesnt error out). 
> Make test fails test 10

The *dynamic* PAM library has problems in FreeBSD as of now.  Until this
is fixed, the easiest solution is to do the following:

As root:
# cd /usr/ports/security/p5-Authen-PAM
# mkdir files
# cat >files/patch-Makefile.PL
--- Makefile.PL.orig	Tue Dec  5 15:39:40 2000
+++ Makefile.PL	Mon Nov  5 12:16:36 2001
@@ -42,7 +42,8 @@
 WriteMakefile(
     'NAME'	=> 'Authen::PAM',
     'VERSION_FROM' => 'PAM.pm.in',
-    'LIBS'	=> ['-lpam'],
+    'LIBS'	=> ["-lutil -lopie -lradius -ltacplus -lrpcsvc -lskey"],
+    'dynamic_lib' => {OTHERLDFLAGS => '/usr/lib/libpam.a'},
     'CONFIGURE' => \&configure,
     'PREREQ_PM' => { POSIX => 0 }, # module dependenices
     'dist'      => {
^D
# make clean
# make
# make install

This instructs the port to use statically linked libpam.a, and appears
to work in my tests, on both -current and -stable.

Please try this one out, and tell me whether it fixes your problems.  If
it does, I'll commit this fix shortly.

=Anton.
-- 
| Anton Berezin                |      FreeBSD: The power to serve |
| catpipe Systems ApS   _ _ |_ |           http://www.FreeBSD.org |
| tobez@catpipe.net    (_(_||  |                tobez@FreeBSD.org | 
| +45 7021 0050                |         Private: tobez@tobez.org |

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?20011105122525.A12905>