Current Driver and Mac OS X Build questions

Current Driver and Mac OS X Build questions

am 17.11.2006 20:25:54 von Andy Satori

Gents,

I just got finished building the current driver on Mac OS X and
before I file a bug and write a patch, I wanted to check to see if
this is a by design deal or just an omission.

First, a default ./configure fails to add the -liodbc to the ldflags,
this must be forced using --with-iodbc

Second, ./configure --with-iodbc fails to link due to missing symbols
_CONNLOCK_ACQUIRE (and related). The issue is that in connection.h,
there is a definition for that function if multi-threading is
enabled, but if you don't explicitly define --enable-pthread there is
no definiection for CONNLOCK_AQUIRE and friends.

So, is this by intent? second, what is the desired behaviour for
non-pthread builds?

Andy


---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Re: Current Driver and Mac OS X Build questions

am 18.11.2006 08:20:31 von Peter Eisentraut

Andrew Satori wrote:
> First, a default ./configure fails to add the -liodbc to the ldflags,
> this must be forced using --with-iodbc

This is intentional.

> Second, ./configure --with-iodbc fails to link due to missing symbols
> _CONNLOCK_ACQUIRE (and related). The issue is that in connection.h,
> there is a definition for that function if multi-threading is
> enabled, but if you don't explicitly define --enable-pthread there is
> no definiection for CONNLOCK_AQUIRE and friends.

This is a bug; see discussion a few days back.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings