> I'm trying to compile KDE under AIX 4.2.1. It requires g++ to compile. No
> problem, I've got egcs already compiled, which has g++ in it. I get along fine
> until I get to kfm, where I get the following linker error:
> ld: 0711-781 ERROR: TOC overflow. TOC size: 115760 Maximum Size: 65536
> The man page for ld talks about the -b bigtoc option for the loader 'ld'. How
> do I link it with the bigtoc option using g++? I try ld directly on the command
> line, and depending upon which loader I use (AIX's or egcs's) I get either
> '__start' not found, or some other weirdness. If I could get over this bigtoc
> hurdle, I think I have kde ready.
> RSVP via e-mail
> Tim Gallagher
The linker has an Overflow (TOC=table of contents). AIX and the gcc can normaly
handle a TOC whith an maximum size of 64KB. You have to use the linkeroption
"bigtog". Edit the Makefiles which causes the problems (not all Makefiles!!). Then
the linker create/add a new code which uses a TOC > 65536.
You have to edit the g++/c++/cpp/... lines in the Makefiles:
CC = gcc
CPP = gcc -E
CXX = g++
CC = gcc -Xlinker -bbigtoc
CPP = gcc -E -Xlinker -bbigtoc
CXX = g++ -Xlinker -bbigtoc
Thats all. Good luck...
I have a RS/6000 whith AIX 184.108.40.206 and gcc 220.127.116.11 and the most programs work
fine.I can't compile some pakages (which uses sound,...). Do you have a solution
for the sound?
Dipl.-Ing. Marcus Friedrich
iX - Magazin fr professionelle Informationstechnik
Verlag Heinz Heise * Helstorfer Str. 7 * 30625 Hannover * Germany