Re: Build failure on Mac OS X 10.3.9 - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: Build failure on Mac OS X 10.3.9
Date
Msg-id 458D4D1F.1090901@tpf.co.jp
Whole thread Raw
In response to Re: Build failure on Mac OS X 10.3.9  ("lothar.behrens@lollisoft.de" <lothar.behrens@lollisoft.de>)
List 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
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 */



pgsql-odbc by date:

Previous
From: "lothar.behrens@lollisoft.de"
Date:
Subject: Re: Build failure on Mac OS X 10.3.9
Next
From: Richard Broersma Jr
Date:
Subject: minor error message configuring ODBC driver from windows datasource administrator