Package: sourcenav
Version: 5.1.4-1
Severity: normal
Tags: patch

When building 'sourcenav' on amd64/unstable with gcc-4.0,
I get the following error:

Making all in src
make[4]: Entering directory `/sourcenav-5.1.4/debian/build/libgui/src'
gcc -DHAVE_CONFIG_H -I. -I/sourcenav-5.1.4/libgui/src -I.. -fwritable-strings 
-I/sourcenav-5.1.4/tcl/generic -I/sourcenav-5.1.4/tk/generic  -DHAVE_UNISTD_H=1 
-DHAVE_LIMITS_H=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 
-DHAVE_STRTOL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DHAVE_UNISTD_H=1 
-DHAVE_SYS_PARAM_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 
-DHAVE_TM_ZONE=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 
-DHAVE_TIMEZONE_DECL=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DNEED_MATHERR=1 
-DRETSIGTYPE=void -DHAVE_SIGNED_CHAR=1 -DHAVE_SYS_IOCTL_H=1 -DSTATIC_BUILD=1  
-DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 
-DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DSTATIC_BUILD=1  
-I/sourcenav-5.1.4/tk/generic/../unix -I/sourcenav-5.1.4/tk/generic/../win 
-DTBL_VERSION=\"2.7\" -DTBL_COMMAND=\"table\" -DTBL_RUNTIME=\"tkTable.tcl\" 
-DTBL_RUNTIME_DIR=\"/usr/lib/sourcenav/share/redhat/gui\" -DSTATIC_BUILD    -g 
-O2 -c /sourcenav-5.1.4/libgui/src/paths.c
cc1: error: unrecognized command line option "-fwritable-strings"
make[4]: *** [paths.o] Error 1
make[4]: Leaving directory `/sourcenav-5.1.4/debian/build/libgui/src'

With the attached patch 'sourcenav' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/sourcenav-5.1.4/itcl/itcl/unix/configure 
./itcl/itcl/unix/configure
--- ../tmp-orig/sourcenav-5.1.4/itcl/itcl/unix/configure        2000-02-07 
01:19:46.000000000 +0100
+++ ./itcl/itcl/unix/configure  2005-04-07 23:48:21.091719929 +0200
@@ -1113,7 +1113,7 @@
 fi
 # CYGNUS LOCAL - use -fwritable-strings with gcc, needed for Tcl8.1
 if test "$itcl_cv_prog_gcc" = "yes" ; then
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall"
 fi
 
 echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
diff -urN ../tmp-orig/sourcenav-5.1.4/itcl/itcl/unix/configure.in 
./itcl/itcl/unix/configure.in
--- ../tmp-orig/sourcenav-5.1.4/itcl/itcl/unix/configure.in     2000-02-07 
01:19:46.000000000 +0100
+++ ./itcl/itcl/unix/configure.in       2005-04-07 23:48:13.260188301 +0200
@@ -122,7 +122,7 @@
 fi
 # CYGNUS LOCAL - use -fwritable-strings with gcc, needed for Tcl8.1
 if test "$itcl_cv_prog_gcc" = "yes" ; then
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall"
 fi
 
 AC_MSG_CHECKING([default compiler flags])
diff -urN ../tmp-orig/sourcenav-5.1.4/itcl/itk/unix/configure 
./itcl/itk/unix/configure
--- ../tmp-orig/sourcenav-5.1.4/itcl/itk/unix/configure 2000-02-07 
01:19:46.000000000 +0100
+++ ./itcl/itk/unix/configure   2005-04-07 23:48:49.059476119 +0200
@@ -1173,7 +1173,7 @@
     # that they obscure everything else.
     # CYGNUS LOCAL - add -fwritable-strings to CFLAGS for gcc.  Needed 
     # with Tcl8.1
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall 
-Wno-implicit-int"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall -Wno-implicit-int"
 fi
 
 echo $ac_n "checking default compiler flags""... $ac_c" 1>&6
diff -urN ../tmp-orig/sourcenav-5.1.4/itcl/itk/unix/configure.in 
./itcl/itk/unix/configure.in
--- ../tmp-orig/sourcenav-5.1.4/itcl/itk/unix/configure.in      2000-02-07 
01:19:46.000000000 +0100
+++ ./itcl/itk/unix/configure.in        2005-04-07 23:48:39.182328033 +0200
@@ -162,7 +162,7 @@
     # that they obscure everything else.
     # CYGNUS LOCAL - add -fwritable-strings to CFLAGS for gcc.  Needed 
     # with Tcl8.1
-    CFLAGS="$CFLAGS -fwritable-strings -Wshadow -Wtraditional -Wall 
-Wno-implicit-int"
+    CFLAGS="$CFLAGS -Wshadow -Wtraditional -Wall -Wno-implicit-int"
 fi
 
 AC_MSG_CHECKING([default compiler flags])
diff -urN ../tmp-orig/sourcenav-5.1.4/libgui/configure ./libgui/configure
--- ../tmp-orig/sourcenav-5.1.4/libgui/configure        2001-10-28 
17:22:24.000000000 +0100
+++ ./libgui/configure  2005-04-07 23:38:41.000000000 +0200
@@ -1919,14 +1919,6 @@
 rm -f conftest*
 
 
-# Tcl8.1 requires writable strings for gcc
-
-if test "$GCC" = "yes"; then
-   LIBGUI_CFLAGS=-fwritable-strings
-else
-   LIBGUI_CFLAGS=
-fi
-
 echo $ac_n "checking for cygwin32""... $ac_c" 1>&6
 echo "configure:1932: checking for cygwin32" >&5
 if eval "test \"`echo '$''{'ide_cv_os_cygwin32'+set}'`\" = set"; then
diff -urN ../tmp-orig/sourcenav-5.1.4/libgui/configure.in ./libgui/configure.in
--- ../tmp-orig/sourcenav-5.1.4/libgui/configure.in     2001-10-28 
17:22:24.000000000 +0100
+++ ./libgui/configure.in       2005-04-07 23:38:19.000000000 +0200
@@ -43,14 +43,6 @@
 AC_EGREP_CPP(strncasecmp, [#include <string.h>],
   AC_DEFINE(HAVE_STRNCASECMP_DECL))
 
-# Tcl8.1 requires writable strings for gcc
-
-if test "$GCC" = "yes"; then
-   LIBGUI_CFLAGS=-fwritable-strings
-else
-   LIBGUI_CFLAGS=
-fi
-
 AC_CACHE_CHECK([for cygwin32], ide_cv_os_cygwin32,
 [AC_EGREP_CPP(lose, [
 #ifdef __CYGWIN32__
diff -urN ../tmp-orig/sourcenav-5.1.4/snavigator/configure 
./snavigator/configure
--- ../tmp-orig/sourcenav-5.1.4/snavigator/configure    2003-06-26 
22:01:11.000000000 +0200
+++ ./snavigator/configure      2005-04-07 23:49:26.079535048 +0200
@@ -1369,7 +1369,7 @@
 
 if test x$ide_cv_os_cygwin32 = xyes ||
        test x$sn_cv_os_mingw32 = xyes ; then
-   HYPER_CFLAGS="-Wall -fwritable-strings"
+   HYPER_CFLAGS="-Wall"
 fi
  
 
diff -urN ../tmp-orig/sourcenav-5.1.4/snavigator/configure.in 
./snavigator/configure.in
--- ../tmp-orig/sourcenav-5.1.4/snavigator/configure.in 2003-06-26 
22:01:11.000000000 +0200
+++ ./snavigator/configure.in   2005-04-07 23:49:14.951621474 +0200
@@ -153,7 +153,7 @@
 
 if test x$ide_cv_os_cygwin32 = xyes ||
        test x$sn_cv_os_mingw32 = xyes ; then
-   HYPER_CFLAGS="-Wall -fwritable-strings"
+   HYPER_CFLAGS="-Wall"
 fi
 AC_SUBST(HYPER_CFLAGS) 
 
diff -urN ../tmp-orig/sourcenav-5.1.4/tix/unix/tk8.1/Makefile.in 
./tix/unix/tk8.1/Makefile.in
--- ../tmp-orig/sourcenav-5.1.4/tix/unix/tk8.1/Makefile.in      2001-09-09 
01:25:55.000000000 +0200
+++ ./tix/unix/tk8.1/Makefile.in        2005-04-07 23:47:17.088720163 +0200
@@ -46,7 +46,7 @@
 # To change the compiler switches, for example to change from -O
 # to -g, change the following line:
 CFLAGS = -O
-TIX_CFLAGS = $(CFLAGS) -fwritable-strings
+TIX_CFLAGS = $(CFLAGS)
 
 # To disable ANSI-C procedure prototypes reverse the comment characters
 # on the following lines:
diff -urN ../tmp-orig/sourcenav-5.1.4/tix/unix/tk8.3/Makefile.in 
./tix/unix/tk8.3/Makefile.in
--- ../tmp-orig/sourcenav-5.1.4/tix/unix/tk8.3/Makefile.in      2002-01-12 
00:43:38.000000000 +0100
+++ ./tix/unix/tk8.3/Makefile.in        2005-04-07 23:47:27.948683976 +0200
@@ -46,7 +46,7 @@
 # To change the compiler switches, for example to change from -O
 # to -g, change the following line:
 CFLAGS = -O
-TIX_CFLAGS = $(CFLAGS) -fwritable-strings
+TIX_CFLAGS = $(CFLAGS)
 
 # To disable ANSI-C procedure prototypes reverse the comment characters
 # on the following lines:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to