> I get the following errors 
> 
> 
> gmake -C ecpglib all
> gmake[4]: Entering directory
> `/usr/local/postgres/pgsql/src/interfaces/ecpg/ecpglib'
> ../../../../src/backend/port/aix/mkldexport.sh libecpg.a > libecpg.exp
> gcc -O2 -pipe -Wall -Wmissing-prototypes -Wmissing-declarations -Wl,-bnoentry -
> Wl,-H512 -Wl,-bM:SRE -o libecpg.so libecpg.a 
> -L../../../../src/port -lm
> -L/usr/local/ssl/lib  -L../../../../src/port -L/usr/local/ssl/lib 
> -L../pgtypeslib
> -lpgtypes -L../../../../src/interfaces/libpq -lpq
> -Wl,-bI:../../../../src/backend/postgres.imp -Wl,-bE:libecpg.exp

> ld: 0711-317 ERROR: Undefined symbol: .SSL_new
> ld: 0711-317 ERROR: Undefined symbol: .SSL_set_ex_data
> ld: 0711-317 ERROR: Undefined symbol: .SSL_set_fd
> ld: 0711-317 ERROR: Undefined symbol: .SSL_read
> ld: 0711-317 ERROR: Undefined symbol: .SSL_get_error
> ld: 0711-317 ERROR: Undefined symbol: .SSL_write

You can get around that problem by adding the SSL library to the link line
manually (-lssl).

AIX wants all symbols resolved at link time (or at least be told where to
load them from at runtime with an *.imp file).

All Platforms with that requirement will have that problem when linking 
libecpg.so with ssl.

Sorry I don't have time to fix it right now.

Andreas

Mon, 15 Sep 2003 10:57:33 +0200
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: AIX 4.2.1 CVS head and SSL
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
> You can get around that problem by adding the SSL library to the link line
> manually (-lssl).
> Sorry I don't have time to fix it right now.

A minimal patch to fix this might look like the attached.  But I'm not sure
it's sufficient; potentially you might need to add more libraries to the
filter command (compare the filter in src/interfaces/libpq/Makefile's
setting of SHLIB_LINK).  Could you try it out and report back?

			regards, tom lane

*** src/interfaces/ecpg/ecpglib/Makefile.orig	Fri Aug  1 12:46:18 2003
--- src/interfaces/ecpg/ecpglib/Makefile	Tue Sep 16 01:29:43 2003
***************
*** 21,27 ****
  OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
  	connect.o misc.o
  
! SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) $(THREAD_LIBS)
  
  all: all-lib
  
--- 21,27 ----
  OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o \
  	connect.o misc.o
  
! SHLIB_LINK = -L../pgtypeslib -lpgtypes $(libpq) $(filter -lssl, $(LIBS)) $(THREAD_LIBS)
  
  all: all-lib
  

Tue, 16 Sep 2003 01:33:06 -0400
Tom Lane <tgl@sss.pgh.pa.us>
Re: AIX 4.2.1 CVS head and SSL 