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 15:37:03
Message-ID: 458D4D1F.1090901@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

lothar(dot)behrens(at)lollisoft(dot)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 */

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Richard Broersma Jr 2006-12-26 18:19:40 minor error message configuring ODBC driver from windows datasource administrator
Previous Message lothar.behrens@lollisoft.de 2006-12-23 11:41:26 Re: Build failure on Mac OS X 10.3.9