[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-enscript] [bug #64307] enscript does not compile on macOS 13.4
From: |
anonymous |
Subject: |
[bug-enscript] [bug #64307] enscript does not compile on macOS 13.4 |
Date: |
Thu, 15 Jun 2023 12:34:56 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?64307>
Summary: enscript does not compile on macOS 13.4
Group: GNU Enscript
Submitter: None
Submitted: Thu 15 Jun 2023 04:34:54 PM UTC
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Thu 15 Jun 2023 04:34:54 PM UTC By: Anonymous
This is the current git on macOS, using clang 14.0.0.
After ./configure, make fails with
gcc -DHAVE_CONFIG_H -I. -I.. -I./../intl -I../intl -I/usr/local/include -g
-O2 -c -o getopt.o getopt.c
getopt.c:527:30: error: implicitly declaring library function 'strcmp' with
type 'int (const char *, const char *)'
[-Werror,-Wimplicit-function-declaration]
if (optind != argc && !strcmp (argv[optind], "--"))
and
getopt.c:603:7: error: implicitly declaring library function 'strncmp' with
type 'int (const char *, const char *, unsigned long)'
[-Werror,-Wimplicit-function-declaration]
if (!strncmp (p->name, nextchar, nameend - nextchar))
and
getopt.c:606:21: error: implicitly declaring library function 'strlen' with
type 'unsigned long (const char *)' [-Werror,-Wimplicit-function-declaration]
== (unsigned int) strlen (p->name))
Adding #include <string.h> to compat/getopt.c fixes that.
(But why does enscript have its own buggy getopt in the first place?)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64307>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug-enscript] [bug #64307] enscript does not compile on macOS 13.4,
anonymous <=