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

Поиск
Список
Период
Сортировка
От Are Bryne
Тема Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Дата
Msg-id Pine.BSF.4.31.0201252255070.48608-100000@david.i.communique.no
обсуждение исходный текст
Ответ на Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)  (Peter Eisentraut <peter_e@gmx.net>)
Список 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


В списке pgsql-ports по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Следующее
От: Are Bryne
Дата:
Сообщение: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)