Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable) - Mailing list pgsql-ports

From Tom Lane
Subject Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Date
Msg-id 5312.1011991651@sss.pgh.pa.us
Whole thread Raw
In response to Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)  (Are Bryne <are-pgsql-ports@communique.no>)
Responses Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
List pgsql-ports
Are Bryne <are-pgsql-ports@communique.no> writes:
> # Assume system is ELF if it predefines __ELF__ as 1,
> # otherwise believe host_os based default.
> case $host_os in
>   freebsd1*|freebsd2*) elf=yes;;
> esac

> Since $host_os is being picked up as freebsd2.2.8, this makes elf default.

Argh, that's what I get for looking at current sources and not 7.1.3.
In current sources we have

# Assume system is ELF if it predefines __ELF__ as 1,
# otherwise believe host_os based default.
case $host_os in
    freebsd1*|freebsd2*) elf=no;;
    freebsd3*|freebsd4*) elf=yes;;
esac

so obviously somebody figured out that freebsd2 is not using elf.
Hacking configure as you did is the right answer for 7.1.

> /usr/bin/ld -x -Bshareable -Bforcearchive execute.o typename.o
> descriptor.o data.o error.o prepare.o memory.o connect.o misc.o
> -L../../../../src/interfaces/libpq -lpq  -o libecpg.so.3.2.0
> ld: no shared -lssl.2.-1 available

I don't think we can help you here.  Either deselect SSL support
or install a sharable OpenSSL library.

            regards, tom lane

pgsql-ports by date:

Previous
From: Are Bryne
Date:
Subject: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Next
From: Tom Lane
Date:
Subject: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)