Forum OpenACS Q&A: Can't compile Postgresql driver on HPUX 10.20

Has anyone managed to compile the postgresql driver for aolserver 3
on hp-ux 10.20 (running gcc) ? Could they send me their makefile ?

I've compiled and installed postgresql 6.5.3 into /opt/postgres - and
it works fine.

I've installed the aolserver3 binaries into /opt/aolserver3_0 and
they appear to work fine.

I have the aolserver source code in /usr/local/aolserver3_0

I saw the comments about the makefile for the driver being hard-coded
so I edited it as follows

----------------------------------------

# Location of the PostgreSQL libraries

PGLIB=/opt/postgres/lib

# Location of the PostgreSQL includes

PGINC=/opt/postgres/include

# Location of the AOLserver files (normally the ~nsadmin directory):

NSHOME=/opt/aolserver3_0

# added by Richard Moon 08/06/2000

NSINC=/usr/local/aolserver3_0/include

CC=gcc

# Changed by Richard Moon 08/06/2000

COPTS=-Wall -fpic -shared -I$(PGINC) -I$(NSINC) -I-/usr/include

-------------------------------------------

Then I ran make and got

# gmake
gcc -I/opt/aolserver3_0/include -Wall -fpic -shared -
I/opt/postgres/include -I/c
gcc -shared -I/opt/postgres/include -I/opt/aolserver3_0/include -I-
/usr/includeo
gcc: /opt/postgres/lib/libpq.so: No such file or directory
gmake: *** [postgres.so] Error 1

Any help would be gratefully appreciated

Richard Moon

Collapse
Posted by David Chin on
Here's what I have:

CC=gcc
COPTS=-D_REENTRANT -O2 -fPIC -shared -I$(PGINC) -I$(NSHOME)/include -I$(PREFIX)/include
LDFLAGS=-b

But, I have to manually run ld:

ld -b -o postgres.sl postgres.o ~/psql/lib/libpq.sl