Al,

there are two constness issues with newer (and more const-correct)
versions of glibc. The following patch makes gnucap compileable on
fedora11.

Please apply,
thanks, Tom

--- ./src/ap_match.cc.jnx       2009-08-18 22:50:07.000000000 +0200
+++ ./src/ap_match.cc   2009-08-18 22:50:18.000000000 +0200
@@ -64,7 +64,7 @@
       }
     }else{
       // mismatch
-      char* bar = strchr(str2, '|');
+      const char* bar = strchr(str2, '|');
       if (bar && (bar[-1] != '\\')) {
        str2 = bar+1;
        reset(start);
--- ./modelgen/ap_match.cc.jnx  2009-08-18 22:47:45.000000000 +0200
+++ ./modelgen/ap_match.cc      2009-08-18 22:48:10.000000000 +0200
@@ -64,7 +64,7 @@
       }
     }else{
       // mismatch
-      char* bar = strchr(str2, '|');
+      const char* bar = strchr(str2, '|');
       if (bar && (bar[-1] != '\\')) {
        str2 = bar+1;
        reset(start);




_______________________________________________
Gnucap-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnucap-devel

Reply via email to