Skip site navigation (1) Skip section navigation (2)

Re: Build failure on Mac OS X 10.3.9

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: "lothar(dot)behrens(at)lollisoft(dot)de" <lothar(dot)behrens(at)lollisoft(dot)de>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Build failure on Mac OS X 10.3.9
Date: 2006-12-23 10:41:13
Message-ID: 458D07C9.3030003@tpf.co.jp (view raw or flat)
Thread:
Lists: pgsql-odbc
lothar(dot)behrens(at)lollisoft(dot)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 <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

Attachment: socket.diff
Description: text/plain (310 bytes)

In response to

Responses

pgsql-odbc by date

Next:From: lothar.behrens@lollisoft.deDate: 2006-12-23 11:41:26
Subject: Re: Build failure on Mac OS X 10.3.9
Previous:From: lothar.behrens@lollisoft.deDate: 2006-12-23 09:57:59
Subject: Build failure on Mac OS X 10.3.9

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group