2017-07-06 152 views
-1

我正在嘗試爲systemd生成configure腳本。Autorreconf和「錯誤:可能未定義的宏:AM_NLS」

$ git clone https://github.com/systemd/systemd.git 
$ cd systemd 

$ autoreconf -i 
configure.ac:74: warning: macro 'AM_NLS' not found in library 
configure.ac:74: error: possibly undefined macro: AM_NLS 
     If this token and others are legitimate, please use m4_pattern_allow. 
     See the Autoconf documentation. 
autoreconf: /usr/bin/autoconf failed with exit status: 1 

我在一個相當現代的機器上完全修補。它的Fedora 25,x86_64的:

$ lsb_release -a 
LSB Version: :core-4.1-amd64:core-4.1-noarch 
Distributor ID: Fedora 
Description: Fedora release 25 (Twenty Five) 
Release:  25 
Codename:  TwentyFive 

我不是一個自動工具專家,並搜索「錯誤:可能未定義的宏:AM_NLS」是不是對我有用返回命中。我發現Linphone configuration results in multiple undefined Autotools macros,但它不完全清楚我應該做什麼。 Unix & Linux堆棧交換有Some M4 macros don't seem to be defined,但它仍然不清楚我應該爲這個問題做什麼。

有什麼問題,我該如何解決?

回答

2

What is the problem and how do I fix it?

的問題是它的預期GNU gettext,特別是在Fedora 25 gettext-devel。它包含在該包中的/usr/share/aclocal/nls.m4中。您應該可以安裝該軟件包並構建。

+0

非常感謝。誰提出了這些難以理解的錯誤信息?在Autotools工程過程中,他們無法完成的是什麼?*「請安裝gettext或確保它在路徑上」*? – jww

+0

'AM_NLS'不是automake的一部分,所以他們不能直覺需要安裝什麼。也許運行[autogen.sh](https://github.com/systemd/systemd/blob/master/autogen.sh)會給你更多的信息,因爲腳本引導了構建。 – ldav1s

相關問題