[pgsql-jp: 31896] PostgreSQLモジュール作成エラーについて(HP-UX11.11)

tanabe @ bsp.co.jp tanabe @ bsp.co.jp
2004年 1月 5日 (月) 10:37:20 JST


初めてメールさせて頂きます。
田邉と申します。宜しくお願い致します。

HP-UXでPostgreSQLのモジュールを作成しようとしていますが、
configureの途中でエラーが出て終了してしまいます。

環境は以下の通りです。

    OS         : HP-UX 11.11
    PostgreSQL : 7.3.3(社内の事情から7.3.3を使用しています)
    gcc        : 3.3.2

標準出力、及びconfig.logには以下のように出力されています。
(とても長いので、エラーと関係しそうな箇所を抜粋します。)

============================================================

■標準出力

#./configure CC=gcc --prefix=/SOFT/PostgreSQLm_733
(中略)
checking sys/socket.h usability... no
checking sys/socket.h presence... yes
configure: WARNING: sys/socket.h: present but cannot be compiled
configure: WARNING: sys/socket.h: check for missing prerequisite headers?
configure: WARNING: sys/socket.h: proceeding with the preprocessor's result
checking for sys/socket.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking kernel/OS.h usability... no
checking kernel/OS.h presence... no
checking for kernel/OS.h... no
checking kernel/image.h usability... no
checking kernel/image.h presence... no
checking for kernel/image.h... no
checking SupportDefs.h usability... no
checking SupportDefs.h presence... no
checking for SupportDefs.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for netinet/tcp.h... yes
checking readline/readline.h usability... yes
checking readline/readline.h presence... yes
checking for readline/readline.h... yes
checking readline/history.h usability... yes
checking readline/history.h presence... yes
checking for readline/history.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for preprocessor stringizing operator... yes
checking for signed types... yes
checking for working volatile... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... no
checking for tzname... yes
checking for union semun... no
checking for struct sockaddr_un... yes
checking for struct cmsgcred... no
checking for struct fcred... no
checking for struct sockcred... no
checking for z_streamp... yes
checking for int timezone... yes
checking types of arguments for accept()... configure: error: could not
determine argument types

============================================================

■config.log

(前略)

configure:9585: checking types of arguments for accept()
configure:9624: gcc -c -O2   conftest.c >&5
In file included from configure:9604:
/usr/include/sys/socket.h:484: error: parse error before "sendfile"
/usr/include/sys/socket.h:484: error: parse error before "bsize_t"
/usr/include/sys/socket.h:486: error: parse error before "sendpath"
/usr/include/sys/socket.h:486: error: parse error before "bsize_t"
configure:9606: error: conflicting types for `accept'
/usr/include/sys/socket.h:467: error: previous declaration of `accept'
configure:9627: $? = 1
configure: failed program was:
#line 9599 "configure"
#include "confdefs.h"
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
extern int accept (int, struct sockaddr *, int *);
#ifdef F77_DUMMY_MAIN
#  ifdef __cplusplus
     extern "C"
#  endif
   int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{

  ;
  return 0;
}

(中略)

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "PostgreSQL"
#define PACKAGE_TARNAME "postgresql"
#define PACKAGE_VERSION "7.3.3"
#define PACKAGE_STRING "PostgreSQL 7.3.3"
#define PACKAGE_BUGREPORT "pgsql-bugs @ postgresql.org"
#define PG_VERSION "7.3.3"
#define DEF_PGPORT 5432
#define DEF_PGPORT_STR "5432"
#define DEF_MAXBACKENDS 32
#define PG_VERSION_STR "PostgreSQL 7.3.3 on hppa2.0w-hp-hpux11.11, compiled by
GCC gcc (GCC) 3.3.2"
#define PG_KRB_SRVNAM "postgres"
#define HAVE_LIBM 1
#define HAVE_LIBNSL 1
#define HAVE_LIBDLD 1
#define HAVE_LIBBSD 1
#define HAVE_LIBGEN 1
#define HAVE_LIBPW 1
#define HAVE_LIBREADLINE 1
#define HAVE_LIBZ 1
#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_UNISTD_H 1
#define HAVE_CRYPT_H 1
#define HAVE_PWD_H 1
#define HAVE_SYS_IPC_H 1
#define HAVE_SYS_PSTAT_H 1
#define HAVE_SYS_SEM_H 1
#define HAVE_SYS_SOCKET_H 1
#define HAVE_SYS_SHM_H 1
#define HAVE_SYS_UN_H 1
#define HAVE_TERMIOS_H 1
#define HAVE_NETINET_IN_H 1
#define HAVE_NETINET_TCP_H 1
#define HAVE_READLINE_READLINE_H 1
#define HAVE_READLINE_HISTORY_H 1
#define HAVE_STRINGIZE 1
#define HAVE_TZNAME 1
#define HAVE_STRUCT_SOCKADDR_UN 1
#define HAVE_INT_TIMEZONE

configure: exit 1

============================================================

config.logの内容から見て、ヘッダの依存関係がおかしいために
テストPGMのコンパイルで未定義のエラーが出ているのではないか、
と想像するのですが、それを修正する方法が見つけられずにおります。
情報をお持ちの方がいらっしゃいましたら、ご助言頂けますでしょうか。

メーリングリストは検索してみたつもりですが、
もし既出の話題でしたら申し訳ありません。

宜しくお願い致します。

田邉 弥雅美(Miyabi Tanabe)
<tanabe @ bsp.co.jp>





pgsql-jp メーリングリストの案内