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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

Build 8.2 with an old linker



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.




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group