Re: 7.4 include file conflict

From: Ray Aspeitia <aspeitia(at)sells(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: 7.4 include file conflict
Date: 2003-12-17 14:09:33
Message-ID: p06002000bc061120d5ab@[192.168.5.55]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I would like to mention that I am on MacOS 10.3 and have this issue
when compiling PHP with both iODBC support and Postgres support at
the same time.

I have to specify the -I/usr/include and the
-I/usr/local/pgsql/include in order for the build scripts to run
correctly. the problem is that at build time when building iODBC it
may or may not look in /usr/include first depending on when the flags
were placed.

Moving the file to ecpg/sqltypes.h should do the trick because
anything other than postgres should not traverse into ecpg/ unless
specifically looking for it.

Not sure if that breaks any user programs as someone else noted.

Thanks.

Ray A.

At 9:39 AM +0100 12/17/03, Michael Meskes wrote:
>On Tue, Dec 16, 2003 at 07:00:25PM -0500, Bruce Momjian wrote:
>> Are you saying some programs will look in /usr/include before looking in
>> -I specified directories, and that is the whole problem? If so, that is
>> 100% wrong and we don't have to fix our files to workaround this.
>
>No I meant to say that you will alsways get our file and not the one in
>/usr/include. That means you must not specify our -I option if you need
>the file in /usr/include. Since this file may be needed together with
>pgsql The best way seems to be moving just the compat headers IMO.
>
>Michael
>--
>Michael Meskes
>Email: Michael at Fam-Meskes dot De
>ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
>Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2003-12-17 15:27:19 Re: 7.4 include file conflict
Previous Message Andreas Pflug 2003-12-17 13:57:29 Re: [PATCHES] Double Backslash example patch