Re: AW: User functions and AIX

From: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
To: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: AW: User functions and AIX
Date: 2001-05-29 12:25:24
Message-ID: 20010529122524.B1D7C1A8D@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thus spake Zeugswetter Andreas SB
> > IBM is trying to find the answer to this but I thought I would throw
...

> Tell me your link line, OS and compiler version.
> And have you forgotten to include -bI:postgres.imp ?

Bingo! I can't believe that IBM has been wrestling with this for a week.
Part of the reason we are thinking of going with IBM is for the support.

Here is my Makefile now. I'm not sure about that -lc there as I get duplicate
symbol warnings but it appears to work fine.

#
# Local PostgreSQL types
# Written by D'Arcy J.M. Cain (darcy(at)druid(dot)net)
#
# $Id: Makefile,v 1.1 2000/06/23 17:03:40 root Exp $

PGDIR = /usr/local/pgsql
PGINCDIR = /home/darcy/postgresql-7.1/src/include
PGLIBDIR = /usr/local/pgsql/lib
CFLAGS = -g -O0 -pipe -ansi -Wall -Wshadow -Wpointer-arith -Wcast-qual \
-I ${PGINCDIR} -L ${PGLIBDIR} \
-Wwrite-strings -Wmissing-prototypes
OBJS = chkpass.o
SH_OBJS = chkpass.so

.SUFFIXES: .so

.o.so:
ld -G -o $@ $< -L ${PGLIBDIR} -bI:/usr/local/pgsql/lib/postgres.imp \
-bexpall -bnoentry -lc

.c.o:
gcc ${CFLAGS} -c $<

all: ${SH_OBJS}

install: all
cp ${SH_OBJS} ${PGDIR}/modules
sed "s+%%PGDIR%%+${PGDIR}+g" < chkpass.sql > ${PGDIR}/modules/chkpass.sql

clean:
rm -f ${OBJS} ${SH_OBJS}

--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marc G. Fournier 2001-05-29 12:44:34 appendum: Re: *really* simple select doesn't use indices ...
Previous Message Larry Rosenman 2001-05-29 10:11:15 /contrib/unixdate: Broke in cvs tip.