Re: [gtk-list] gtk CVS snapshot



[Manish Singh]

| I have put a tarball of the current gtk CVS tree at:
|                                                                                 
| ftp://ftp.gimp.org/pub/gtk/snapshot/gtk+-cvs-971208.tar.gz

Here's a patch to fix some autoconf tests (configure wouldn't finish
on Solaris 2.6 using gcc).  However, after I applied my patch and ran
autoconf in the two appropriate directories, my "make" ended up like
this:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib  -I/local/X11R5/include   -g -O2 -DNDEBUG -Wall -DUSE_XIM -c gtktext.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../glib -I/local/X11R5/include -g -O2 -DNDEBUG -Wall -DUSE_XIM -c -fPIC -DPIC gtktext.c
gtktext.c: In function `gtk_text_key_press':
gtktext.c:1051: `GDK_Page_Up' undeclared (first use this function)
gtktext.c:1051: (Each undeclared identifier is reported only once
gtktext.c:1051: for each function it appears in.)
gtktext.c:1052: `GDK_Page_Down' undeclared (first use this function)
gtktext.c: In function `find_cursor_at_line':
gtktext.c:2209: warning: subscript has type `char'
gtktext.c: In function `mouse_click_1_at_line':
gtktext.c:2254: warning: subscript has type `char'
gtktext.c: At top level:
gtktext.c:1589: warning: `insert_char_line_expose' defined but not used
gtktext.c:1486: warning: `delete_char_line_expose' defined but not used
make[2]: *** [gtktext.lo] Error 1
make[2]: Leaving directory `/usit/octarine/local/.very/tmp/gtk+-cvs-971208/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usit/octarine/local/.very/tmp/gtk+-cvs-971208'
make: *** [all-recursive-am] Error 2


Anyone got any idea what's wrong -- and how to fix it?


The patch:

--- gtk+-cvs-971208/configure.in.~1~    Tue Dec  9 22:17:40 1997
+++ gtk+-cvs-971208/configure.in        Tue Dec  9 22:34:48 1997
@@ -48,16 +48,16 @@
 AC_PROG_MAKE_SET
 
 if eval "test x$GCC = xyes"; then
-  if test ! `echo "$CFLAGS" | grep "\-Wall" 2> /dev/null` ; then
+  if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
     CFLAGS="$CFLAGS -Wall"
   fi
 
   if eval "test x$enable_ansi = xyes"; then
-    if test ! `echo "$CFLAGS" | grep "\-ansi" 2> /dev/null` ; then
+    if test -z "`echo "$CFLAGS" | grep "\-ansi" 2> /dev/null`" ; then
       CFLAGS="$CFLAGS -ansi"
     fi
 
-    if test ! `echo "$CFLAGS" | grep "\-pedantic" 2> /dev/null` ; then
+    if test -z "`echo "$CFLAGS" | grep "\-pedantic" 2> /dev/null`" ; then
       CFLAGS="$CFLAGS -pedantic"
     fi
   fi
--- gtk+-cvs-971208/glib/configure.in.~1~       Wed Dec  3 22:43:43 1997
+++ gtk+-cvs-971208/glib/configure.in   Tue Dec  9 22:34:18 1997
@@ -33,16 +33,16 @@
 AC_PROG_INSTALL
 
 if eval "test x$GCC = xyes"; then
-  if test ! `echo "$CFLAGS" | grep "\-Wall" 2> /dev/null` ; then
+  if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
     CFLAGS="$CFLAGS -Wall"
   fi
 
   if eval "test x$enable_ansi = xyes"; then
-    if test ! `echo "$CFLAGS" | grep "\-ansi" 2> /dev/null` ; then
+    if test -z "`echo "$CFLAGS" | grep "\-ansi" 2> /dev/null`" ; then
       CFLAGS="$CFLAGS -ansi"
     fi
 
-    if test ! `echo "$CFLAGS" | grep "\-pedantic" 2> /dev/null` ; then
+    if test -z "`echo "$CFLAGS" | grep "\-pedantic" 2> /dev/null`" ; then
       CFLAGS="$CFLAGS -pedantic"
     fi
   fi


-- 
Harald



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