AIX gtk+-1.2.1 Build Problems



While building on a few other platforms has worked fine out the box, 
I'm having trouble with an AIX 4.1.4 build.

I've tried egcs-1.1.2 and gcc-2.8.1.  Out the box I get

  gcc -O2 -Wall -o testgtk testgtk.o -L.libs -lgtk \
    -L/usr/site/glib-1.2.1/lib -lgmodule -lglib -lXext -lX11 -lm \
    -L../gdk/.libs -lgdk -lgmodule -lglib
  ld: 0711-317 ERROR: Undefined symbol: .getpwuid_r

Using -mthreads or -lc_r seems to get solve this, but then I get

  ld: 0711-781 ERROR: TOC overflow. TOC size: 78480  Maximum size: 65536

When I add -Wl,-bbigtoc to CFLAGS, I get

  ld: 0711-783 WARNING: TOC overflow. TOC size: 78464     Maximum size: 65536
          Extra instructions are being generated for each reference to a TOC
          symbol if the symbol is in the TOC overflow area.
  ld: 0711-780 SEVERE ERROR: Symbol .real_insert_row (entry 326) \
    in object .libs/libgtk.a[gtkctree.o]:
          Relocation overflow in reference to: LC..78 (entry 1008)
          Address: 0x00007cc6;    RLD type: R_TOC;   RLD length: 16
  ld: 0711-780 SEVERE ERROR: Symbol .real_insert_row (entry 326) \ 
    in object .libs/libgtk.a[gtkctree.o]:
          Relocation overflow in reference to: LC..78 (entry 1008)
          Address: 0x00007d16;    RLD type: R_TOC;   RLD length: 16

And on and on.


===========================================================
Tod Sandman                  |  
UNIX System Administrator    |  Phone: (713) 737-5816
Systems and LAN Management   |  Email: sandmant@rice.edu
Rice University              |  
===========================================================



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]