TATEISHI Katsuyuki
tatei****@oss*****
2009年 8月 25日 (火) 10:48:13 JST
立石です。 From: Shinya TAKEBAYASHI <takeb****@oss*****> Subject: Re: [Ultramonkey-l7-develop 517] Re: [Ultramonkey-l7-users 211] Re: UltraMonkey-L7 2.1.3-0/SSLProxy 1.0.2-0 リリースのお知らせ Date: Tue, 25 Aug 2009 10:07:30 +0900 >> > 3. configure で error 発生 >> > >> > configure スクリプト実行時,各ファイルを生成する段階で >> > >> > config.status: linking ././fnmatch_.h to ./fnmatch.h >> > config.status: error: ././fnmatch_.h: file not found >> > >> > となり,先に進めません. >> >> ・・・snip・・・ >> >> rpm -V glibc-headers の結果がどうなるか教えてもらえますか? >> あと、configure したディレクトリ直下に config.log というファ >> イルがあるはずなので、それも欲しいです。 > > rpm -V の実行結果は, > > root @ minori:~# rpm -V glibc-headers > root @ minori:~# echo $? > 0 > > root @ minori:~# rpm -q glibc-headers > glibc-headers-2.5-34 > > > fnmatch.h については > > root @ minori:~# locate fnmatch > /usr/include/fnmatch.h > /usr/include/apr-1/apr_fnmatch.h > ・・・ > > ということで,fnmatch.h は見えるところにあります. > > config.log は添付します. > > よろしくお願いします. 以下の作業を行うとどうなるか教えてもらえますか? 手順1. 添付の conftest.c を以下のコマンドでコンパイルします。 gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic conftest.c -lrt -llog4cxx -lboost_regex -ldl おそらく以下のような warning が出ますが、問題ないです。 [buildadm @ kaede tmp]$ gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic conftest.c -lrt -llog4cxx -lboost_regex -ldl conftest.c: In function ‘main’: conftest.c:60: warning: implicit declaration of function ‘exit’ conftest.c:60: warning: incompatible implicit declaration of built-in function ‘exit’ 手順2. 手順1で作成した conftest を実行してください。 [buildadm @ kaede tmp]$ ./conftest ; echo $? 0 のように実行できるはずですが、送っていただいたconfig.logでは 以下のようなエラーになっています。 ============================================================ configure:21408: ./conftest ./conftest: error while loading shared libraries: liblog4cxx.so.10: cannot open shared object file: No such file or directory configure:21411: $? = 127 configure: program exited with status 127 ============================================================ そのまま読むと、 「liblog4cxx.so.10 が見つからない」 ということですが、log4cxx をインストールした後にldconfig と かは実行してますよね? # そもそも見つからなければリンク時にエラーになりそうなもんですが・・・ -- TATEISHI Katsuyuki <tatei****@oss*****> -------------- next part -------------- /* confdefs.h. */ #define PACKAGE_NAME "ultramonkey-l7" #define PACKAGE_TARNAME "ultramonkey-l7" #define PACKAGE_VERSION "2.1.3-0" #define PACKAGE_STRING "ultramonkey-l7 2.1.3-0" #define PACKAGE_BUGREPORT "ultra****@lists*****" #define PACKAGE "ultramonkey-l7" #define VERSION "2.1.3-0" #ifdef __cplusplus extern "C" void std::exit (int) throw (); using std::exit; #endif #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define HAVE_LIBDL 1 #define HAVE_LIBBOOST_REGEX 1 #define HAVE_LIBLOG4CXX 1 #define HAVE_LIBRT 1 #define STDC_HEADERS 1 #define HAVE_ARPA_INET_H 1 #define HAVE_FCNTL_H 1 #define HAVE_LIMITS_H 1 #define HAVE_NETDB_H 1 #define HAVE_NETINET_IN_H 1 #define HAVE_STDINT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_SYS_FILE_H 1 #define HAVE_SYS_IOCTL_H 1 #define HAVE_SYS_PARAM_H 1 #define HAVE_SYS_SOCKET_H 1 #define HAVE_SYS_TIME_H 1 #define HAVE_UNISTD_H 1 #define HAVE_BOOST_REGEX_HPP 1 #define HAVE_LOG4CXX_LOGGER_H 1 #define HAVE__BOOL 1 #define HAVE_STDBOOL_H 1 #define TIME_WITH_SYS_TIME 1 #define HAVE_ALLOCA_H 1 #define HAVE_ALLOCA 1 #define HAVE_MBSTATE_T 1 /* end confdefs.h. */ #include <fnmatch.h> # define y(a, b, c) (fnmatch (a, b, c) == 0) # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) int main () { exit (!(y ("a*", "abc", 0) && n ("d*/*1", "d/s/1", FNM_PATHNAME) && y ("a\\bc", "abc", 0) && n ("a\\bc", "abc", FNM_NOESCAPE) && y ("*x", ".x", 0) && n ("*x", ".x", FNM_PERIOD) && 1)); ; return 0; }