pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Hiroshi Inoue <inoue@tpf.co.jp>
To: lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Build failure on Mac OS X 10.3.9
Date: Sat, 23 Dec 2006 19:41:13 +0900
Message-ID: <458D07C9.3030003@tpf.co.jp> (raw )
In-Reply-To: <1166867879.075308.222460@h40g2000cwb.googlegroups.com >
References: <1166867879.075308.222460@h40g2000cwb.googlegroups.com >
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 ?
inline patch 1: socket.c Sat Dec 23 19:36:39 2006 (+1/-0 lines) download inline-1.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 <string.h> /* for memset */
#if defined(TM_IN_SYS_TIME)
#include <sys/time.h>
+ #include <time.h>
#else
#include <time.h>
#endif /* defined(TM_IN_SYS_TIME) */
regards,
Hiroshi Inoue
Patches and attachments: download all (2 files, .tar.gz)
socket.diff (text/plain, 309B) download
*** socket.c.orig Tue Oct 24 00:16:47 2006
--- socket.c Sat Dec 23 19:36:39 2006
***************
*** 24,29 ****
--- 24,30 ----
#include <string.h> /* for memset */
#if defined(TM_IN_SYS_TIME)
#include <sys/time.h>
+ #include <time.h>
#else
#include <time.h>
#endif /* defined(TM_IN_SYS_TIME) */
view thread (4+ messages) latest in thread
Message-ID: <458D07C9.3030003@tpf.co.jp>
Permalink: ../458D07C9.3030003@tpf.co.jp/
Also on: postgresql.org/message-id/458D07C9.3030003@tpf.co.jp
copy link · copy postgr.es · copy git am
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, lothar.behrens@lollisoft.de
Subject: Re: Build failure on Mac OS X 10.3.9
In-Reply-To: <458D07C9.3030003@tpf.co.jp>
References: <1166867879.075308.222460@h40g2000cwb.googlegroups.com> <458D07C9.3030003@tpf.co.jp>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox