Re: [gtk-list] Re: Problems compiling in HP



Erik Mouw wrote:
> 
> On Wed, 15 Sep 1999 14:56:15 +0200 (METDST), Antonio Matias Moro Munnoz wrote:
> >      I am trying to compile glib and gtk on hp  (hppa2.0-hp-hpux10.01)
> >      When compiling glib with make I get the following error:
> >
> > ---------------------------------------------------------------------
> > make[2]: Entering directory `/mnt3/nuclear/moro/glib-1.2.4'
> > /bin/sh ./libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.
> > -DG_LOG_DOMAIN=g_log_domain_glib     -Aa -z -DANSI -D_INCLUDE_XOPEN_SOURCE
> > -I/usr/include/Motif1.2 -I/usr/include/X11R5 -I/usr/local/imsl/include
> > -D_REENTRANT -c garray.c
> > mkdir .libs
> > cc -DHAVE_CONFIG_H -I. -I. -I. -DG_LOG_DOMAIN=g_log_domain_glib -Aa -z
> > -DANSI -D_INCLUDE_XOPEN_SOURCE -I/usr/include/Motif1.2
> > -I/usr/include/X11R5 -I/usr/local/imsl/include -D_REENTRANT -c  +Z -DPIC
> > garray.c -o .libs/garray.lo
> > cc: "glibconfig.h", line 69: error 1504: A zero or negative array size is
> > illegal.
> > cc: "glibconfig.h", line 69: error 1578: Size of struct or union member is
> > unknown.
> > make[2]: *** [garray.lo] Error 1
> > make[2]: Leaving directory `/mnt3/nuclear/moro/glib-1.2.4'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory `/mnt3/nuclear/moro/glib-1.2.4'
> > make: *** [all-recursive-am] Error 2
> > -----------------------------------------------------------------------
> >
> >      I would appreciate any hint.
> 
> Can you show what's on line 69 of glibconfig.h?
> 
> Other than that, I think you have a bit too long include search path:
> -I/usr/include/Motif1.2 and -I/usr/local/imsl/include should not be
> neccessary to compile GLIB and GTK. Maybe it's just a matter of namespace
> pollution (not every software package is as clean as GTK) that will go
> away if you don't use the Motif and imsl include directories.

  On our SGI's with IRIX6.5 it turned out to be not a good idea to compile
glib/gtk with SGI's C compiler. The resulting gtk version only worked halfway
and I remeber, that there was some hacking necessary to get it to compile. So I
suggest to use gcc before you start brushing up the source too much. Pretending
on cc may result in a not fully functional gtk.

  Wolfgang

--
Mag. Wolfgang Glas
Institut fuer hydraulische Stroemungsmaschinen
Kopernikusgasse 24                              Phone:++43/316/873/7578
A-8010 Graz                                     Fax:  ++43/316/873/7577

mailto:Wolfgang.Glas@hfm.tu-graz.ac.at   
http://fhysmsg01.tu-graz.ac.at/Wolfgang.Glas/



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