2015-02-17 7 views
5

Ich stoße solche Fehler beim Versuch, libnice-0.1.10 zu bauen. Zur Lösung folge ich possibly undefined macro: AC_MSG_ERROR, komme aber immer noch nicht hin.AS_IF und AC_MSG_ERROR: Fehler: möglicherweise undefined Makro

einige Programmversion

uname: 3.5.0-23-generic 
m4: 1.4.16 
automake: 1.14.1 
autoconf: 2.69 
libtoolize: 2.4.2 

Ich füge auch ACLOCAL_FLAGS = "- I /.../share/aclocal" in bashrc.

Hier ist, was von Autogen gemeldet wird.

$ ./autogen.sh 
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd 
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from... 
configure.ac:331: the top level 
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd 
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from... 
configure.ac:331: the top level 
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd 
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from... 
configure.ac:331: the top level 
libtoolize: putting auxiliary files in `.'. 
libtoolize: copying file `./ltmain.sh' 
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'. 
libtoolize: copying file `m4/libtool.m4' 
libtoolize: copying file `m4/ltoptions.m4' 
libtoolize: copying file `m4/ltsugar.m4' 
libtoolize: copying file `m4/ltversion.m4' 
libtoolize: copying file `m4/lt~obsolete.m4' 
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd 
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from... 
configure.ac:331: the top level 
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd 
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from... 
configure.ac:331: the top level 
configure.ac:331: warning: PKG_PROG_PKG_CONFIG is m4_require'd but not m4_defun'd 
m4/gtk-doc.m4:7: GTK_DOC_CHECK is expanded from... 
configure.ac:331: the top level 
configure.ac:105: error: possibly undefined macro: AS_IF 
     If this token and others are legitimate, please use m4_pattern_allow. 
     See the Autoconf documentation. 
configure.ac:218: error: possibly undefined macro: AC_MSG_ERROR 
autoreconf: /opt/oblong/deps-64-10/bin/autoconf failed with exit status: 1 

Vielen Dank für die Hilfe!

+0

Haben Sie ['pkg-config'] (http://www.freedesktop.org/wiki/Software/pkg-config/) installiert? Sehen Sie, ob: '/.../ share/aclocal/pkg.m4 existiert. Es sollte nicht notwendig sein, 'ACLOCAL_INCLUDE' zu setzen - dieses Verzeichnis ist bereits Teil von autoconf - und es könnte die Suche in den libnice' m4'-Verzeichnissen verhindern. –

Antwort

7

Das bedeutet nur, dass Sie pkg-config vermissen (oder vielleicht haben Sie eine alte Version). Einfach herunterladen und installieren.

+0

Ich habe sichergestellt, dass pkg-config installiert ist und ich /usr/share/aclocal/pkg.m4 auf meinem System habe. Ich habe immer noch einen Fehler bei der Verwendung der folgenden: ACX_PTHREAD ([AC_DEFINE ([HAVE_PTHREAD] ...). Der Fehler ist configure.ac:31: Fehler: möglicherweise undefined Makro: AC_DEFINE.Wenn dieses Token und andere legitim sind, verwenden Sie bitte m4_pattern_allow.So gibt es andere mögliche Ursachen. –

+0

Sie sollten die Schritte zur Problembehandlung im Detail beschreiben, die zu der Schlussfolgerung führen, dass 'pkg-config' das Problem ist. – jww