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

From: Are Bryne <are-pgsql-ports(at)communique(dot)no>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-ports(at)postgresql(dot)org>
Subject: Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Date: 2002-01-25 21:54:56
Message-ID: Pine.BSF.4.31.0201252248180.48608-100000@david.i.communique.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

On Fri, 25 Jan 2002, Tom Lane wrote:

> Are Bryne <are-pgsql-ports(at)communique(dot)no> writes:
> > So ldd doesn't work for libraries, only executables...
>
> Possibly it would work to explicitly include "-lssl" in the link
> command for libecpg. In src/interfaces/ecpg/lib/Makefile,
> add -lssl to the line "SHLIB_LINK= $(libpq)" and see if it's happier.

--- Makefile.orig Fri Jan 25 22:43:12 2002
+++ Makefile Fri Jan 25 22:44:30 2002
@@ -22,7 +22,7 @@
OBJS= execute.o typename.o descriptor.o data.o error.o prepare.o memory.o
\
connect.o misc.o

-SHLIB_LINK= $(libpq)
+SHLIB_LINK= $(libpq) -lssl

all: all-lib

I clean out *.o and *.a from src/interfaces/ecpg/lib/ and make gives:

gcc295 -O -pipe -DUSE_SSL -Wall -Wmissing-prototypes
-Wmissing-declarations -fpic -DPIC
-I../../../../src/interfaces/ecpg/include
-I../../../../src/interfaces/libpq -I../../../../src/include
-I/usr/local/include -c -o misc.o misc.c
ar cr libecpg.a `lorder execute.o typename.o descriptor.o data.o error.o
prepare.o memory.o connect.o misc.o | tsort`
tsort: cycle in data
tsort: prepare.o
tsort: misc.o
tsort: cycle in data
tsort: error.o
tsort: execute.o
tsort: connect.o
tsort: cycle in data
tsort: error.o
tsort: execute.o
tsort: descriptor.o
tsort: memory.o
tsort: cycle in data
tsort: execute.o
tsort: descriptor.o
tsort: error.o
tsort: cycle in data
tsort: execute.o
tsort: descriptor.o
tsort: error.o
tsort: cycle in data
tsort: execute.o
tsort: descriptor.o
tsort: data.o
ranlib libecpg.a
/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 -lssl -o libecpg.so.3.2.0
ld: no shared -lssl.2.-1 available
gmake[5]: *** [libecpg.so.3.2.0] Error 1
gmake[5]: Leaving directory `/usr/ports/databases/postgresql7/work/postgresql-7.1.3/src/interfaces/ecpg/lib'

So the same error message... I don't understand where the -1 comes from,
though...

> regards, tom lane

Thanks,
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

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Tom Lane 2002-01-25 22:03:45 Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)
Previous Message Peter Eisentraut 2002-01-25 21:46:50 Re: Compiling on FreeBSD 2.2.x? (-export-dynamic unavailable)