2015-02-17 4 views
5

मुझे libnice-0.1.10 बनाने का प्रयास करते समय ऐसी त्रुटियां आती हैं। समाधान के लिए, मैं possibly undefined macro: AC_MSG_ERROR का पालन कर रहा हूं, लेकिन अभी भी वहां नहीं जा रहा है।AS_IF और AC_MSG_ERROR: त्रुटि: संभवतः अपरिभाषित मैक्रो

कुछ कार्यक्रम संस्करण

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

मैं भी ACLOCAL_FLAGS = जोड़ने "- मैं /.../share/aclocal" bashrc में।

ऑटोोजेन से यहां बताया गया है।

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

धन्यवाद मदद के लिए बहुत कुछ!

+0

क्या आपके पास ['pkg-config'] है (http://www.freedesktop.org/wiki/Software/pkg-config/) स्थापित है? देखें कि: '/.../ शेयर/एक्लोकल/pkg.m4' मौजूद है या नहीं। 'ACLOCAL_INCLUDE' सेट करना आवश्यक नहीं होना चाहिए - वह निर्देशिका पहले से ही ऑटोकॉन्फ़ का हिस्सा है - और यह libnice' m4' निर्देशिकाओं में खोज को रोक सकती है। –

उत्तर

7

इसका मतलब है कि आप पीकेजी-कॉन्फ़िगरेशन खो रहे हैं (या शायद आपके पास पुराना संस्करण है)। बस डाउनलोड करें और इंस्टॉल करें।

+0

मैंने यह सुनिश्चित किया है कि pkg-config स्थापित है और मेरे सिस्टम पर /usr/share/aclocal/pkg.m4 है। निम्न का उपयोग करते समय मुझे अभी भी एक त्रुटि मिली है: ACX_PTHREAD ([AC_DEFINE ([HAVE_PTHREAD] ...)। त्रुटि config.ac:31 है: त्रुटि: संभवतः अपरिभाषित मैक्रो: AC_DEFINE। यदि यह टोकन और अन्य वैध हैं, तो कृपया उपयोग करें m4_pattern_allow। तो अन्य कारण भी संभव हैं। –

+0

आपको समस्या निवारण चरणों का विवरण देना चाहिए जो निष्कर्ष 'pkg-config' में समस्या है। – jww

संबंधित मुद्दे