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


# Location of the PostgreSQL includes


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


# added by Richard Moon 08/06/2000



# 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-
gcc: /opt/postgres/lib/ No such file or directory
gmake: *** [] Error 1

Any help would be gratefully appreciated

Richard Moon

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

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

But, I have to manually run ld:

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