CYRUS SASL-2.1.26 ./configure:make:未使用'linker'输入且出现致命错误:找不到'unicode / ucnv.h'文件

时间:2018-08-15 11:49:35

标签: linux makefile compiler-errors configure compiler-flags

我有以下问题: 它以某种方式找不到该文件的ICU库,从而产生以下错误:

系统:OS X High Sierra

要编译:Cyrus SASL-2.1.26

clang: warning: /usr/local/icu/include: 'linker' input unused [-Wunused-command-line-argument]
In file included from lib/charset.c:48:
./lib/charset.h:61:10: fatal error: 'unicode/ucnv.h' file not found
#include "unicode/ucnv.h"
     ^~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [lib/lib_libcyrus_la-charset.lo] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

使用的命令:

./configure OPENSSL_CFLAGS=/usr/local/libressl-2.5.5/include
  OPENSSL_LIBS="/usr/local/libressl-2.5.5/lib -lssl -lcrypto"
  JANSSON_CFLAGS=/usr/local/jansson-2.11/incluce 
  JANSSON_LIBS=/usr/local/jansson-2.11/lib ICU_CFLAGS=/usr/loca/icu/include
  ICU_LIBS=/usr/local/icu/lib --prefix=/usr/local/cyrus-imapdb-3.0.8
  --sysconfdir=/etc --enable-auth-sasldb  --with-dbpath=/var/lib/sasl/sasldb2 
  --with-saslauthd=/var/run/saslauthd

按照此处的说明进行操作:http://www.linuxfromscratch.org/blfs/view/svn/postlfs/cyrus-sasl.html

./configure passes but make -j1 exits with the error shown above.

设置了bash_profile:

export PATH=/usr/local/icu/bin:$PATH
export LIBRARY_PATH=/usr/local/icu/lib:$LIBRARY_PATH 
export MANPATH=/usr/local/icu/share/man:$MANPATH

感谢我的帮助,因为我的头发越来越白。

0 个答案:

没有答案