Index: /trunk/stac/src/stacCheckMemory.c
===================================================================
--- /trunk/stac/src/stacCheckMemory.c	(revision 8683)
+++ /trunk/stac/src/stacCheckMemory.c	(revision 8684)
@@ -10,7 +10,7 @@
 {
     psLogMsg("stac.memoryPrint", PS_LOG_INFO,
-             "Memory block %d:\n"
+             "Memory block %lu:\n"
              "\tFile %s, line %d, size %d\n"
-             "\tPosts: %x %x %x\n",
+             "\tPosts: %p %p %p\n",
              ptr->id, ptr->file, ptr->lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
              *(void**)((int8_t *)(ptr + 1) + ptr->userMemorySize));
@@ -25,7 +25,7 @@
 {
     psLogMsg("stac.checkMemory.corruption", PS_LOG_WARN,
-             "Memory corruption detected in memBlock %d\n"
+             "Memory corruption detected in memBlock %lu\n"
              "\tFile %s, line %d, size %d\n"
-             "\tPosts: %x %x %x\n",
+             "\tPosts: %p %p %p\n",
              ptr->id, file, lineno, ptr->userMemorySize, ptr->startblock, ptr->endblock,
              (ptr + 1 + ptr->userMemorySize));
@@ -52,5 +52,5 @@
     for (int i = 0; i < nLeaks; i++) {
         psLogMsg("stac.checkMemory.leaks", PS_LOG_WARN,
-                 "Memory leak detection: memBlock %d\n"
+                 "Memory leak detection: memBlock %lu\n"
                  "\tFile %s, line %d, size %d\n",
                  leaks[i]->id, leaks[i]->file, leaks[i]->lineno, leaks[i]->userMemorySize);
Index: /trunk/stac/src/stacRead.c
===================================================================
--- /trunk/stac/src/stacRead.c	(revision 8683)
+++ /trunk/stac/src/stacRead.c	(revision 8684)
@@ -27,5 +27,5 @@
         psFits *imageFile = psFitsOpen(filenames->data[i], "r");
         if (!imageFile) {
-            psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", filenames->data[i]);
+            psError(PS_ERR_IO, false, "Unable to open FITS file %s.\n", (char *)filenames->data[i]);
             exit(EXIT_FAILURE);
         }
@@ -36,5 +36,5 @@
         psImage *image = psFitsReadImage(imageFile, imageRegion, 0);
         if (image == NULL) {
-            psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n",filenames->data[i]);
+            psErrorStackPrint(stderr,"Fatal error: Unable to read %s\n", (char *)filenames->data[i]);
             exit(EXIT_FAILURE);
         }
@@ -190,5 +190,5 @@
     for (int i = 0; i < nFiles; i++) {
         if (strlen(filenames->data[i]) > MAXCHAR - 4) {
-            psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n",filenames->data[i]);
+            psLogMsg("stac.read.maps",PS_LOG_ERROR,"Filename %s is too long.\n",(char *)filenames->data[i]);
             exit(EXIT_FAILURE);
         }
Index: /trunk/stac/src/sum.c
===================================================================
--- /trunk/stac/src/sum.c	(revision 8683)
+++ /trunk/stac/src/sum.c	(revision 8684)
@@ -39,5 +39,5 @@
         } else if (image->numCols != numCols || image->numRows != numRows) {
             psError(PS_ERR_IO, true, "Input images have different dimensions.  %s is %dx%d, but should be "
-                    "%dx%d\n", inputNames->data[i], image->numCols, image->numRows, numCols, numRows);
+                    "%dx%d\n", (char *)inputNames->data[i], image->numCols, image->numRows, numCols, numRows);
             return EXIT_FAILURE;
         }
