File compiler/back-ends/c-gen/gen-code.c uses ctime(3) without a
prototype, so its result is assumed integer (it's really a pointer).
Adding #include <time.h> to that file fixes the FTBFS.  Patch appended.

I can't vouch for proper operation of the result.  There are still
a ton of warnings about incompatible pointer types.  Somebody should
turn up the gcc warning level and clean up the code base.  Is this
code maintained upstream?

    - Larry


diff -ur snacc-1.3bbn-orig/compiler/back-ends/c-gen/gen-code.c 
snacc-1.3bbn/compiler/back-ends/c-gen/gen-code.c
--- snacc-1.3bbn-orig/compiler/back-ends/c-gen/gen-code.c       2001-01-26 
17:02:52.000000000 -0800
+++ snacc-1.3bbn/compiler/back-ends/c-gen/gen-code.c    2005-05-02 
10:58:48.268141081 -0700
@@ -33,6 +33,7 @@
  */
 
 #include <stdio.h>
+#include <time.h>
 
 #include "asn-incl.h"
 #include "asn1module.h"

Attachment: signature.asc
Description: Digital signature

Reply via email to