Re: MacOS X 10.2

From: richmit <richmit(at)member(dot)ams(dot)org>
To: richmit <richmit(at)member(dot)ams(dot)org>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: MacOS X 10.2
Date: 2002-08-25 13:45:07
Message-ID: DDE7DA1D-B830-11D6-A4D8-003065F9192A@member.ams.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports


Ok Ok Ok. I didn't look hard enough at the source code!

I looked at the source code, and figured out that sem.h had
been added to the src/ tree because 10.1 didn't have one -- why would
Apple do that? Grr. Anyhow, the
fix is simple: Undo all the good work that was done to fix the problem
in 10.1! I got everything working
by replacing

#include "port/darwin/sem.h"

with

#include <sys/sem.h>

src/backend/storage/ipc/ipc.c
src/backend/storage/lmgr/proc.c
src/backend/storage/lmgr/spin.c

and by removing the target/dependancy for sem.o in
src/backend/port/darwin/Makefile.

I would have sent diffs, but my changes are not appropriate to be
merged in. All I did was the
minimum to get it to compile on my system, and not what needs to be
done in the production
code. For example, my changes break a compile on 10.1 if that's
important to you. Someone
needs to think about how to fix the code up so that it's production
worthy.

Anyhow. Thanks for the great DB!

On Sunday, August 25, 2002, at 01:23 AM, richmit wrote:

> Greetings;
>
> I just got my shiny new copy of MacOS X 10.2 -- Err. That would be my
> fuzzy, spotted new version of MacOS X. :)
>
> In the process of rebuilding my /usr/local tree, postgreSQL failed to
> build. I had no trouble with 10.1.
>
> The make bailed with:
>
>
> =======================================================================
> =============================
> gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes
> -Wmissing-declarations -I../../../../src/include -c -o sem.o sem.c
> In file included from sem.c:30:
> ../../../../src/include/port/darwin/sem.h:66: warning: `union semun'
> declared inside parameter list
> ../../../../src/include/port/darwin/sem.h:66: warning: its scope is
> only this definition or declaration, which is probably not what you
> want
> ../../../../src/include/port/darwin/sem.h:66: warning: parameter has
> incomplete type
> sem.c:67: warning: `union semun' declared inside parameter list
> sem.c:68: parameter `arg' has incomplete type
> make[4]: *** [sem.o] Error 1
> make[3]: *** [darwin.dir] Error 2
> make[2]: *** [port-recursive] Error 2
> make[1]: *** [all] Error 2
> make: *** [all] Error 2
> =======================================================================
> =============================
>
> I poked around a bit and found semun defined in /usr/include/sem.h. I
> tried some obvious things -- like defining the
> thing, including the correct file, etc... No luck.
>
> This was postgresql-7.2.2.
>
> Thanx in advance for your efforts.
>
>
> -mitch richling
>
> PS: I love this database. I was a diehard Oracle user about a year
> ago, and now I only use it if someone makes me!
> PostgreSQL RULES
>

In response to

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Bruce Momjian 2002-08-25 23:39:00 Re: port to Openserver and Unixware/ GCC
Previous Message richmit 2002-08-25 06:23:14 MacOS X 10.2