Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Authen::PAM

0 views
Skip to first unread message

Vince Brammer

unread,
Nov 3, 2001, 1:54:25 PM11/3/01
to
Hi
    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, and
I get many errors from PAM
         unable to dlopen , adding faulty module
 
I thought the ports were supposed to work.
 
Is there something im missing?
 
Im using perl 5.6.1, and running on a 4.4 stable system.
 
Id really like some help , so anything would be appreciated :)
 
 
Vince
 

Anton Berezin

unread,
Nov 5, 2001, 6:25:46 AM11/5/01
to
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 |
| to...@catpipe.net (_(_|| | to...@FreeBSD.org |
| +45 7021 0050 | Private: to...@tobez.org |

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

Vince Brammer

unread,
Nov 5, 2001, 7:21:35 PM11/5/01
to
Hi,
I was unable to make the patch take, it was rejected each time.
After manually editing Makefile.PL, the ports build did work with perl
5.005.x and the source did build with perl 5.6.1.
Also, the source build passed all (12) steps in test.
I havent tested the module out as yet, just did the builds and make
tests'.

Thank you for the reply. I wish I had been able to figure this out for
my self, but I dont have a full grasp of what is going on behind the scenes.

If I can be any more help, dont hesitate.

Vince

----- Original Message -----
From: "Anton Berezin" <to...@FreeBSD.org>
To: "Colin Legendre" <su...@ns3g.com>; "Vince Brammer" <vbra...@home.com>
Cc: <po...@FreeBSD.org>
Sent: Monday, November 05, 2001 6:25 AM
Subject: Re: p5-Authen-PAM-0.12


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

0 new messages