Package: enscript
Severity: normal
Tags: patch
When building 'enscript' on amd64 with gcc-4.0,
I get the following error:
lex.l: In function 'yylex':
lex.l:49: error: invalid storage class for function 'eat_comment'
lex.l:76: error: invalid storage class for function 'read_string'
lex.l:186: error: invalid storage class for function 'read_regexp'
make[4]: *** [lex.o] Error 1
make[4]: Leaving directory `/enscript-1.6.4/states'
With the attached patch 'enscript' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/enscript-1.6.4/debian/patches/08_flex.dpatch
./debian/patches/08_flex.dpatch
--- ../tmp-orig/enscript-1.6.4/debian/patches/08_flex.dpatch 2005-01-31
16:04:45.052977972 +0100
+++ ./debian/patches/08_flex.dpatch 2005-01-31 16:04:31.832541290 +0100
@@ -136,7 +136,8 @@
-%%
-
+%{
- static void
+-static void
++void
eat_comment ()
{
@@ -175,13 +71,6 @@
@@ -150,9 +151,19 @@
- return 1;
-}
-
- static char *
+-static char *
++char *
read_string (len_return)
unsigned int *len_return;
+@@ -292,7 +188,7 @@
+ }
+
+
+-static void
++void
+ read_regexp (node)
+ Node *node;
+ {
@@ -421,6 +310,112 @@
node->u.re.data = buf2;
node->u.re.len = bufpos;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]