フォーラム: ヘルプ (スレッド #35918)

ntch-1.0.2.8のコンパイルエラー (2014-08-31 09:47 by kapper1224 #74259)

はじめまして、ご質問させてください。
ntch-1.0.2.8のソースコードをコンパイルしようとmakeしました所、
下記のエラーが出て止まりました。
恐らく/gen/print_help.cの定義エラーかと推定しています。
ご教授頂きたく、何卒よろしくお願い申し上げます。

当方UbuntuLinux 14.04の環境です。
ログは下記となります。

/ntch-1.0.2.8$ make
cp -f config.h src/inc/config.h
gcc -O2 -Wall -DHAVE_CONFIG_H -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE -DNT_CLOUD -DNT_NET_IPV6 -I/usr/include/gdbm -I./src/inc -c -o obj/main.o src/main.c
gcc -O2 -Wall -DHAVE_CONFIG_H -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE -DNT_CLOUD -DNT_NET_IPV6 -I/usr/include/gdbm -I./src/inc -c -o obj/utils/nt_std_t.o src/utils/nt_std_t.c
gcc -O2 -Wall -DHAVE_CONFIG_H -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE -DNT_CLOUD -DNT_NET_IPV6 -I/usr/include/gdbm -I./src/inc -c -o obj/env.o src/env.c
gcc -O2 -Wall -DHAVE_CONFIG_H -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=700 -D_ISOC99_SOURCE -DNT_CLOUD -DNT_NET_IPV6 -I/usr/include/gdbm -I./src/inc -c -o obj/server_main.o src/server_main.c
gcc -o help_gen help_gen.c
mkdir -p ./gen
./help_gen help.txt > ./gen/print_help.c
make: *** [obj/print_help.o] エラー 1

configureした後の内容はこちらです。
必要なライブラリは一通り入れたと推定しています。

~/ntch-1.0.2.8$ ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for BIO_ctrl in -lcrypto... yes
checking for dlopen in -ldl... yes
checking for dbm_open in -lgdbm... no
checking for dbm_open in -lgdbm_compat... yes
checking for sqrt in -lm... yes
checking for initscr in -lncursesw... yes
checking for pthread_create in -lpthread... yes
checking for sqlite3_initialize in -lsqlite3... yes
checking for SSL_library_init in -lssl... yes
checking for inflate in -lz... yes
checking for clock_gettime in -lrt... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for memory.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking ndbm.h usability... no
checking ndbm.h presence... no
checking for ndbm.h... no
checking gdbm-ndbm.h usability... yes
checking gdbm-ndbm.h presence... yes
checking for gdbm-ndbm.h... yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking ncursesw/ncurses.h usability... yes
checking ncursesw/ncurses.h presence... yes
checking for ncursesw/ncurses.h... yes
checking for pid_t... yes
checking for size_t... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for uid_t in sys/types.h... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for gethostbyname... yes
checking for memset... yes
checking for mkdir... yes
checking for regcomp... yes
checking for setlocale... yes
checking for socket... yes
checking for strchr... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for prefix by checking for ntch... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing make-gen-dir commands