compiling on AIX

From: Nicolas Addington <adding(at)math(dot)wisc(dot)edu>
To: pgsql-bugs(at)postgresql(dot)org
Subject: compiling on AIX
Date: 2004-12-24 23:48:43
Message-ID: Pine.SOC.4.61.0412241738070.3672@gauss.math.wisc.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

Compiling 8.0.0RC2 on AIX 4.3 on an RS600 with gcc, in src/backend, got
the following error:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -fno-strict-aliasing
-L../../src/port -L/usr/local/lib -L/da23/d56/croquet/readline/lib
access/SUBSYS.o bootstrap/SUBSYS.o catalog/SUBSYS.o parser/SUBSYS.o
commands/SUBSYS.o executor/SUBSYS.o lib/SUBSYS.o libpq/SUBSYS.o
main/SUBSYS.o nodes/SUBSYS.o optimizer/SUBSYS.o port/SUBSYS.o
postmaster/SUBSYS.o regex/SUBSYS.o rewrite/SUBSYS.o storage/SUBSYS.o
tcop/SUBSYS.o utils/SUBSYS.o ../../src/timezone/SUBSYS.o
-Wl,-bE:../../src/backend/postgres.imp -lpgport_srv -lz -lreadline
-ltermcap -lPW -lld -lnsl -ldl -lm -o postgres
ld: 0711-781 ERROR: TOC overflow. TOC size: 72616 Maximum size:
65536
collect2: ld returned 12 exit status
make: *** [postgres] Error 1

Adding "-Xlinker -bbigtoc" to this command line (enabling the "bigtoc"
linker option) allowed the build to continue, but this is the ld man
page's comment:

bigtoc Generates extra code if the size of the table of contents (TOC) is
greater than 64KB. Extra code is needed for every reference to a TOC
symbol that cannot be addressed with a 16-bit offset. Because a program
containing generated code may have poor performance, you should reduce the
number of TOC entries needed by the program before using this option. The
default is the nobigtoc option.

Please advise.

Nick Addington

Browse pgsql-bugs by date

  From Date Subject
Next Message Nicolas Addington 2004-12-25 00:56:31 plperl and pgport
Previous Message Josh Berkus 2004-12-24 23:06:13 config option --with-pgport does not update postgresql.conf