Re: 2.0 and solaris 7 anyone gotten it to compile?



Stephen Watson <watson ultra demon co uk> writes:

> > Program received signal SIGSEGV, Segmentation fault.
> > 0xfec508c4 in __icv_iconv () from /usr/lib/iconv/646%UTF-8.so
> > (gdb) where
> > #0  0xfec508c4 in __icv_iconv () from /usr/lib/iconv/646%UTF-8.so
> > #1  0xfebc467c in iconv () from /usr/lib/libc.so.1
> > #2  0xfec93994 in open_converter (to_codeset=0xfecd3618 "UTF-8", 
> >     from_codeset=0x2738c "ASCII", error=0x0) at gconvert.c:361
> > #3  0xfec93cec in g_convert (str=0xfec1ee36 "No such file or directory", 
> >     len=-1, to_codeset=0x21b10 "", from_codeset=0x2738c "ASCII", 
> >     bytes_read=0x0, bytes_written=0x0, error=0x0) at gconvert.c:491
> > #4  0xfec947b8 in g_locale_to_utf8 (
> >     opsysstring=0xfec1ee36 "No such file or directory", len=-1, 
> >     bytes_read=0x0, bytes_written=0x0, error=0x0) at gconvert.c:1040
> > #5  0xfecc0cdc in g_strerror (errnum=2) at gstrfuncs.c:596
> > #6  0xfec9c600 in g_dir_open (path=0x238e8 "//.gtk-2.0/2.0.0/immodules", 
> >     flags=0, error=0x0) at gdir.c:76
> > #7  0x111e8 in main (argc=0, argv=0x22290) at queryimmodules.c:142
> > (gdb) The program is running.  Exit anyway? (y or n) y
> 
> After further investigation it seems that iconv() on Solaris 7 dumps core if
> any parameter other than the 2nd (inbuf) is NULL.

Yes, this is:

 http://bugzilla.gnome.org/show_bug.cgi?id=74336

It seems like from what is being said here, that a patch to glib/glib/gconvert.c,
which changed:

          /* reset the descriptor */
          g_iconv (cd, NULL, NULL, NULL, NULL);

To:

          gchar *outbuf = NULL;
          gint inbytes_left = 0;
          gint outbytes_left = 0;
          g_iconv (cd, NULL, &inbytes_left, &outbuf, &outbytes_left);

Might work. Or, you can use GNU libiconv when building GLib.

Regards,
                                        Owen



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