glib-genmarshal segmentation fault on Solaris 7



When I try and build glib 2.0.1 on a Sparc Solaris 7 machine, I get:

gmake[2]: Entering directory `/space/gnu/gtk/glib-2.0.1/gobject'
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"GLib-GObject\" -I.. 
-I../glib -I.. -DGOBJECT_COMPILATION -DG_DISABLE_CONST_RETURNS     -g 
-O2 -Wall -D_REENTRANT -c glib-genmarshal.c
In file included from glib-genmarshal.c:22:
../config.h:425: warning: `_FILE_OFFSET_BITS' redefined
/usr/include/sys/feature_tests.h:96: warning: this is the location of 
the previous definition
/bin/ksh ../libtool --mode=link gcc  -g -O2 -Wall -D_REENTRANT  -o 
glib-genmarshal  glib-genmarshal.o ../glib/libglib-2.0.la
mkdir .libs
gcc -g -O2 -Wall -D_REENTRANT -o glib-genmarshal glib-genmarshal.o  
../glib/.libs/libglib-2.0.so -R/space/gnu/gtk/glib-2.0.1/glib/.libs 
-R/usr/local/lib
echo "#ifndef __G_MARSHAL_H__" > xgen-gmh \
&& echo "#define __G_MARSHAL_H__" >> xgen-gmh \
&& ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal 
./gmarshal.list --header >> xgen-gmh \
&& echo "#endif /* __G_MARSHAL_H__ */" >> xgen-gmh \
&& (cmp -s xgen-gmh ./gmarshal.h || cp xgen-gmh ./gmarshal.h) \
&& rm -f xgen-gmh xgen-gmh~ \
&& echo timestamp > stamp-gmarshal.h
/bin/ksh: 716 Segmentation Fault(coredump)

Closer examination reveals that I have a core in the gobject 
directory:

[stephen lima gtk/glib-2.0.1] 597 $ file gobject/core
gobject/core:   ELF 32-bit MSB core file SPARC Version 1, from 
'glib-genmarshal'

It doesn't seem to like some of the memory functions provided with 
glib:

[stephen lima glib-2.0.1/gobject] 599 $ gdb glib-genmarshal core
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and 
you are
welcome to change it and/or distribute copies of it under certain 
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for 
details.
This GDB was configured as "sparc-sun-solaris2.7"...
Core was generated by `./glib-genmarshal --nostdinc 
--prefix=g_cclosure_marshal ./gmarshal.list --head'.
Program terminated with signal 11, Segmentation Fault.
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/lib/libc.so.1...done.
Loaded symbols for /usr/lib/libc.so.1
Reading symbols from /usr/lib/librt.so.1...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /usr/lib/libdl.so.1...done.
Loaded symbols for /usr/lib/libdl.so.1
Reading symbols from /usr/lib/libaio.so.1...done.
Loaded symbols for /usr/lib/libaio.so.1
Reading symbols from 
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.
Loaded symbols for /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
#0  0x24528c in ?? ()
(gdb) where
#0  0x24528c in ?? ()
#1  0xff3436a0 in g_strdup (str=0xffbef852 "g_cclosure_marshal")
    at gstrfuncs.c:89
#2  0x127cc in parse_args (argc_p=0xffbef68c, argv_p=0xffbef6ac)
    at glib-genmarshal.c:789
#3  0x122b8 in main (argc=5, argv=0xffbef6ac) at glib-genmarshal.c:607

gstrfuncs.c:89 is:

      new_str = g_new (char, strlen (str) + 1);

I am using gcc version 2.95.2 19991024 (release)

Anyone know what is going on?

-- 
Stephen Rasku			E-mail:	stephen tgivan com
Senior Software Engineer	Web:	http://www.pop-star.net/
TGI Technologies




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