Discussion:
Building cyrus-sasl on Ubuntu 18.04 with PAM support
Andrew Bernard
2018-06-27 08:13:53 UTC
Permalink
A newbie to cyrus-sasl, I am unable to build Cyrus SASL on Ubuntu 18 with
the --with-pam option. It's very unclear to me what the DIR argument to
this option should be and what PAM libraries and headers need to be
installed. Reading the configure script leaves me none the wiser.

All help appreciated.

Andrew
Dan White
2018-06-27 13:34:40 UTC
Permalink
Post by Andrew Bernard
A newbie to cyrus-sasl, I am unable to build Cyrus SASL on Ubuntu 18 with
the --with-pam option. It's very unclear to me what the DIR argument to
this option should be and what PAM libraries and headers need to be
installed. Reading the configure script leaves me none the wiser.
From the 'debian/rules' file:

--with-pam=/usr \

To install necessary build dependencies, do:

apt-get build-dep libsasl2-2
a***@gmail.com
2018-06-27 14:33:26 UTC
Permalink
Hi Dan,

Thanks. Except:

$ sudo apt-get build-dep libsasl2-2
Reading package lists... Done
Picking 'cyrus-sasl2' as source package instead of 'libsasl2-2'
E: Unable to find a source package for libsasl2-2

This is Ubuntu 18.04

Andrew


-----Original Message-----
From: Dan White <***@olp.net>
Sent: Wednesday, 27 June 2018 11:35 PM
To: Andrew Bernard <***@gmail.com>
Cc: cyrus-***@lists.andrew.cmu.edu
Subject: Re: Building cyrus-sasl on Ubuntu 18.04 with PAM support
Post by Andrew Bernard
A newbie to cyrus-sasl, I am unable to build Cyrus SASL on Ubuntu 18
with the --with-pam option. It's very unclear to me what the DIR
argument to this option should be and what PAM libraries and headers
need to be installed. Reading the configure script leaves me none the
wiser.

From the 'debian/rules' file:

--with-pam=/usr \

To install necessary build dependencies, do:

apt-get build-dep libsasl2-2
a***@gmail.com
2018-06-27 15:13:43 UTC
Permalink
Hi Dan,

How could I be so ignorant. Of course!

But, I still don't know where the debian/rules object is, and using
--with-pam=/usr results in the following in config.log:

====
configure:15435: checking for security/pam_appl.h
configure:15435: result: no
configure:15435: checking for pam/pam_appl.h
configure:15435: result: no
configure:15446: checking for pam_start
configure:15446: result: no
configure:15477: gcc -o conftest -Wall -W -g -O2 -I/usr//include
-L/usr//lib conftest.c -lpam >&5
conftest.c: In function 'main':
conftest.c:46:1: error: unknown type name 'pam_handle_t'
pam_handle_t *pamh;

====

I am using the source for 2.1.27 from the head of git master. Is that wrong?

Andrew

-----Original Message-----
From: Dan White <***@mybtc.com>
Sent: Thursday, 28 June 2018 12:40 AM
To: ***@gmail.com
Cc: cyrus-***@lists.andrew.cmu.edu
Subject: Re: Building cyrus-sasl on Ubuntu 18.04 with PAM support


You will need to include a deb-src entry:

https://help.ubuntu.com/community/Repositories/CommandLine
Andrew Bernard
2018-06-27 15:21:22 UTC
Permalink
So, using your advice Dan I can build against the FTP source for 2.1.26 and
2.1.27, but not the github HEAD for master.

Should I be avoiding github altogether?

Andrew
Jakub Jelen
2018-06-28 14:04:29 UTC
Permalink
Post by Andrew Bernard
So, using your advice Dan I can build against the FTP source for 2.1.26 and
2.1.27, but not the github HEAD for master.
Should I be avoiding github altogether?
The released tarballs contain pregenerated configure files. If you
build from source, regenerating them is usually a good idea. I do that
using the autogen.sh file from git repository:

https://github.com/cyrusimap/cyrus-sasl/blob/master/autogen.sh
--
Jakub Jelen
Software Engineer
Security Technologies
Red Hat, Inc.
Alexander Dalloz
2018-06-27 17:36:47 UTC
Permalink
Post by Andrew Bernard
A newbie to cyrus-sasl, I am unable to build Cyrus SASL on Ubuntu 18 with
the --with-pam option. It's very unclear to me what the DIR argument to
this option should be and what PAM libraries and headers need to be
installed. Reading the configure script leaves me none the wiser.
All help appreciated.
Andrew
Why do you think the cyrus-sasl packages aren't build with PAM support
on Ubuntu 18?

Alexander
Andrew Bernard
2018-06-27 23:51:01 UTC
Permalink
Hello Alexander,

It's not that - I have been trying to build from source for various reasons.

Andrew
Why do you think the cyrus-sasl packages aren't build with PAM support on
Ubuntu 18?
Kevin Baker
2018-06-28 02:46:45 UTC
Permalink
Unsubscribe
Post by Andrew Bernard
Hello Alexander,
It's not that - I have been trying to build from source for various reasons.
Andrew
Why do you think the cyrus-sasl packages aren't build with PAM support on Ubuntu 18?
Loading...