pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedBuild failure on Mac OS X 10.3.9
4+ messages / 2 participants
[nested] [flat]
* Build failure on Mac OS X 10.3.9
@ 2006-12-23 09:57 lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
0 siblings, 1 reply; 4+ messages in thread
From: lothar.behrens@lollisoft.de @ 2006-12-23 09:57 UTC (permalink / raw)
To: pgsql-odbc
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 ?
Thanks, Lothar
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Build failure on Mac OS X 10.3.9
@ 2006-12-23 10:41 Hiroshi Inoue <inoue@tpf.co.jp>
parent: lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
0 siblings, 1 reply; 4+ messages in thread
From: Hiroshi Inoue @ 2006-12-23 10:41 UTC (permalink / raw)
To: lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>; +Cc: pgsql-odbc
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) */
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Build failure on Mac OS X 10.3.9
@ 2006-12-23 11:41 lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
parent: Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 4+ messages in thread
From: lothar.behrens@lollisoft.de @ 2006-12-23 11:41 UTC (permalink / raw)
To: pgsql-odbc
> *** 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
Here should be the line (after the above else line)
#include <sys/time.h>
> #include <time.h>
> #endif /* defined(TM_IN_SYS_TIME) */
>
Now I have another error:
After an error by indirectly linking to libssl I have added -lssl to
the makefile. Then I get this error:
ld: Undefined symbols:
_CONNLOCK_ACQUIRE
_CONNLOCK_RELEASE
_INIT_CONNLOCK
Where are these functions ?
Thanks, Lothar
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Build failure on Mac OS X 10.3.9
@ 2006-12-23 15:37 Hiroshi Inoue <inoue@tpf.co.jp>
parent: lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
0 siblings, 0 replies; 4+ messages in thread
From: Hiroshi Inoue @ 2006-12-23 15:37 UTC (permalink / raw)
To: lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>; +Cc: pgsql-odbc
lothar.behrens@lollisoft.de wrote:
>> *** 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
>>
>
> Here should be the line (after the above else line)
>
> #include <sys/time.h>
>
>
>> #include <time.h>
>> #endif /* defined(TM_IN_SYS_TIME) */
>>
>>
>
> Now I have another error:
>
> After an error by indirectly linking to libssl I have added -lssl to
> the makefile. Then I get this error:
>
> ld: Undefined symbols:
> _CONNLOCK_ACQUIRE
> _CONNLOCK_RELEASE
> _INIT_CONNLOCK
>
> Where are these functions ?
>
It is already fixed in the current CVS.
Please apply the following patch .
===================================================================
RCS file: /cvsroot/psqlodbc/psqlodbc/connection.h,v
retrieving revision 1.79
retrieving revision 1.80
inline patch 1: psqlodbc/psqlodbc/connection.h (+3/-1 lines) download inline-1.patch
diff -u -p -r1.79 -r1.80
--- psqlodbc/psqlodbc/connection.h 2006/10/31 12:21:28 1.79
+++ psqlodbc/psqlodbc/connection.h 2006/11/03 10:41:19 1.80
@@ -173,8 +173,10 @@ do { \
#define INIT_CONNLOCK(x)
#define TRY_ENTER_CONN_CS(x)
#define ENTER_CONN_CS(x)
-#define ENTER_INNER_CONN_CS(x, entered) (0)
+#define CONNLOCK_ACQUIRE(x)
+#define ENTER_INNER_CONN_CS(x, entered)
#define LEAVE_CONN_CS(x)
+#define CONNLOCK_RELEASE(x)
#define DELETE_CONN_CS(x)
#define DELETE_CONNLOCK(x)
#endif /* WIN_MULTITHREAD_SUPPORT */
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2006-12-23 15:37 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-12-23 09:57 Build failure on Mac OS X 10.3.9 lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
2006-12-23 10:41 ` Hiroshi Inoue <inoue@tpf.co.jp>
2006-12-23 11:41 ` lothar.behrens@lollisoft.de <lothar.behrens@lollisoft.de>
2006-12-23 15:37 ` Hiroshi Inoue <inoue@tpf.co.jp>
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