Third report on building 2.9.91.1: fifth-toe



* gnet-2.05
Same problem as found in 2.9.91...

There is a coding error in examples/dnslookup.c that causes the
compilation to fail under "strict" conditions:

                             ...
source='dnslookup.c' object='dnslookup.o' libtool=no \
depfile='.deps/dnslookup.Po' tmpdepfile='.deps/dnslookup.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
ccache gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../src  
-I/opt/garnome/include -I/opt/garnome/include/glib-2.0
-I/opt/garnome/lib/glib-2.0/include   -pthread
-I/opt/garnome/include/glib-2.0 -I/opt/garnome/lib/glib-2.0/include   -g
-I/opt/garnome/include -L/opt/garnome/lib -O2 -pipe -D_REENTRANT
-DGNET_EXPERIMENTAL -Wall -Wstrict-prototypes     -Wmissing-prototypes
-Wmissing-declarations -Werror -c `test -f dnslookup.c || echo
'./'`dnslookup.c
dnslookup.c: In function `main':
dnslookup.c:73: warning: comparison is always true due to limited range
of data type
make[4]: *** [dnslookup.o] Error 1
make[4]: Leaving directory
`/usr/local/src/GNOME/garnome-2.9.91.1/fifth-toe/gnet/work/main.d/gnet-2.0.5/examples'
                           ...

Here is the fix:

*** dnslookup.c 2005-02-17 08:58:43.000000000 -0500
--- dnslookup.c-        2005-02-17 08:58:22.000000000 -0500
***************
*** 65,71 ****
  {
    extern char* optarg;
    extern int   optind;
!   int c;
   
    gnet_init ();
   
--- 65,71 ----
  {
    extern char* optarg;
    extern int   optind;
!   char c;
   
    gnet_init ();


-Joseph
-- 
joseph_sacco[at]comcast[dot]net




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