Build 8.2 with an old linker

From: "Thorkil Olesen" <thorkil(at)pip(dot)dknet(dot)dk>
To: <pgsql-ports(at)postgresql(dot)org>
Subject: Build 8.2 with an old linker
Date: 2006-12-19 13:53:56
Message-ID: NCBBIMOOOPMGKJGHBCPOAEJACGAA.thorkil@pip.dknet.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

I could not build Postgresql 8.2 with an old linker. I complained about a
wrong syntax of version-script when linking libpq.

I solved it by adding an arbitrary version-name to the script, and
everything seems to work now.

Is it really that simple? If it is, I would suggest to make the change in
the main source. I know that few use that old systems, but as long as
compatibility can be retained, there is no need to brake it.

[root(at)linux lib]# gcc --version
2.96
[root(at)linux lib]# ld --version
GNU ld 2.10.91
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License. This program has absolutely no warranty.
Supported emulations:
elf_i386
i386linux
elf_i386_glibc21

------ PATCH START HERE -------

--- postgresql-8.2.0/src/interfaces/libpq/Makefile.old Fri Dec 15 15:57:52
2006
+++ postgresql-8.2.0/src/interfaces/libpq/Makefile Fri Dec 15 15:58:53
2006
@@ -140,7 +140,7 @@
$(shlib): exports.list

exports.list: exports.txt
- echo '{ global:' >$@
+ echo 'VERSION { global:' >$@
$(AWK) '/^[^#]/ {printf "%s;\n",$$1}' $< >>$@
echo ' local: *; };' >>$@

------ PATCH END HERE -------

--
Thorkil Olesen,
Hanstholm, Denmark.

Responses

Browse pgsql-ports by date

  From Date Subject
Next Message Simon Dale 2006-12-19 16:09:35 Visual Studio 2005 Build
Previous Message Tom Lane 2006-12-13 23:58:00 Re: "make check" failures -- PG 8.2 and 8.1