Thread: Mac OS X 10.2/Darwin 6.0

Mac OS X 10.2/Darwin 6.0

From
Ajay Ayyagari
Date:
I'm trying to compile PostgreSQL 7.2.2 under the Mac OS X 10.2/Darwin 
6.0 (Jaguar) and having some difficulties. I'm using a clean install so 
there shouldn't be any customizations hindering the compilation 
process. I have it stored in /usr/local/pgsql and I configure it as 
below:

./configure --enable-locale --enable-recode --enable-multibyte 
--with-perl --with-python --with-java --with-openssl --enable-odbc 
--with-CXX --enable-syslog

But while making the following error occurs:

make -C darwin all
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

Obviously the sem.h file doesn't contain a definition for union semun, 
and the only include is for <sys/ipc.h>. That doesn't contain the 
definition either. I poked around a bit and found a CVS commit relating 
to sem.h. The URL is:

http://archives.postgresql.org/pgsql-committers/2002-05/msg00019.php

It says sem.h isn't needed anymore and has been removed, but the date 
is marked May 5th of 2002. Is this referring to the beta 3 release? I 
also found that <sys/sem.h> contains the needed definition, but isn't 
included anywhere. Also, the sem.h file in question appears to be 
replicating much of the functionality found in <sys/mem.h>. This seems 
to be quite an issue because in pgsql/include/port/darwin there is a 
readme file talking about some work-around required for Mac OS X 10.1 
that relates to mem.h.

Does anyone have an idea as to how to fix this? Thanks.

___________________
Ajay Ayyagari
daleks@seattleu.edu
___________________