I'm trying to compile py-gtk2 on a lemote yeeloong and it keeps failing at the linker.
Any tips on how to get around this? The lines leading up to the errors are as follows: cc -shared -fPIC -DPIC -o .libs/_gtk.so -pthread -I/usr/local/include/pycairo -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/include/dev/pci/drm -I/usr/local/include/libpng -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/X11R6/include -I/usr/local/include/cairo -I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/include/dev/pci/drm -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/freetype2 -O2 -pipe -Wall -fno-strict-aliasing -std=c9x .libs/_gtk_la-gtk-types.o .libs/_gtk_la-gtkmodule.o .libs/_gtk_la-gtkobject-support.o .libs/_gtk_la-pygtkcellrenderer.o .libs/_gtk_la-pygtktreemodel.o .libs/_gtk_la-gtk.o .libs/_gtk_la-gdk.o -L.libs -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -latk-1.0 -lcairo -lpixman-1 -lGL -lXxf86vm -lXext -lXdamage -lXfixes -ldrm -lpng -lxcb-shm -lpthread-stubs -lXau -lXdmcp -lxcb-render -lXrender -lxcb -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lpcre -lintl -liconv -lfontconfig -lexpat -lfreetype -lz -Wl,-retain-symbols-file,./.libs/_gtk.exp .libs/_gtk_la-gtk.o(.text+0x68): In function `_wrap_gtk_text_attributes__get_bg_stipple': : relocation truncated to fit: R_MIPS_GOT_DISP _PyGObject_API .libs/_gtk_la-gtk.o(.text+0xa8): In function `_wrap_gtk_text_attributes__get_fg_stipple': : relocation truncated to fit: R_MIPS_GOT_DISP _PyGObject_API .libs/_gtk_la-gtk.o(.text+0x190): In function `_wrap_gtk_orientable_get_orientation': : relocation truncated to fit: R_MIPS_CALL16 gtk_orientable_get_type .libs/_gtk_la-gtk.o(.text+0x1a4): In function `_wrap_gtk_orientable_get_orientation': : relocation truncated to fit: R_MIPS_CALL16 g_type_check_instance_cast .libs/_gtk_la-gtk.o(.text+0x1b4): In function `_wrap_gtk_orientable_get_orientation': : relocation truncated to fit: R_MIPS_CALL16 gtk_orientable_get_orientation .libs/_gtk_la-gtk.o(.text+0x1c4): In function `_wrap_gtk_orientable_get_orientation': : relocation truncated to fit: R_MIPS_CALL16 gtk_orientation_get_type .libs/_gtk_la-gtk.o(.text+0x1d0): In function `_wrap_gtk_orientable_get_orientation': : relocation truncated to fit: R_MIPS_GOT_DISP _PyGObject_API .libs/_gtk_la-gtk.o(.text+0x238): In function `_wrap_gtk_orientable_set_orientation': : relocation truncated to fit: R_MIPS_CALL16 _PyArg_ParseTupleAndKeywords_SizeT .libs/_gtk_la-gtk.o(.text+0x264): In function `_wrap_gtk_orientable_set_orientation': : relocation truncated to fit: R_MIPS_CALL16 gtk_orientation_get_type .libs/_gtk_la-gtk.o(.text+0x270): In function `_wrap_gtk_orientable_set_orientation': : relocation truncated to fit: R_MIPS_GOT_DISP _PyGObject_API .libs/_gtk_la-gtk.o(.text+0x294): In function `_wrap_gtk_orientable_set_orientation': : additional relocation overflows omitted from the output collect2: ld returned 1 exit status Error while executing cc -shared -fPIC -DPIC -o .libs/_gtk.so -pthread -I/usr/local/include/pycairo -I/usr/local/include/cairo -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/pixman-1 -I/usr/X11R6/include -I/usr/X11R6/include/freetype2 -I/usr/include/dev/pci/drm -I/usr/local/include/libpng -I/usr/local/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/pango-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/X11R6/include -I/usr/local/include/cairo -I/usr/local/include/atk-1.0 -I/usr/X11R6/include/pixman-1 -I/usr/include/dev/pci/drm -I/usr/local/include/gdk-pixbuf-2.0 -I/usr/local/include/libpng -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/X11R6/include/freetype2 -O2 -pipe -Wall -fno-strict-aliasing -std=c9x .libs/_gtk_la-gtk-types.o .libs/_gtk_la-gtkmodule.o .libs/_gtk_la-gtkobject-support.o .libs/_gtk_la-pygtkcellrenderer.o .libs/_gtk_la-pygtktreemodel.o .libs/_gtk_la-gtk.o .libs/_gtk_la-gdk.o -L.libs -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -latk-1.0 -lcairo -lpixman-1 -lGL -lXxf86vm -lXext -lXdamage -lXfixes -ldrm -lpng -lxcb-shm -lpthread-stubs -lXau -lXdmcp -lxcb-render -lXrender -lxcb -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgthread-2.0 -lgmodule-2.0 -lglib-2.0 -lpcre -lintl -liconv -lfontconfig -lexpat -lfreetype -lz -Wl,-retain-symbols-file,./.libs/_gtk.exp *** Error code 1 Stop in /home/ports/pobj/py-gtk2-2.24.0/pygtk-2.24.0/gtk (line 572 of Makefile). *** Error code 1 Stop in /home/ports/pobj/py-gtk2-2.24.0/pygtk-2.24.0 (line 728 of Makefile). *** Error code 1 Stop in /home/ports/pobj/py-gtk2-2.24.0/pygtk-2.24.0 (line 437 of Makefile). *** Error code 1 Stop in /home/ports/x11/py-gtk2 (line 2494 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/x11/py-gtk2 (line 1699 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/x11/py-gtk2 (line 2270 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/x11/py-gtk2 (line 2250 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/x11/py-gtk2 (line 1730 of /usr/ports/infrastructure/mk/bsd.port.mk). *** Error code 1 Stop in /home/ports/x11/py-gtk2 (line 2250 of /usr/ports/infrastructure/mk/bsd.port.mk). Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2011 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 5.0 (GENERIC) #26: Wed Aug 17 10:41:08 MDT 2011 dera...@loongson.openbsd.org:/usr/src/sys/arch/loongson/compile/GENERIC real mem = 1073741824 (1024MB) avail mem = 1059209216 (1010MB) mainbus0 at root: Lemote Yeeloong cpu0 at mainbus0: STC Loongson2F CPU 797 MHz, STC Loongson2F FPU cpu0: cache L1-I 64KB D 64KB 4 way, L2 512KB 4 way bonito0 at mainbus0: memory and PCI-X controller, rev 1 pci0 at bonito0 bus 0 rl0 at pci0 dev 7 function 0 "Realtek 8139" rev 0x10: irq 5, address 00:23:8b:84:6f:40 rlphy0 at rl0 phy 0: RTL internal PHY smfb0 at pci0 dev 8 function 0 "Silicon Motion LynxEM+" rev 0xb0 wsdisplay0 at smfb0 mux 1: console (std, vt100 emulation) ohci0 at pci0 dev 9 function 0 "NEC USB" rev 0x44: irq 7, version 1.0 ehci0 at pci0 dev 9 function 1 "NEC USB" rev 0x05: irq 7 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "NEC EHCI root hub" rev 2.00/1.00 addr 1 glxpcib0 at pci0 dev 14 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit 3579545Hz timer, watchdog, gpio gpio1 at glxpcib0: 32 pins pciide0 at pci0 dev 14 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: <FUJITSU MHZ2160BH G2> wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 pciide0: channel 1 ignored (disabled) auglx0 at pci0 dev 14 function 3 "AMD CS5536 Audio" rev 0x01: isa irq 9, CS5536 AC97 ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0) audio0 at auglx0 ohci1 at pci0 dev 14 function 4 "AMD CS5536 USB" rev 0x02: isa irq 11, version 1.0, legacy support ehci1 at pci0 dev 14 function 5 "AMD CS5536 USB" rev 0x02: isa irq 11 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "AMD EHCI root hub" rev 2.00/1.00 addr 1 usb2 at ohci0: USB revision 1.0 uhub2 at usb2 "NEC OHCI root hub" rev 1.00/1.00 addr 1 isa0 at glxpcib0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 mcclock0 at isa0 port 0x70/2: mc146818 or compatible ykbec0 at isa0 port 0x381/3 usb3 at ohci1: USB revision 1.0 uhub3 at usb3 "AMD OHCI root hub" rev 1.00/1.00 addr 1 clock0 at mainbus0: ticker on int5 using count register apm0 at mainbus0 umass0 at uhub1 port 1 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/58.87 addr 2 umass0: using SCSI over Bulk-Only scsibus0 at umass0: 2 targets, initiator 0 sd0 at scsibus0 targ 1 lun 0: <Generic-, Multi-Card, 1.00> SCSI0 0/direct removable serial.0bda0158114173400000 urtw0 at uhub1 port 4 "Realtek RTL8187B" rev 2.00/2.00 addr 3 urtw0: RTL8187B rev E, address 00:17:c4:5a:08:1a vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets pmon bootpath: /dev/disk/wd0 boot device: wd0 root on wd0a swap on wd0b dump on wd0b WARNING: / was not properly unmounted