Bug#307760: snacc: FTBFS (amd64/gcc-4.0): 'EOC' was not declared in this scope
Package: snacc
Version: 1.3bbn-7
Severity: normal
Tags: patch
When building 'snacc' on amd64/unstable with gcc-4.0,
I get the following error:
asn-list.C: In member function 'void AsnList<T>::BDecContent(AsnBuf&, AsnTag, AsnLen, AsnLen&, __jmp_buf_tag*)':
asn-list.C:244: error: 'EOC' was not declared in this scope
make[5]: *** [asn-list.lo] Error 1
make[5]: Leaving directory `/srv/dbuild/tmp/snacc-1.3bbn/c++-lib/c++'
With the attached patch 'snacc' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/snacc-1.3bbn/c++-lib/src/asn-list.C ./c++-lib/src/asn-list.C
--- ../tmp-orig/snacc-1.3bbn/c++-lib/src/asn-list.C 2001-01-27 02:03:00.000000000 +0100
+++ ./c++-lib/src/asn-list.C 2005-05-05 11:41:49.784926702 +0200
@@ -241,7 +241,7 @@
{
listElmtTagId = BDecTag (b, bytesDecoded, env);
- if ((listElmtTagId == EOC) && (elmtLen == INDEFINITE_LEN))
+ if ((listElmtTagId == EOC_TAG_ID) && (elmtLen == INDEFINITE_LEN))
break;
diff -urN ../tmp-orig/snacc-1.3bbn/compiler/back-ends/c-gen/gen-code.c ./compiler/back-ends/c-gen/gen-code.c
--- ../tmp-orig/snacc-1.3bbn/compiler/back-ends/c-gen/gen-code.c 2001-01-27 02:02:52.000000000 +0100
+++ ./compiler/back-ends/c-gen/gen-code.c 2005-05-05 11:36:04.127474622 +0200
@@ -33,6 +33,7 @@
*/
#include <stdio.h>
+#include <time.h>
#include "asn-incl.h"
#include "asn1module.h"
Reply to: