Here are the tentative fixes.

-- 
GPG key:  1024D/3144BE0F Michael Hanke
http://mih.voxindeserto.de
diff --git a/src/anatov/CMakeLists.txt b/src/anatov/CMakeLists.txt
index 8ba4272..5d57fcc 100644
--- a/src/anatov/CMakeLists.txt
+++ b/src/anatov/CMakeLists.txt
@@ -4,8 +4,9 @@ ADD_EXECUTABLE(anatov anatov.c tools.c)
 TARGET_LINK_LIBRARIES(anatov lipsia ${VIA_LIBRARY})
 
 SET_TARGET_PROPERTIES(anatov
-    PROPERTIES COMPILE_FLAGS -ansi
-    LINK_FLAGS -Wl)
+# tools.c uses 'popen' which is not part of ANSI C
+#    COMPILE_FLAGS -ansi
+    PROPERTIES LINK_FLAGS -Wl)
 
 INSTALL(TARGETS anatov
         RUNTIME DESTINATION ${LIPSIA_INSTALL_BIN_DIR}
diff --git a/src/anatov/anatov.c b/src/anatov/anatov.c
index 7b639d9..fbbae07 100755
--- a/src/anatov/anatov.c
+++ b/src/anatov/anatov.c
@@ -93,7 +93,9 @@ int set_aux_hdr_values(VImage img, char** lines, int nlines, int dl) {
 
   for (i = 0; i < nlines; i++) {
 
-    val = (char *)index(lines[i], 58);	/* perl -e'print ord ":"' */
+    /* 'index' is not part of ISO C */
+    /*val = (char *)index(lines[i], 58);*/
+    val = (char *)strchr(lines[i], 58);	/* perl -e'print ord ":"' */
     if (val != NULL) {
       keylen = strlen(lines[i]) - strlen(val) + 1;
 
diff --git a/src/lib_lipsia/GetVersion.c b/src/lib_lipsia/GetVersion.c
index aae6a32..99de71d 100644
--- a/src/lib_lipsia/GetVersion.c
+++ b/src/lib_lipsia/GetVersion.c
@@ -2,6 +2,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <viaio/Vlib.h>
 
 char * getLipsiaVersion() {
 
diff --git a/src/vgauss/vgauss.c b/src/vgauss/vgauss.c
index d514e97..50e025a 100755
--- a/src/vgauss/vgauss.c
+++ b/src/vgauss/vgauss.c
@@ -25,6 +25,8 @@
 
 static int verbose=0; 
 extern char * getLipsiaVersion();
+extern VImage VGaussianConv (VImage src, VImage dest, VBand band,
+                             double sigma, int filter_size);
 
 int main (int argc, char **argv)
 {
diff --git a/src/vspectral/vspectral.c b/src/vspectral/vspectral.c
index 76afbda..8710fea 100755
--- a/src/vspectral/vspectral.c
+++ b/src/vspectral/vspectral.c
@@ -68,6 +68,7 @@ extern void CovarianceSequence(VImage*,double*,double*,int,int);
 extern double p2t(double,double);
 extern double p2z(double);
 extern char * getLipsiaVersion();
+extern VImage VLabelImage3d(VImage,VImage,int,VRepnKind,int *);
 
 int 
 main (int argc,char *argv[])

Reply via email to