Re: AIX 4.2.1 CVS head and SSL

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Samuel A Horwitz" <horwitz(at)argoscomp(dot)com>, "PostgreSQL-development" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AIX 4.2.1 CVS head and SSL
Date: 2003-09-15 08:57:33
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA4962007@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gerhard Häring 2003-09-15 09:09:17 Re: pgsql in shared lib
Previous Message Christopher Kings-Lynne 2003-09-15 07:57:08 Re: 3 digit ISO dates