Skip site navigation (1) Skip section navigation (2)

Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)

From: Are Bryne <are-pgsql-ports(at)communique(dot)no>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-ports(at)postgresql(dot)org>
Subject: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Date: 2002-01-25 22:07:33
Message-ID: Pine.BSF.4.31.0201252255070.48608-100000@david.i.communique.no (view raw or flat)
Thread:
Lists: pgsql-ports
On Fri, 25 Jan 2002, Peter Eisentraut wrote:

> Are Bryne writes:
>
> > However, when I try compiling with elf=no in configure, this happens:
> >
> > gcc295 -O -pipe -DUSE_SSL -Wall -Wmissing-prototypes
>                   ^^^^^^^^^
>
> Where does this come from?  This doesn't appear in the source code.

I'm trying to make use of the FreeBSD ports framework.

% pwd
/usr/ports/databases/postgresql7
% less Makefile.inc
# ODBC
WITH_ODBC=YES
CONFIGURE_ARGS+=  --with-odbc

# SSL
USE_OPENSSL=    yes
CFLAGS+=        -DUSE_SSL
WITH_SSL=       yes
CONFIGURE_ENV+= LDFLAGS="-L${OPENSSLLIB} -lssl -lcrypto"
CONFIGURE_ARGS+=        --with-openssl

# Multibyte
CONFIGURE_ARGS+=        --enable-multibyte=LATIN1

The config.status therefore shows (at the top):
# ./configure  --enable-locale --enable-syslog --with-CXX
--sysconfdir=/usr/local/etc/postgresql '--with-includes=/usr/local/include  '
--with-libraries=/usr/local/lib --docdir=/usr/local/share/doc
--includedir=/usr/local/include/pgsql --with-odbc --with-openssl
--enable-multibyte=LATIN1 --prefix=/usr/local i386--freebsd2.2.8

There might be more relevant information further down in the
config.status. I included it a few posts back (gzip'ed attachment - maybe
it wasn't necessary to compress it).

> > ld: no shared -lssl.2.-1 available
>
> I'd suggest trying to build without OpenSSL first.  Then check out how
> libpq is being linked.  It seems it's somehow picking up a wrong libssl
> reference, but I don't understand the non-elf formats enough to be able to
> tell you how.

OK. I'll try that.

Thanks.

Regards,
Are Bryne
-- 
Communiqué DA                            Office:       +47 22 44 33 99
Postboks 9050 Grønland                   Mobile:        +47 900 22 009
NO-0133 Oslo                             URL: http://www.communique.no


In response to

pgsql-ports by date

Next:From: Are BryneDate: 2002-01-25 22:11:24
Subject: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Previous:From: Tom LaneDate: 2002-01-25 22:03:45
Subject: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group