NigelCunningham/pam-MySQL

Debian/Jessie error: possibly undefined macro: AC_MSG_ERROR

Closed this issue · 6 comments

Hello, tried to compile the module under Debian Jessie. See compiling commands and error bellow.

Probably forgot to install something, still I need your help on it.

apt-get install -y autoconf automake build-essential libmysqlclient-dev libpam-dev libssl-dev
autoreconf -f -i
configure.ac:26: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:45: error: possibly undefined macro: AS_IF
configure.ac:47: error: possibly undefined macro: AC_DEFINE
autoreconf: /usr/bin/autoconf failed with exit status: 1

You'll need a few extra packages:
apt-get install -y autoconf automake build-essential libmysqlclient-dev libpam-dev libssl-dev libtool pkg-config

Now run these commands in order in the build directory:

libtoolize
aclocal
autoheader
autoreconf -f -i

By the way, if you get an error like Your system doesn't appear to be configured to use PAM. Perhaps you need to specify the correct location where the PAM modules reside. then run ./configure like so.

./configure --with-pam-mods-dir=/lib/security

Hi @dragoscirjan.

Did the instructions from @Promaethius cover everything you needed?

Regards,

Nigel

Hello @NigelCunningham , @Promaethius ,
Thank you for you answer. I am currently involved in something else (and also will be in vacation for the next weeks) I think I remember compiling the tool once but I'm not sure. If you need to close the issue please do. I have the info saved already and will use it pretty soon.

Ok; thanks!

FYI, these instructions worked great with v0.8.1! You might consider adding them to the beginning of the INSTALL.pam-mysql file, for people who are less familiar with all the necessary tooling. I got stuck on failing to install the libtool and pkg-config packages the first time around.