Re: MacOS X 10.2
От | richmit |
---|---|
Тема | Re: MacOS X 10.2 |
Дата | |
Msg-id | DDE7DA1D-B830-11D6-A4D8-003065F9192A@member.ams.org обсуждение исходный текст |
Ответ на | MacOS X 10.2 (richmit <richmit@member.ams.org>) |
Ответы |
Kerberos IV Support Broken?
|
Список | 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 >
В списке pgsql-ports по дате отправления: