Skip site navigation (1) Skip section navigation (2)

7.2.2 on Mac OS 10.2.1 (Darwin 6.0)

From: Jeshua Lacock <jeshua(at)OpenOSX(dot)com>
To: pgsql-ports(at)postgresql(dot)org
Subject: 7.2.2 on Mac OS 10.2.1 (Darwin 6.0)
Date: 2002-09-30 23:46:44
Message-ID: E08A1A7C-D4CE-11D6-A9E3-0003930F25FA@OpenOSX.com (view raw or flat)
Thread:
Lists: pgsql-ports
Greetings,

While attempting to build Postgres 7.2.2 here on Mac OS 10.2.1, I am 
running into a bit of difficulty.

Note that with the introduction of Jaguar (Mac OS 10.2), Apple has 
started including sem.h, so I needed to remove the following code from 
ipc.c, pg_proc.c and spin.c:

#if defined(__darwin__)
#include "port/darwin/sem.h"
#endif

Otherwise, I get a few "previous declaration" and "redefinition" errors.

However, where I am really running into trouble is, regardless of 
building with or without SSL support, is while attempting to build the 
"src/interfaces/ecpg/lib" directory I get the following:

gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes 
-Wmissing-declarations  -flat_namespace -bundle -undefined suppress 
execute.o typename.o descriptor.o data.o error.o prepare.o memory.o 
connect.o misc.o -L/usr/local/ssl -L../../../../src/interfaces/libpq 
-lpq  -o libecpg.so.3.3.0
ld: Undefined symbols:
_crypt referenced from libpq expected to be defined in libcrypto
make[4]: *** [libecpg.so.3.3.0] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2

I have built all dependent libraries with Mac OS 10.2 (gcc 3.1), 
including OpenSSL 0.9.6g.

The build statement has the incorrect flags for using SSL on my system, 
so I tried adding:
    -L/usr/local/ssl/lib -lssl -lcrypto

However,  it still fails with the same error.

Alas, I have Greped and Googled to no avail.

Any ideas or suggestions would be greatly appreciated; in fact I would 
be willing to hire someone to ssh in to take a look, if required.


Thanks,

Jeshua Lacock __________________________
Programmer/Owner            Phone:   760.935.4736
http://OpenOSX.com           Fax:        760.935.4845
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


Responses

pgsql-ports by date

Next:From: Benjamin ReedDate: 2002-10-01 00:23:30
Subject: Re: 7.2.2 on Mac OS 10.2.1 (Darwin 6.0)
Previous:From: Tom LaneDate: 2002-09-27 14:57:36
Subject: Re: porting postgresql 7.0.3 to linux on SH3

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group