[pgsql-jp: 38695] Re: pgpoolAdmin-1.0.0 のノードダウンについて

Yoshiyuki Asaba y-asaba @ sraoss.co.jp
2007年 8月 29日 (水) 13:17:20 JST


浅羽です。

From: ymep118 @ sea.plala.or.jp
Subject: [pgsql-jp: 38694] Re: pgpoolAdmin-1.0.0 のノードダウンについて
Date: Wed, 29 Aug 2007 13:12:18 +0900

> >> ところで、pgpool-II 1.2 は FreeBSD 4.11 では
> >> configure は通りますが、gmake でエラーになります。
> 
> > エラーを見せていただいてもよろしいでしょうか?
> 
> 一部ですが、以下のようです。

ログありがとうございます。

sys/types.h を sys/socket.h よりも後に include しているのが問題っぽい
ので、以下のパッチをあてるといかがでしょうか。

configure のあるディレクトリにパッチをコピーし、

  % patch -p0 < diff

と実行してください。

---- ここから ----
Index: pool_query_cache.c
===================================================================
RCS file: /cvsroot/pgpool/pgpool-II/pool_query_cache.c,v
retrieving revision 1.5
diff -p -1 -c -r1.5 pool_query_cache.c
*** pool_query_cache.c	17 May 2007 06:46:02 -0000	1.5
--- pool_query_cache.c	29 Aug 2007 04:24:20 -0000
***************
*** 27,28 ****
--- 27,29 ----
  #include <string.h>
+ #include <sys/types.h>
  #include <arpa/inet.h>
***************
*** 30,32 ****
  #include <sys/time.h>
- #include <sys/types.h>
  #include <unistd.h>
--- 31,32 ----
Index: pcp/pcp.c
===================================================================
RCS file: /cvsroot/pgpool/pgpool-II/pcp/pcp.c,v
retrieving revision 1.2
diff -p -1 -c -r1.2 pcp.c
*** pcp/pcp.c	16 Feb 2007 11:31:55 -0000	1.2
--- pcp/pcp.c	29 Aug 2007 04:24:20 -0000
***************
*** 10,14 ****
  #include <stdlib.h>
  #include <sys/socket.h>
  #include <sys/time.h>
- #include <sys/types.h>
  #include <sys/un.h>
--- 10,14 ----
  #include <stdlib.h>
+ #include <sys/types.h>
  #include <sys/socket.h>
  #include <sys/time.h>
  #include <sys/un.h>
Index: pcp/pcp_stream.c
===================================================================
RCS file: /cvsroot/pgpool/pgpool-II/pcp/pcp_stream.c,v
retrieving revision 1.2
diff -p -1 -c -r1.2 pcp_stream.c
*** pcp/pcp_stream.c	16 Feb 2007 11:31:55 -0000	1.2
--- pcp/pcp_stream.c	29 Aug 2007 04:24:21 -0000
***************
*** 11,14 ****
  #include <time.h>
- #include <sys/time.h>
  #include <sys/types.h>
  #include <unistd.h>
--- 11,14 ----
  #include <time.h>
  #include <sys/types.h>
+ #include <sys/time.h>
  #include <unistd.h>

---- ここまで ----

--
Yoshiyuki Asaba
y-asaba @ sraoss.co.jp



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