db46 compile failure on mavericks

Blair Zajac blair at orcaware.com
Wed Jan 1 17:00:58 PST 2014


On Jan 1, 2014, at 3:31 PM, Ryan Schmidt <ryandesign at macports.org> wrote:

> 
> On Jan 1, 2014, at 16:27, Blair Zajac wrote:
> 
>> I guess a better way is to ensure the build doesn’t pick up stuff in $prefix/include.
> 
> Does the patch from #40656 help?

No, it doesn’t.  Comparing the 'clang -E’ output between a good and a bad build, the good build is picking up /usr/include/db.h, which is where dbopen() is defined.  In this case, we want the tool to find the old db.h.

I tried adding -I/usr/include to the build:

DB185INC=       -c -pipe -Os -arch x86_64  -I/usr/include -I$(srcdir) -I/opt/local/include

but that didn’t work.

How to make sure that /usr/include is picked up first?

I even tried doing ‘ln -s /usr/include iii’ and adding -Iiii but clang ignores it also.

Blair



More information about the macports-dev mailing list