Thread: BUG #4209: openSSL undefined symbols.

BUG #4209: openSSL undefined symbols.

From
"Andrew SG Rojek"
Date:
The following bug has been logged online:

Bug reference:      4209
Logged by:          Andrew SG Rojek
Email address:      developer.admin@ntlworld.com
PostgreSQL version: 8.3.1
Operating system:   OSX 10.5.2
Description:        openSSL undefined symbols.
Details:

Make produced the following error messages:

Undefined symbols:
  "_SSL_write", referenced from:
      _SOCK_SSL_send in socket.o
  "_SSL_get_error", referenced from:
      _SOCK_SSL_send in socket.o
      _SOCK_get_next_byte in socket.o
  "_SSL_read", referenced from:
      _SOCK_get_next_byte in socket.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [psqlodbcw.la] Error 1
make: *** [all] Error 2

The following options were disabled in ./configure:
--without-unixodbc
--without-iodbc
when the error was produced. However adding:
--disable-openssl
to ./configure resolves the problem but it would be preferable to build with
SSL support.

Is this an OSX problem with either the linker or libtool as these type of
error messages seem to be a regular occurence.

A.

Re: BUG #4209: openSSL undefined symbols.

From
Tom Lane
Date:
"Andrew SG Rojek" <developer.admin@ntlworld.com> writes:
> Make produced the following error messages:

> Undefined symbols:
>   "_SSL_write", referenced from:
>       _SOCK_SSL_send in socket.o
>   "_SSL_get_error", referenced from:
>       _SOCK_SSL_send in socket.o
>       _SOCK_get_next_byte in socket.o
>   "_SSL_read", referenced from:
>       _SOCK_get_next_byte in socket.o
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[1]: *** [psqlodbcw.la] Error 1
> make: *** [all] Error 2

Note for the archives that this appears to be a complaint against
some unspecified version of the ODBC driver, not Postgres proper.

            regards, tom lane