--- ./src/lib/log.c_orig	2020-01-19 11:55:09 +0000
+++ ./src/lib/log.c	2020-01-19 11:55:31 +0000
@@ -50,7 +50,7 @@
         return;
 
     dprintf(log_fd, "%s: ", function);
-    vdprintf(log_fd, format, args);
+    /* vdprintf(log_fd, format, args); */
     dprintf(log_fd, "\n");
 }
 
--- ./src/lib/index/index_read.c_orig	2020-01-19 11:55:46 +0000
+++ ./src/lib/index/index_read.c	2020-01-19 11:56:26 +0000
@@ -28,7 +28,9 @@
 #include <stdint.h>
 #include <stdbool.h>
 #include <string.h>
+#ifndef _AIX
 #include <endian.h>
+#endif
 #include <zck.h>
 
 #include "zck_private.h"
--- ./src/unzck.c_orig	2020-01-19 22:44:33 +0000
+++ ./src/unzck.c	2020-01-19 22:48:03 +0000
@@ -36,7 +36,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#ifndef _AIX
 #include <argp.h>
+#endif
 #include <zck.h>
 
 #include "util_common.h"
@@ -45,6 +47,16 @@
 
 static char args_doc[] = "<file>";
 
+struct arguments {
+  char *args[1];
+  zck_log_type log_level;
+  bool dict;
+  bool stdout1;
+  bool exit;
+};
+ 
+
+#if 0
 static struct argp_option options[] = {
     {"verbose", 'v', 0,        0,
      "Increase verbosity (can be specified more than once for debugging)"},
@@ -107,6 +119,7 @@
 }
 
 static struct argp argp = {options, parse_opt, args_doc, doc};
+#endif
 
 int main (int argc, char *argv[]) {
     struct arguments arguments = {0};
@@ -114,7 +127,10 @@
     /* Defaults */
     arguments.log_level = ZCK_LOG_ERROR;
 
+#if 0
     int retval = argp_parse (&argp, argc, argv, 0, 0, &arguments);
+#endif
+    int retval = 1;
     if(retval || arguments.exit)
         exit(retval);
 
@@ -138,7 +154,7 @@
         snprintf(out_name + strlen(base_name) - 4, 7, ".zdict");
 
     int dst_fd = STDOUT_FILENO;
-    if(!arguments.stdout) {
+    if(!arguments.stdout1) {
         dst_fd = open(out_name, O_TRUNC | O_WRONLY | O_CREAT, 0666);
         if(dst_fd < 0) {
             dprintf(STDERR_FILENO, "Unable to open %s", out_name);
--- ./src/zck.c_orig	2020-01-19 22:48:07 +0000
+++ ./src/zck.c	2020-01-19 22:49:20 +0000
@@ -36,7 +36,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#ifndef _AIX
 #include <argp.h>
+#endif
 #include <zck.h>
 
 #include "util_common.h"
@@ -46,6 +48,17 @@
 
 static char args_doc[] = "<file>";
 
+struct arguments {
+  char *args[1];
+  zck_log_type log_level;
+  char *split_string;
+  bool manual_chunk;
+  char *output;
+  char *dict;
+  bool exit;
+};
+
+#if 0
 static struct argp_option options[] = {
     {"verbose",      'v', 0,        0,
      "Increase verbosity (can be specified more than once for debugging)"},
@@ -122,6 +135,7 @@
 }
 
 static struct argp argp = {options, parse_opt, args_doc, doc};
+#endif
 
 int main (int argc, char *argv[]) {
     struct arguments arguments = {0};
@@ -129,7 +143,10 @@
     /* Defaults */
     arguments.log_level = ZCK_LOG_ERROR;
 
+#if 0
     int retval = argp_parse(&argp, argc, argv, 0, 0, &arguments);
+#endif
+    int retval = 1;
     if(retval || arguments.exit)
         exit(retval);
 
--- ./src/zck_delta_size.c_orig	2020-01-19 22:49:22 +0000
+++ ./src/zck_delta_size.c	2020-01-19 22:50:39 +0000
@@ -33,7 +33,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#ifndef _AIX
 #include <argp.h>
+#endif
 #include <zck.h>
 
 #include "util_common.h"
@@ -43,6 +45,13 @@
 
 static char args_doc[] = "<file 1> <file 2>";
 
+struct arguments {
+  char *args[2];
+  zck_log_type log_level;
+  bool exit;
+};
+
+#if 0
 static struct argp_option options[] = {
     {"verbose", 'v', 0,        0,
      "Increase verbosity (can be specified more than once for debugging)"},
@@ -96,6 +105,7 @@
 }
 
 static struct argp argp = {options, parse_opt, args_doc, doc};
+#endif
 
 int main (int argc, char *argv[]) {
     struct arguments arguments = {0};
@@ -103,7 +113,10 @@
     /* Defaults */
     arguments.log_level = ZCK_LOG_ERROR;
 
+#if 0
     int retval = argp_parse(&argp, argc, argv, 0, 0, &arguments);
+#endif
+    int retval = 1;
     if(retval || arguments.exit)
         exit(retval);
 
--- ./src/zck_dl.c_orig	2020-01-19 22:50:48 +0000
+++ ./src/zck_dl.c	2020-01-19 22:52:35 +0000
@@ -36,7 +36,9 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <errno.h>
+#ifndef _AIX
 #include <argp.h>
+#endif
 #include <zck.h>
 #include <curl/curl.h>
 
@@ -46,6 +48,24 @@
 
 static char args_doc[] = "<file>";
 
+struct arguments {
+  char *args[1];
+  zck_log_type log_level;
+  char *source;
+  int fail_no_ranges;
+  bool exit;
+};
+
+static int range_attempt[] = {
+    255,
+    127,
+    7,
+    2,
+    1
+};
+
+
+#if 0
 static struct argp_option options[] = {
     {"verbose",        'v',  0,        0, "Increase verbosity"},
     {"quiet",          'q',  0,        0,
@@ -127,6 +147,7 @@
 }
 
 static struct argp argp = {options, parse_opt, args_doc, doc};
+#endif
 
 typedef struct dlCtx {
     CURL *curl;
@@ -277,7 +298,10 @@
     /* Defaults */
     arguments.log_level = ZCK_LOG_INFO;
 
+#if 0
     int retval = argp_parse (&argp, argc, argv, 0, 0, &arguments);
+#endif
+    int retval = 1;
     if(retval || arguments.exit)
         exit(retval);
 
--- ./src/zck_gen_zdict.c_orig	2020-01-19 22:52:38 +0000
+++ ./src/zck_gen_zdict.c	2020-01-19 22:53:56 +0000
@@ -38,7 +38,9 @@
 #include <fcntl.h>
 #include <dirent.h>
 #include <unistd.h>
+#ifndef _AIX
 #include <argp.h>
+#endif
 #include <zck.h>
 
 #include "util_common.h"
@@ -47,6 +49,15 @@
 
 static char args_doc[] = "<file>";
 
+struct arguments {
+  char *args[1];
+  char *dir;
+  zck_log_type log_level;
+  bool exit;
+};
+
+
+#if 0
 static struct argp_option options[] = {
     {"verbose", 'v', 0,        0,
      "Increase verbosity (can be specified more than once for debugging)"},
@@ -110,6 +121,7 @@
 }
 
 static struct argp argp = {options, parse_opt, args_doc, doc};
+#endif
 
 char *get_tmp_dir(char *old_dir) {
     char *dir = NULL;
@@ -158,7 +170,10 @@
     /* Defaults */
     arguments.log_level = ZCK_LOG_ERROR;
 
+#if 0
     int retval = argp_parse (&argp, argc, argv, 0, 0, &arguments);
+#endif
+    int retval = 1;
     if(retval || arguments.exit)
         exit(retval);
 
--- ./src/zck_read_header.c_orig	2020-01-19 22:53:59 +0000
+++ ./src/zck_read_header.c	2020-01-19 22:55:00 +0000
@@ -32,7 +32,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <unistd.h>
+#ifndef _AIX
 #include <argp.h>
+#endif
 #include <zck.h>
 
 #include "util_common.h"
@@ -41,6 +43,16 @@
 
 static char args_doc[] = "<file>";
 
+struct arguments {
+  char *args[1];
+  bool verify;
+  bool quiet;
+  bool show_chunks;
+  zck_log_type log_level;
+  bool exit;
+};
+
+#if 0
 static struct argp_option options[] = {
     {"verbose",     'v', 0,        0,
      "Increase verbosity (can be specified more than once for debugging)"},
@@ -109,6 +121,7 @@
 }
 
 static struct argp argp = {options, parse_opt, args_doc, doc};
+#endif
 
 int main (int argc, char *argv[]) {
     struct arguments arguments = {0};
@@ -116,7 +129,10 @@
     /* Defaults */
     arguments.log_level = ZCK_LOG_ERROR;
 
+#if 0
     int retval = argp_parse (&argp, argc, argv, 0, 0, &arguments);
+#endif
+    int retval = 1;
     if(retval || arguments.exit)
         exit(retval);
 
