My problems with gtk+ 0.99.6 and .7

A while back I wrote about an problem I had in compiling gtk+-0.99.6:

>  I compile on a Solaris Ultra-2 using Solaris 2.5 and gcc version 
> 2.7.2
> The make seemed to go well until:
> creating
> (cd .libs && ln -s ../
> /bin/sh ../libtool --mode=link gcc -g -DG_ENABLE_DEBUG -Wall  -o testgtk  
> testgtk.o                            ../gdk/                
> -L/opt/X11/lib -R/opt/X11/lib                           -lXext -lX11 -lsocket  
> -lnsl   ../glib/               -lm
> gcc -g -DG_ENABLE_DEBUG -Wall -o .libs/testgtk testgtk.o 
> -R/home/ramsey/gimp/lib .libs/ -R/home/ramsey/gimp/lib 
> ../gdk/.libs/ -L/opt/X11/lib -lXext -lX11 -lsocket -lnsl 
> -L/opt/X11/lib -R/opt/X11/lib -lXext -lX11 -lsocket -lnsl 
> -R/home/ramsey/gimp/lib ../glib/.libs/ -lm
> creating testgtk
> Segmentation Fault - core dumped

This seg-fault was happening inside libtool. The bug did *not* go away when I 
upgraded to gtk+-0.99.7 . I finally traced down what was happening, the core 
was being produced by a call to
echo inside the libtool script, and only if trying to echo a string larger 
than 2110 bytes (guess somebody braindead programmed echo and assumed a buffer 
of that size was enough). Anyhow,
I suspect this problem will only show for people running Solaris, maybe even 
only for Solaris 2.5.
For those of you having trouble, the appended patch kludges around the problem 
by splitting the
echo string roughly in half. It patches the file in  gtk+-0.99.7, 
you will need to rerun
configure to get a new libtool. Enjoy
   Deon Ramsey


Deon Ramsey (general Librarygopher) may be reached as:
Work:                       Private:

<A HREF="">Deon Ramsey</A>

Or via Snail-Mail:          Deon Ramsey
                            Koenigstr. 11
                            67655 Kaiserslautern

Program (Pro'-gram) n. A magic spell cast over a computer, causing it to
turn one's input into error messages.

There are many intelligent species in the Universe.
                                             They are all owned by cats.

Be discreet, be polite, but be yourself. -- Per Aspera

---	Mon Mar 16 19:24:26 1998
+++	Mon Mar 16 19:28:06 1998
@@ -1460,6 +1460,9 @@
+        $echo >> $output \
   # Find the directory that this script lives in.
   thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`

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