gnome 0.12, Irix 6.3



Hey there.  I'm trying to build Gnome on Irix 6.3 (SGI O2) and having
a rough time.

First, I tried using gcc, but that doesn't work, because the configure
script apparently doesn't know how to create dynamic libraries using 
gcc on Irix.  The error is

> /tools/ns/soft/gcc-2.7.2.1/run/default/mips_sgi_irix6.2/lib/gcc-lib/mips-s
> gi-irix5.3/2.7.2.1/ld -n32 -shared -o .libs/libgnome.so.0.0.0 -soname libg
> nome.so -set_version 0.0.0:0.0 gnome-hook.o gnome-util.o gnome-config.o gn
> omelib-init.o gnome-dentry.o gnome-dns.o gnome-fileconvert .o gnome-histor
> y.o gnome-mime.o gnome-score.o gnome-string.o gnome-triggers.o
>
> collect2: ld returned 4 exit status
> ld: FATAL 112: cannot link old 32-bit object with -n32 link: gnome-hook.o.

So then I reconfigured using SGI's cc.  I only had to make one change 
to get it to compile: in gtk-xmhtml/gtk-xmhtml.c is a reference to 
__FUNCTION__ which is undefined (a gcc-ism?)  There were lots of 
warnings, but none jumped out at me as being important.

The second change I needed to make was that libgnomeui/Makefile.in 
says

  DEFS += -Wall

which is most assuredly a gcc-ism.

After all this, I lose because obgtk/Makefile says

  OBJC = gcc

Generating those .o files with gcc brings back the old ld problem
again: SGI's ld dumps core when you try to use it to make shared
libraries with .o files that were generated by gcc.  (Actually,
mixing and matching cc and gcc .o files confuses ld really badly
when it's trying to make a shared lib, and it dumps core.)

So I tried changing that "gcc" to "cc", and that loses with

> cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I./.. -I/usr/local/include -DGNOMELIB
> DIR=\"/usr/local/lib\" -DGNOMEDATADIR=\"/usr/local/share\" -DGNOMELOCALEDIR
> =\"/usr/local/lib/locale\" -I../intl -g -c -DPIC obgtkAcceleratorTable.m
> 
> cfe: Error: ./obgtk.h: 5: Cannot open file objc/objc.h for #include
> cfe: Error: ./obgtk.h: 6: Cannot open file objc/objc-api.h for #include
> cfe: Error: ./obgtk.h: 7: Cannot open file objc/Object.h for #include
> cfe: Error: ../obgtk/obgtkAcceleratorTable.h: 4: Cannot open file objc/Object.h for #include
> cfe: Error: ../obgtk/obgtkObject.h: 4: Cannot open file objc/Object.h for #include
> cfe: Error: ../obgtk/obgtkTooltips.h: 4: Cannot open file objc/Object.h for #include

I'm guessing the easiest way out of this mess is, "figure out how
to make Irix gcc able to build shared libraries.  But I don't know
how to do that.

Any ideas?

(Please CC me on responses, because I'm not on this mailing list.)

-- 
Jamie Zawinski         http://people.netscape.com/jwz/      about:jwz



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