dbTalk Databases Forums  

[BUGS] compiling on AIX

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] compiling on AIX in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Nicolas Addington
 
Posts: n/a

Default [BUGS] compiling on AIX - 12-29-2004 , 05:10 PM






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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.