Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D47FE9FA12F for ; Sat, 23 Dec 2006 06:41:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 40893-04 for ; Sat, 23 Dec 2006 06:41:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 6EA009F9F2C for ; Sat, 23 Dec 2006 06:41:18 -0400 (AST) Received: (qmail 6845 invoked from network); 23 Dec 2006 19:41:15 +0900 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 23 Dec 2006 19:41:15 +0900 Received: from unknown (HELO ?192.168.11.2?) (219.61.40.6) by sd.tpf.co.jp with SMTP; 23 Dec 2006 19:41:15 +0900 Message-ID: <458D07C9.3030003@tpf.co.jp> Date: Sat, 23 Dec 2006 19:41:13 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: "lothar.behrens@lollisoft.de" CC: pgsql-odbc@postgresql.org Subject: Re: Build failure on Mac OS X 10.3.9 References: <1166867879.075308.222460@h40g2000cwb.googlegroups.com> In-Reply-To: <1166867879.075308.222460@h40g2000cwb.googlegroups.com> Content-Type: multipart/mixed; boundary="------------080607030001080004050206" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/86 X-Sequence-Number: 8533 This is a multi-part message in MIME format. --------------080607030001080004050206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit lothar.behrens@lollisoft.de wrote: > Hi, > > I am trying to use the Mac OS X installation package of PostgreSQL 8.1. > The database could be installed > and I could basically use my old psqlODBC driver (07.03.0200). > > Trying to compile the odbc driver 08.02.0200 gives me these errors ? > > ./configure --with-unixodbc > ... > > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/include/postgresql -g -O2 -MT > results.lo -MD -MP -MF .deps/results.Tpo -c results.c -fno-common > -DPIC -o .libs/results.o > if /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. > -I. -I. -I/sw/include/postgresql -g -O2 -MT socket.lo -MD -MP -MF > ".deps/socket.Tpo" -c -o socket.lo socket.c; \ > then mv -f ".deps/socket.Tpo" ".deps/socket.Plo"; else rm -f > ".deps/socket.Tpo"; exit 1; fi > gcc -DHAVE_CONFIG_H -I. -I. -I. -I/sw/include/postgresql -g -O2 -MT > socket.lo -MD -MP -MF .deps/socket.Tpo -c socket.c -fno-common -DPIC > -o .libs/socket.o > socket.c: In function `SOCK_connect_to': > socket.c:310: error: storage size of `tm' isn't known > socket.c: In function `SOCK_wait_for_ready': > socket.c:422: error: storage size of `tm' isn't known > make[1]: *** [socket.lo] Error 1 > make: *** [all] Error 2 > lothars-Computer:~/psqlodbc-08.02.0200 lothar$ > > What is wrong ? Could you try the following patch ? *** socket.c.orig Tue Oct 24 00:16:47 2006 --- socket.c Sat Dec 23 19:36:39 2006 *************** *** 24,29 **** --- 24,30 ---- #include /* for memset */ #if defined(TM_IN_SYS_TIME) #include + #include #else #include #endif /* defined(TM_IN_SYS_TIME) */ regards, Hiroshi Inoue --------------080607030001080004050206 Content-Type: text/plain; name="socket.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="socket.diff" *** socket.c.orig Tue Oct 24 00:16:47 2006 --- socket.c Sat Dec 23 19:36:39 2006 *************** *** 24,29 **** --- 24,30 ---- #include /* for memset */ #if defined(TM_IN_SYS_TIME) #include + #include #else #include #endif /* defined(TM_IN_SYS_TIME) */ --------------080607030001080004050206--