2015-02-17 12 views
5

Libnice-0.1.10 oluşturmaya çalışırken bu tür hatalarla karşılaşıyorum. Çözüm için, possibly undefined macro: AC_MSG_ERROR'u takip ediyorum ama yine de oraya gitmiyorum.AS_IF ve AC_MSG_ERROR: hata: büyük olasılıkla tanımlanmamış makro

bazı program versiyonu

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

Ben de ACLOCAL_FLAGS = add "- Ben /.../share/aclocal" bashrc içinde.

Otogen'den bildirilenler aşağıda açıklanmıştır.

$ ./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 

Yardımlarınız için çok teşekkürler!

+0

Takılı ['pkg-config'] (http://www.freedesktop.org/wiki/Software/pkg-config/) var mı? Bakın: '/.../ pay/aclocal/pkg.m4' var. 'ACLOCAL_INCLUDE' ayarlanmasına gerek yoktur - bu dizin zaten autoconf'un bir parçası - ve libnice' m4' dizinlerinde aranmayı engelleyebilir. –

cevap

7

Bu sadece pkg-config eksik (veya belki eski bir sürümü var) demektir. Sadece indirin ve yükleyin.

+0

pkg-config'un kurulduğundan ve sistemimde /usr/share/aclocal/pkg.m4 olduğundan emin oldum. Aşağıdakileri kullanırken hala bir hata yaşıyorum: ACX_PTHREAD ([AC_DEFINE ([HAVE_PTHREAD] ...) Hata: configure.ac:31: error: muhtemelen tanımlanmamış makro: AC_DEFINE Eğer bu belirteci ve diğerleri meşru ise lütfen kullanın. m4_pattern_allow: Başka olası nedenler de var: –

+0

Sorun "pkg-config" problemi ile sonuçlanan sorun giderme adımlarını detaylandırmalısınız. – jww

İlgili konular