From: Keith Christian <keith1christian@gmail.com>
To: cygwin@cygwin.com
Subject: Compiling gnu diction on Cygwin
Date: Tue, 5 Apr 2022 07:27:03 -0600 [thread overview]
Message-ID: <CAFWoy7ESdsGMzn7cxcnG1TCy1tJq1CQ7v6hfcmt80-1RdkUMLQ@mail.gmail.com> (raw)
Hi Cygwin fans,
Version info:
Windows 10:10.0.19043 N/A Build 19043
Cygwin: CYGWIN_NT-10.0 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin
I successfully compiled diction and style from this tar file, but with errors:
https://ftp.gnu.org/gnu/diction/diction-1.11.tar.gz
Diction and style both work, but I am looking for suggestions for how
to clean up the compile errors in lines 48 - 60 below:
1 ./configure; make; make install
2 Tue, Apr 5, 2022 7:09:05 AM
3 checking build system type... x86_64-unknown-cygwin
4 checking host system type... x86_64-unknown-cygwin
5 checking for gcc... gcc
6 checking for C compiler default output file name... a.exe
7 checking whether the C compiler works... yes
8 checking whether we are cross compiling... no
9 checking for suffix of executables... .exe
10 checking for suffix of object files... o
11 checking whether we are using the GNU C compiler... yes
12 checking whether gcc accepts -g... yes
13 checking for gcc option to accept ISO C89... none needed
14 checking for a BSD-compatible install... /usr/bin/install -c
15 checking for strerror... yes
16 checking for library containing regcomp... none required
17 checking for broken realloc... no
18 checking for msgfmt... yes
19 checking how to run the C preprocessor... gcc -E
20 checking for grep that handles long lines and -e... /usr/bin/grep
21 checking for egrep... /usr/bin/grep -E
22 checking for ANSI C header files... yes
23 checking for sys/types.h... yes
24 checking for sys/stat.h... yes
25 checking for stdlib.h... yes
26 checking for string.h... yes
27 checking for memory.h... yes
28 checking for strings.h... yes
29 checking for inttypes.h... yes
30 checking for stdint.h... yes
31 checking for unistd.h... yes
32 checking libintl.h usability... yes
33 checking libintl.h presence... yes
34 checking for libintl.h... yes
35 checking for library containing gettext... -lintl
36 configure: creating ./config.status
37 config.status: creating Makefile
38 config.status: creating diction.1
39 config.status: creating diction.texi
40 config.status: creating diction.spec
41 config.status: creating style.1
42 config.status: creating test/rundiction
43 config.status: creating config.h
44 gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wno-unused
-Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings
-Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common
diction.c
45 gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wno-unused
-Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings
-Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common
sentence.c
46 gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wno-unused
-Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings
-Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common
misc.c
47 gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wno-unused
-Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings
-Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common
getopt.c
48 getopt.c:147:1: warning: function declaration isnt a prototype
[-Wstrict-prototypes]
49 147 | extern char *getenv ();
50 | ^~~~~~
51 getopt.c: In function _getopt_internal_r:
52 getopt.c:444:23: warning: cast discards const qualifier from
pointer target type [-Wcast-qual]
53 444 | exchange ((char **) argv, d);
54 | ^
55 getopt.c:467:23: warning: cast discards const qualifier from
pointer target type [-Wcast-qual]
56 467 | exchange ((char **) argv, d);
57 | ^
58 getopt.c:774:27: warning: cast discards const qualifier from
pointer target type [-Wcast-qual]
59 774 | d->__nextchar = (char *) "";
60 | ^
61 gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wno-unused
-Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings
-Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common
getopt1.c
62 gcc -o diction -g diction.o sentence.o misc.o \
63 getopt.o getopt1.o -lintl
64 gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wno-unused
-Wshadow -Wbad-function-cast -Wmissing-prototypes -Wstrict-prototypes
-Wcast-align -Wcast-qual -Wpointer-arith -Wcast-align -Wwrite-strings
-Wmissing-declarations -Wnested-externs -Wundef -pedantic -fno-common
style.c
65 gcc -o style -g style.o sentence.o misc.o \
66 getopt.o getopt1.o -lm -lintl
67 msgfmt -o de.mo de.po
68 msgfmt -o en_GB.mo en_GB.po
69 msgfmt -o nl.mo nl.po
Have a great day and thanks!
next reply other threads:[~2022-04-05 13:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-05 13:27 Keith Christian [this message]
2022-04-05 17:35 ` Brian Inglis
2022-04-06 12:04 ` Csaba Raduly
2022-04-06 14:59 ` Keith Christian
2022-04-06 18:31 ` Brian Inglis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFWoy7ESdsGMzn7cxcnG1TCy1tJq1CQ7v6hfcmt80-1RdkUMLQ@mail.gmail.com \
--to=keith1christian@gmail.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).