Re: AW: User functions and AIX - Mailing list pgsql-hackers

From darcy@druid.net (D'Arcy J.M. Cain)
Subject Re: AW: User functions and AIX
Date
Msg-id 20010529122524.B1D7C1A8D@druid.net
Whole thread Raw
In response to AW: User functions and AIX  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
List 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@druid.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@{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.


pgsql-hackers by date:

Previous
From: Larry Rosenman
Date:
Subject: /contrib/unixdate: Broke in cvs tip.
Next
From: "Marc G. Fournier"
Date:
Subject: appendum: Re: *really* simple select doesn't use indices ...