=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Building for gnats-4.1.0nb3
for d in gnats send-pr doc; do /usr/pkg/bin/gmake -C $d all-gnats || exit 1; done
gmake[1]: Entering directory `/scratch/databases/gnats/work/gnats-4.1.0/gnats'
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" edit.c
gcc -c -I. -I.  -O2 -Dconst=   -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" getdate.c
gcc -c -I. -I.  -O2 -Dconst=   -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" gnugetopt.c
edit.c:440:27: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      asprintf (&dirPath, "%s/%s", databaseDir (database), 
                          ^~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
edit.c:473:25: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  asprintf (&bkup_path, "%s.old", old_path);
                        ^~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
edit.c:500:29: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  prfile = fopen (new_path, "w+");
                            ^~~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
edit.c:517:20: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (prfile, "\n");
                   ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
edit.c:874:33: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      FILE *ifp = fdopen (fdes, "w");
                                ^~~
/usr/include/stdio.h:305:31: note: passing argument to parameter here
FILE    *fdopen(int, const char *);
                                 ^
edit.c:893:18: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (ifp, "%s %s\n", user, processid);
                        ^~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
edit.c:897:18: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (ifp, "%s\n", user);
                        ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
edit.c:912:36: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      FILE *fp = fopen (lock_path, "r");
                                   ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
edit.c:936:42: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      strftime (date, GNATS_TIME_LENGTH, "%Y-%m-%d:%H:%M:%SZ",
                                         ^~~~~~~~~~~~~~~~~~~~
/usr/include/time.h:100:67: note: passing argument to parameter here
size_t strftime(char * __restrict, size_t, const char * __restrict,
                                                                  ^
edit.c:1026:17: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  sprintf (pid, "%d", (int) getpid ());
                ^~~~
/usr/include/stdio.h:271:56: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                                           ^
gcc -c -I. -I.  -O2 -Dconst=   -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" gnugetopt1.c
10 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" internal.c
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" misc.c
misc.c:85:20: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          asprintf (&buf, "%s: %s %s\n", program_name, message, message2);
                          ^~~~~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
misc.c:89:20: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          asprintf (&buf, "%s: %s\n", program_name, message);
                          ^~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
misc.c:107:32: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (gnats_logfile, "%s", buf);
                                      ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:112:21: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s", buf);
                           ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:137:30: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      gnats_logfile = fopen (logfile, "at");
                             ^~~~~~~
/usr/include/stdio.h:230:37: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                       ^
misc.c:137:39: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      gnats_logfile = fopen (logfile, "at");
                                      ^~~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
misc.c:185:34: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fp = popen (mailAgentPath, "w");
                                 ^~~
/usr/include/stdio.h:333:39: note: passing argument to parameter here
FILE    *popen(const char *, const char *);
                                         ^
misc.c:190:17: warning: passing 'const char [29]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fp, "From: %s (GNATS Management)\n", 
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:192:17: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fp, "To: %s\n", gnatsAdminMailAddr (database));
                       ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:193:17: warning: passing 'const char [30]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fp, "Subject: mail output from %s\n", program_name);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:194:17: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fp, "\n\n");
                       ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:219:23: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  asprintf (&message, "Program error at %s:%d", filename, line);
                      ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
misc.c:427:27: warning: passing 'const char [35]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
    (void)fprintf(stderr, "xmalloc: unable to allocate memory");
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:444:27: warning: passing 'const char [36]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
    (void)fprintf(stderr, "xrealloc: unable to relocate memory");
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:457:27: warning: passing 'const char [38]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
    (void)fprintf(stderr, "xstrdup: unable to duplicate a string");
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:578:39: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  return (fd < 0 ? NULL : fdopen (fd, fopen_mode));
                                      ^~~~~~~~~~
/usr/include/stdio.h:305:31: note: passing argument to parameter here
FILE    *fdopen(int, const char *);
                                 ^
misc.c:619:26: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      strftime (buf, 16, "%z", brokentime);
                         ^~~~
/usr/include/time.h:100:67: note: passing argument to parameter here
size_t strftime(char * __restrict, size_t, const char * __restrict,
                                                                  ^
misc.c:619:32: warning: passing 'const struct tm *' to parameter of type 'struct tm *' discards qualifiers [-Wincompatible-pointer-types]
      strftime (buf, 16, "%z", brokentime);
                               ^~~~~~~~~~
/usr/include/time.h:101:33: note: passing argument to parameter here
    const struct tm * __restrict)
                                ^
misc.c:630:31: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
    return strftime (s, size, template, brokentime);
                              ^~~~~~~~
/usr/include/time.h:100:67: note: passing argument to parameter here
size_t strftime(char * __restrict, size_t, const char * __restrict,
                                                                  ^
misc.c:630:41: warning: passing 'const struct tm *' to parameter of type 'struct tm *' discards qualifiers [-Wincompatible-pointer-types]
    return strftime (s, size, template, brokentime);
                                        ^~~~~~~~~~
/usr/include/time.h:101:33: note: passing argument to parameter here
    const struct tm * __restrict)
                                ^
misc.c:691:29: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              sprintf (offset_buf, "%c%02d%02d", sign, hours, minutes);
                                   ^~~~~~~~~~~~
/usr/include/stdio.h:271:56: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                                           ^
misc.c:716:22: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
    fprintf (output, "%s", *t);
                     ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
misc.c:724:11: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  printf ("%s %s\n", program_name, version_string);
          ^~~~~~~~~
/usr/include/stdio.h:249:36: note: passing argument to parameter here
int      printf(const char * __restrict, ...)
                                       ^
internal.c:242:29: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          asprintf (&lastDitchTry, "mail %s", gnatsAdminMailAddr (database));
                                   ^~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
internal.c:243:30: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fp = popen (lastDitchTry, "w");
                                    ^~~
/usr/include/stdio.h:333:39: note: passing argument to parameter here
FILE    *popen(const char *, const char *);
                                         ^
internal.c:249:21: warning: passing 'const char [38]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: cannot open mail file for errors\n",
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
internal.c:260:20: warning: passing 'const char [29]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (fp, "From: %s (GNATS Management)\n",
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
internal.c:262:20: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (fp, "To: %s\n", gnatsAdminMailAddr (database));
                   ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
internal.c:263:20: warning: passing 'const char [37]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (fp, "Subject: problem with %s on host %s\n", program_name,
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
internal.c:265:20: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (fp, "\n\n");     /* Two newlines to massage buggy sendmails */
                   ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
internal.c:274:24: warning: passing 'const char [17]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "Problem with %s\n", program_name);
                       ^~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
internal.c:276:24: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "\n");
                       ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
internal.c:381:28: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      asprintf (&tempname, "locks/%s.lock", prID);
                           ^~~~~~~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
10 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" pr.c
23 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" index.c
pr.c:161:21: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  FILE *fp = fopen (path, "r");
                    ^~~~
/usr/include/stdio.h:230:37: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                       ^
pr.c:161:27: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  FILE *fp = fopen (path, "r");
                          ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
pr.c:600:14: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fputs (str, fp);
             ^~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:614:12: warning: passing 'const char *' to parameter of type 'void *' discards qualifiers [-Wincompatible-pointer-types]
          fwrite (s, 1, e - s, fp);
                  ^
/usr/include/stdio.h:242:39: note: passing argument to parameter here
size_t   fwrite(const void * __restrict, size_t, size_t, FILE * __restrict);
                                       ^
pr.c:615:11: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fputs (eolTerminator, fp);
                 ^~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:620:11: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fputs (s, fp);
                 ^
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:648:13: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fputs (eolTerminator, fp);
                   ^~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:653:10: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                fputs (eolTerminator, fp);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:666:19: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fprintf (fp, "%c%s%c%s %s%s", PR_FIELD_TAG_START,
                         ^~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
pr.c:676:13: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fputs (spaceList + flen, fp);
                   ^~~~~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:678:13: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fputs (fieldText, fp);
                   ^~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:679:13: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fputs (eolTerminator, fp);
                   ^~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:1061:22: warning: passing 'const char [15]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              asprintf (&b, "%s\nReceived:%s", pr->private->header[i], buf);
                            ^~~~~~~~~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
pr.c:1065:22: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              asprintf (&b, "%s\nReceived: %s", pr->private->header[i], buf);
                            ^~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
pr.c:1187:10: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fputs (headerNames[field], fp);
         ^~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:1196:10: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fputs (eolTerminator, fp);
         ^~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:1286:19: warning: passing 'const char [9]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  asprintf (&buf, "%s/%s/%s", databaseDir (pr->database),
                  ^~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
pr.c:1344:19: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  output = fopen (filename, "w+");
                  ^~~~~~~~
/usr/include/stdio.h:230:37: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                       ^
pr.c:1344:29: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  output = fopen (filename, "w+");
                            ^~~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
pr.c:1396:24: warning: passing 'const char [9]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      asprintf (&path, "%s/%s/%s", databaseDir (database), category, prnum);
                       ^~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
pr.c:1434:20: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  if ((fp = fopen (path, "r")) == NULL)
                   ^~~~
/usr/include/stdio.h:230:37: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                       ^
pr.c:1434:26: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  if ((fp = fopen (path, "r")) == NULL)
                         ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
pr.c:1528:13: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fputs (eol, outfile);
                   ^~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
pr.c:1539:13: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fputs (eol, outfile);
                   ^~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
index.c:101:25: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      sprintf (datebuf, "%d", (int) d);
                        ^~~~
/usr/include/stdio.h:271:56: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                                           ^
index.c:134:19: warning: passing 'const char [6]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  asprintf (&res, "%s/%s", field_value (pr, CATEGORY (pr->database)),
                  ^~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
index.c:513:31: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fp = fopen (index_filename, "r");
                              ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
index.c:704:39: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                  asprintf (&(newIndex->fields[x]), "%d", (int) t);
                                                    ^~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
index.c:916:25: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fp = fopen (path, "w");
                        ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
index.c:924:25: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fp = fopen (path, "a+");
                        ^~~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
24 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" lists.c
6 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" query.c
query.c:318:22: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  strftime (buf, 21, "%Y-%m-%d %H:%M:%S", ar_time);
                     ^~~~~~~~~~~~~~~~~~~
/usr/include/time.h:100:67: note: passing argument to parameter here
size_t strftime(char * __restrict, size_t, const char * __restrict,
                                                                  ^
query.c:366:21: warning: passing 'const char [28]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: re_compile_pattern: %s\n", program_name, r.c);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
query.c:382:9: warning: passing 'const char [58]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
               "%s: warning: re_match died with pattern %s and string %s\n",
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
query.c:432:21: warning: passing 'const char [28]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: re_compile_pattern: %s\n", program_name, r.c);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
query.c:448:9: warning: passing 'const char [59]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
               "%s: warning: re_search died with pattern %s and string %s\n",
               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
query.c:807:17: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fp, format, val);
                       ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
query.c:813:20: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          asprintf (&new, format, val);
                          ^~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
query.c:822:17: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fp, format, contents);
                       ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
query.c:828:20: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          asprintf (&new, format, contents);
                          ^~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
query.c:968:23: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            sprintf (buffer, "%d", enum_numeric (contents, fieldIndex));
                             ^~~~
/usr/include/stdio.h:271:56: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                                           ^
query.c:972:23: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            sprintf (buffer, "%d", (int) get_any_date (contents));
                             ^~~~
/usr/include/stdio.h:271:56: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                                           ^
query.c:976:23: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            sprintf (buffer, "%d", atoi (contents));
                             ^~~~
/usr/include/stdio.h:271:56: note: passing argument to parameter here
int      sprintf(char * __restrict, const char * __restrict, ...)
                                                           ^
query.c:1135:15: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fputs (eolTerminator, fp);
                     ^~~~~~~~~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
query.c:1172:15: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fputs (format, fp);
                     ^~~~~~
/usr/include/stdio.h:234:35: note: passing argument to parameter here
int      fputs(const char * __restrict, FILE * __restrict);
                                      ^
query.c:1253:17: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fp, eolTerminator);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
lists.c:120:28: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fpout = fopen (outf, "w");
                           ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
lists.c:134:22: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fprintf (fpout, "%s\n", fieldDefForIndex (f)->name);
                            ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
lists.c:145:22: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fprintf (fpout, "%s\n", field->name);
                            ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
lists.c:154:22: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fprintf (fpout, "%s\n", complexFieldIndexToString (fields->ent));
                            ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
lists.c:194:20: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (fpout, (x > 0) ? ":%s" : "%s", chain->admFields[x]);
                          ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
lists.c:196:23: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (fpout, "%s", eolTerminator);
                      ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
6 warnings generated.
echo 'const char *version_string = "4.1.0";' > version.c-t
mv version.c-t version.c
gcc -c -I. -I.  -O2 -Dconst=   -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" regex.c
regex.c:396:11: warning: expression result unused [-Wunused-value]
   bzero (re_syntax_table, sizeof re_syntax_table);
          ^~~~~~~~~~~~~~~
regex.c:203:49: note: expanded from macro 'bzero'
#     define bzero(s, n)        (memset (s, '\0', n), (s))
                                                       ^
regex.c:1973:15: warning: initializing 'char *' with an expression of type 're_char *' (aka 'unsigned char *') converts between pointers to integer types with different sign [-Wpointer-sign]
  const char *string = str;
              ^        ~~~
regex.c:248115: warning13s: generated.
 warning: expression result unused [-Wunused-value]
            bzero (b, (1 << BYTEWIDTH) / BYTEWIDTH);
                   ^
regex.c:203:49: note: expanded from macro 'bzero'
#     define bzero(s, n)        (memset (s, '\0', n), (s))
                                                       ^
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" adm.c
regex.c:3750:10: warning: expression result unused [-Wunused-value]
  bzero (fastmap, 1 << BYTEWIDTH);  /* Assume nothing's valid.  */
         ^~~~~~~
regex.c:203:49: note: expanded from macro 'bzero'
#     define bzero(s, n)        (memset (s, '\0', n), (s))
                                                       ^
adm.c:137:21: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fp = fopen (path, "r");
                    ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
adm.c:181:21: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fp = fopen (path, "r");
                    ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
adm.c:376:22: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (outfile, (x == 0) ? "%s" : ":%s", ent->admFields[x]);
                            ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
adm.c:380:22: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (outfile, "%s", ent->admFields[x]);
                            ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
adm.c:388:21: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (outfile, "%s", eolTerminator);
                    ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
5 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" ./client.c
./client.c:76:24: warning: passing 'const char [31]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: error reading from server\n", program_name);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:101:22: warning: passing 'const char [35]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                  fprintf (stderr, "%s: bad type of reply from server\n",
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:135:21: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: received `%s'\n", program_name, recvline);
                           ^~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:185:21: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: received `%s'\n", program_name, recvline);
                           ^~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:237:21: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: received `%s'\n", program_name, recvline);
                           ^~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:264:20: warning: passing 'const char [3]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (outfp, "%s", recvline + i);
                          ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:283:24: warning: passing 'const char [29]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: error writing to server\n", program_name);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:299:25: warning: passing 'const char [22]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: received %d `%s'\n", 
                               ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:316:22: warning: passing 'const char [25]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                  fprintf (stderr, "%s: server closing down\n", program_name);
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:337:26: warning: passing 'const char [28]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                      fprintf (stderr, "%s: unexpected %d received\n",
                                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:346:19: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                fprintf (outfp, "%s\n", r->text);
                                ^~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:362:25: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: %s\n", program_name, r->text);
                               ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:367:25: warning: passing 'const char [22]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: PR is not locked\n", program_name);
                               ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:372:25: warning: passing 'const char [24]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: database is locked\n", program_name);
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:377:25: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: no PRs matched\n", program_name);
                               ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:383:10: warning: passing 'const char [48]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                       "%s: no Kerberos support, authentication failed\n",
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:395:25: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: access denied\n", program_name);
                               ^~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:401:25: warning: passing 'const char [31]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: cannot understand %d `%s'\n",
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:414:25: warning: passing 'const char [32]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: null reply from the server\n",
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:538:21: warning: passing 'const char [26]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "opening connection to %s\n", hostname);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:556:31: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  if ((file = fdopen (sockfd, "r")) == NULL)
                              ^~~
/usr/include/stdio.h:305:31: note: passing argument to parameter here
FILE    *fdopen(int, const char *);
                                 ^
./client.c:570:30: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  if ((file = fdopen (dupfd, "w")) == NULL)
                             ^~~
/usr/include/stdio.h:305:31: note: passing argument to parameter here
FILE    *fdopen(int, const char *);
                                 ^
./client.c:732:21: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: writing `QUIT'\n", program_name);
                           ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:735:28: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (serv_write, "QUIT\r\n");
                           ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:764:24: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `CHDB %s'\n", program_name, newRoot);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:766:24: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "CHDB %s\r\n", newRoot);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:776:24: warning: passing 'const char [26]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `USER %s %s'\n", program_name,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:779:24: warning: passing 'const char [13]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "USER %s %s\r\n", user, passwd);
                       ^~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1053:24: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: %s\n", program_name, getErrorMessage (err));
                       ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1062:23: warning: passing 'const char [36]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fprintf (stderr, "%s: invalid value `%s' in field %s\n",
                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1072:15: warning: passing 'const char [21]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      printf ("%s: invalid fields:\n", program_name);
              ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:249:36: note: passing argument to parameter here
int      printf(const char * __restrict, ...)
                                       ^
./client.c:1078:14: warning: passing 'const char [97]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            printf ("\tNote: There was a bad value `%s' for the field `%s'.\n\tIt was set to the default value of `%s'.\n",
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:249:36: note: passing argument to parameter here
int      printf(const char * __restrict, ...)
                                       ^
./client.c:1088:24: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: %s\n", program_name, getErrorMessage (err));
                       ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1101:21: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: writing `LIST %s'\n",
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1104:28: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (serv_write, "LIST %s\r\n", listName);
                           ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1117:24: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `QFMT %s'\n", program_name, name);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1119:24: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "QFMT %s\r\n", name);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1135:21: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: writing `EXPR %s'\n", program_name,
                           ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1138:28: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (serv_write, "EXPR %s\r\n", queryString);
                           ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1164:24: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `%s'\n", program_name, buf);
                       ^~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1166:24: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "%s\r\n", buf);
                       ^~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1183:24: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "ADMV %s %s %s\r\n", admField, admKey, admSubfield);
                       ^~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1194:24: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "RSET\r\n");
                       ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1196:24: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "QFMT full\r\n");
                       ^~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1198:24: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "QUER %s\r\n", prNum);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1212:24: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "RSET\r\n");
                       ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1223:24: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "EDITADDR %s\r\n", addr);
                       ^~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1233:24: warning: passing 'const char [18]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `%s'\n", program_name, cmd);
                       ^~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1235:24: warning: passing 'const char [5]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "%s\r\n", cmd);
                       ^~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1243:24: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, ".\r\n");
                       ^~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1271:24: warning: passing 'const char [11]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "%s %s %s\r\n", cmd, prnum, fieldname);
                       ^~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1283:32: warning: passing 'const char [4]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (serv_write, ".\r\n");
                               ^~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1288:27: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
            fprintf (serv_write, "%s\r\n.\r\n", reason);
                                 ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1291:25: warning: passing 'const char [65]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "%s: server wants a change-reason for %s,"
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1301:21: warning: passing 'const char [32]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          fprintf (stderr, "%s: bad reply from server: %d.\n",
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1321:19: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  asprintf (&buf, "EDIT %s", prNum);
                  ^~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
./client.c:1331:24: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `LKDB'\n", program_name);
                       ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1333:24: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "LKDB\r\n");
                       ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1342:24: warning: passing 'const char [20]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `UNDB'\n", program_name);
                       ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1344:24: warning: passing 'const char [7]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "UNDB\r\n");
                       ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1353:28: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (serv_write, "LOCK %s %s %s\r\n", prNum, username, processID);
                           ^~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1357:28: warning: passing 'const char [13]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (serv_write, "LOCK %s %s\r\n", prNum, username);
                           ^~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1367:24: warning: passing 'const char [23]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `UNLK %s'\n", program_name, prNum);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1369:24: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "UNLK %s\r\n", prNum);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1379:24: warning: passing 'const char [25]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "%s: writing `DELETE %s'\n", program_name, prNum);
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1381:24: warning: passing 'const char [12]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "DELETE %s\r\n", prNum);
                       ^~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1388:24: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "FIELDFLAGS %s\r\n", fieldname);
                       ^~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1395:24: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "FVLD %s\r\n", fieldname);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1402:24: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "FDSC %s\r\n", fieldname);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
./client.c:1409:24: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (serv_write, "FTYP %s\r\n", fieldname);
                       ^~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
70 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" pr-init.c
pr-init.c:84:24: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      inpfile = fopen (filename, "r");
                       ^~~~~~~~
/usr/include/stdio.h:230:37: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                       ^
pr-init.c:84:34: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      inpfile = fopen (filename, "r");
                                 ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
2 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" database.c
database.c:375:29: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      asprintf (&agentPath, "%s/mail-agent", bdir);
                            ^~~~~~~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
database.c:552:23: warning: passing 'const char [16]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      asprintf (&ptr, "%s/gnats-adm/%s", ddir, filename);
                      ^~~~~~~~~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
database.c:593:20: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  FILE *f = fopen (filename, "r");
                   ^~~~~~~~
/usr/include/stdio.h:230:37: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                       ^
database.c:593:30: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  FILE *f = fopen (filename, "r");
                             ^~~
/usr/include/stdio.h:230:62: note: passing argument to parameter here
FILE    *fopen(const char * __restrict , const char * __restrict);
                                                                ^
database.c:678:24: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (stderr, "Unable to open %s\n", GNATSD_HOST_ACCESS_FILE);
                       ^~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
database.c:700:25: warning: passing 'const char [19]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
              fprintf (stderr, "Unable to open %s\n", path);
                               ^~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
6 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=   -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" fconfig.c
gcc -c -I. -I.  -O2 -Dconst=   -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" fconfigl.c
4 warnings generated.
gcc -c -I. -I.  -O2 -Dconst=  -W -Wall -ansi -pedantic  -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-format  -DHAVE_CONFIG_H -DGNATSD_USER_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.user_access\" -DGNATSD_HOST_ACCESS_FILE=\"/usr/pkg/etc/gnats/gnatsd.host_access\" -DDEFAULT_GNATS_SERVICE=\"service-name=support\" -DGLOBAL_DB_LIST_FILE=\"/usr/pkg/etc/gnats/databases\" -DGNATS_USER=\"gnats\" mail.c
<stdout>:2453:17: error: conflicting types for 'yy_scan_string'
YY_BUFFER_STATE yy_scan_string (yyconst char * yy_str )
                ^
<stdout>:293:17: note: previous declaration is here
YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str  );
                ^
<stdout>:2456:37: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
        return yy_scan_bytes(yy_str,strlen(yy_str) );
                                           ^~~~~~
/usr/include/string.h:61:28: note: passing argument to parameter here
size_t   strlen(const char *);
                            ^
<stdout>:2456:23: warning: passing 'const char *' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
        return yy_scan_bytes(yy_str,strlen(yy_str) );
                             ^~~~~~
<stdout>:294:46: note: passing argument to parameter 'bytes' here
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len  );
                                             ^
<stdout>:2466:17: error: conflicting types for 'yy_scan_bytes'
YY_BUFFER_STATE yy_scan_bytes  (yyconst char * bytes, int  len )
                ^
<stdout>:294:17: note: previous declaration is here
YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len  );
                ^
<stdout>:2500:13: error: conflicting types for 'yy_fatal_error'
static void yy_fatal_error (yyconst char* msg )
            ^
<stdout>:343:13: note: previous declaration is here
static void yy_fatal_error (yyconst char msg[]  );
            ^
2 warnings and 3 errors generated.
gmake[1]: *** [fconfigl.o] Error 1
gmake[1]: *** Waiting for unfinished jobs....
mail.c:148:24: warning: passing 'const char [9]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
          asprintf (&address, "%s:%s:%s", r->admFields[ResponsibleAdmKey],
                              ^~~~~~~~~~
/usr/include/stdio.h:412:58: note: passing argument to parameter here
int      asprintf(char ** __restrict, const char * __restrict, ...)
                                                             ^
mail.c:427:17: warning: passing 'const char [10]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (msg, "From: %s\n", fromAddr);
                ^~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
mail.c:428:17: warning: passing 'const char [8]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (msg, "To: %s\n", toAddr);
                ^~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
mail.c:431:21: warning: passing 'const char [14]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
      fprintf (msg, "Reply-To: %s\n", replyToAddr);
                    ^~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
mail.c:434:17: warning: passing 'const char [2]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
  fprintf (msg, "\n");
                ^~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
mail.c:448:10: warning: passing 'const char [98]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                       "\tNote: There was a bad value `%s' for the field `%s'.\n\tIt was set to the default value of `%s'.\n\n",
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
mail.c:455:10: warning: passing 'const char [97]' to parameter of type 'char *' discards qualifiers [-Wincompatible-pointer-types]
                       "\tNote: There was a missing value for the field `%s'.\n\tIt was set to the default value of `%s'.\n\n",
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/stdio.h:231:57: note: passing argument to parameter here
int      fprintf(FILE * __restrict , const char * __restrict, ...)
                                                            ^
7 warnings generated.
gmake[1]: Leaving directory `/scratch/databases/gnats/work/gnats-4.1.0/gnats'
gmake: *** [all-gnats] Error 1
*** Error code 2

Stop.
make: stopped in /bulk-data/pkgsrc/databases/gnats
*** Error code 1

Stop.
make: stopped in /bulk-data/pkgsrc/databases/gnats
