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

undefined macro AC_MSG_ERROR & AC_DEFINE #146

Closed
a531381 opened this issue Dec 15, 2022 · 1 comment
Closed

undefined macro AC_MSG_ERROR & AC_DEFINE #146

a531381 opened this issue Dec 15, 2022 · 1 comment
Labels
support Usage support question/request

Comments

@a531381
Copy link

a531381 commented Dec 15, 2022

Hi,

when I run sh ./autogen.sh, the following error occures:

$ sh ./autogen.sh
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force 
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf --force
configure.ac:22: 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:252: error: possibly undefined macro: AC_DEFINE
autoreconf: error: /usr/bin/autoconf failed with exit status: 1`

When I add the m4_pattern_allow to configure.ac,

m4_pattern_allow([AC_DEFINE])
m4_pattern_allow([AC_MSG_ERROR])

the generation is successful, but then the ./configure fails with

checking for syslog.h... yes
checking for inttypes.h... (cached) yes
checking for fcntl.h... yes
checking for ctype.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PCRE2... yes
checking for pthread for multithreading... yes
./configure: line 7243: syntax error near unexpected token `AC_DEFINE'
./configure: line 7243: `    AX_PTHREAD(AC_DEFINE(WITH_PTHREAD,1,[use pthread]), AC_MSG_ERROR([AIDE requires pthread]))'

The following libraries are in use:

core/autoconf 2.71-1
core/automake 1.16.5-1
core/flex 2.6.4-3 
core/bison 3.8.2-4
core/make 4.3-5
core/pkgconf 1.8.0-1
core/pcre2 10.40-3
community/mhash 0.9.9.9-5
extra/check 0.15.2-2
core/libtool 2.4.7-5

Unfortunately I do not get on :-/

BR,
Sebastian

@hvhaugwitz
Copy link
Member

Please use the AIDE user mailing list (https://www.ipi.fi/mailman/listinfo/aide) to ask for help on compilation issues (and include information about your OS/distribution and the version of AIDE you try to compile).

@hvhaugwitz hvhaugwitz added the support Usage support question/request label Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Usage support question/request
Projects
None yet
Development

No branches or pull requests

2 participants