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 libgtk.la
> (cd .libs && ln -s ../libgtk.la libgtk.la)
> /bin/sh ../libtool --mode=link gcc -g -DG_ENABLE_DEBUG -Wall  -o testgtk  
> testgtk.o libgtk.la                            ../gdk/libgdk.la                
> -L/opt/X11/lib -R/opt/X11/lib                           -lXext -lX11 -lsocket  
> -lnsl   ../glib/libglib.la               -lm
> gcc -g -DG_ENABLE_DEBUG -Wall -o .libs/testgtk testgtk.o 
> -R/home/ramsey/gimp/lib .libs/libgtk.so -R/home/ramsey/gimp/lib 
> ../gdk/.libs/libgdk.so -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/libglib.so -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 ltmain.sh 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:
dfkidok@dfki.uni-kl.de      ramsey@rhrk.uni-kl.de

WWW:
<A HREF="http://www.dfki.uni-kl.de/~ramsey/">Deon Ramsey</A>

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

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


--- ltmain.sh.orig	Mon Mar 16 19:24:26 1998
+++ ltmain.sh	Mon Mar 16 19:28:06 1998
@@ -1460,6 +1460,9 @@
     echo=\"$qecho\"
     file=\"\$0\"
   fi
+"
+        $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]