Thread: libpq: illegal reference to symbol: _BIO_free

libpq: illegal reference to symbol: _BIO_free

From
Stéphane Pinel
Date:
Trying to compile a simple PostgreSQL website libpq based piece of code,
and after several attempts (to get right linked libs etc..) I finally
get only one
last error but I can't deal with:

"ld: /usr/local/pgsql/lib/libpq.a(fe-secure.o) illegal reference to
symbol: _BIO_free defined in indirectly referenced dynamic library
/usr/lib/libcrypto.0.9.dylib"

Any help would be appreciated.

Thanks !

Regards.

------------------------------------------------------------------------
---
Stéphane
iChat/AIM: s.pinel
------------------------------------------------------------------------
---

Re: libpq: illegal reference to symbol: _BIO_free

From
Stéphane Pinel
Date:
Le dimanche, 16 fév 2003, à 20:06 Europe/Paris, Stéphane Pinel a écrit :

> Trying to compile a simple PostgreSQL website libpq based piece of
> code,
> and after several attempts (to get right linked libs etc..) I finally
> get only one
> last error but I can't deal with:
>
> "ld: /usr/local/pgsql/lib/libpq.a(fe-secure.o) illegal reference to
> symbol: _BIO_free defined in indirectly referenced dynamic library
> /usr/lib/libcrypto.0.9.dylib"
>
> Any help would be appreciated.
>

This was apparently necessary to add libcrypto AND libssl. At least it
seems to run like that
with Apple Project Builder. Now I'm going to jump to Metrowerks
CodeWarrior to get the same
result.

Many thanks to Tom for his time ;-)

Regards.

------------------------------------------------------------------------
---
Stéphane
iChat/AIM: s.pinel
------------------------------------------------------------------------
---