Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian/Jessie error: possibly undefined macro: AC_MSG_ERROR #28

Closed
dragoscirjan opened this issue Mar 9, 2017 · 6 comments
Closed

Debian/Jessie error: possibly undefined macro: AC_MSG_ERROR #28

dragoscirjan opened this issue Mar 9, 2017 · 6 comments

Comments

@dragoscirjan
Copy link

dragoscirjan commented Mar 9, 2017

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
@Promaethius
Copy link

Promaethius commented Mar 10, 2017

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

@NigelCunningham
Copy link
Owner

Hi @dragoscirjan.

Did the instructions from @Promaethius cover everything you needed?

Regards,

Nigel

@dragoscirjan
Copy link
Author

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.

@NigelCunningham
Copy link
Owner

Ok; thanks!

@jeff-kilbride
Copy link

jeff-kilbride commented Oct 8, 2017

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.

NigelCunningham added a commit that referenced this issue Oct 9, 2017
Signed-off-by: Nigel Cunningham <nigel@nigelcunningham.com.au>
@Promaethius
Copy link

@NigelCunningham Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants