| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Original-To: | cygwin AT cygwin DOT com |
| Delivered-To: | cygwin AT cygwin DOT com |
| DMARC-Filter: | OpenDMARC Filter v1.4.1 sourceware.org F1BF73857815 |
| Authentication-Results: | sourceware.org; |
| dmarc=pass (p=none dis=none) header.from=gmail.com | |
| Authentication-Results: | sourceware.org; spf=pass smtp.mailfrom=gmail.com |
| DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; |
| h=mime-version:references:in-reply-to:from:date:message-id:subject:to | |
| :cc:content-transfer-encoding; | |
| bh=DEpcPsvh4+dtXf9rncGNtzgGmdPCNvSvdS0L97W3y0Y=; | |
| b=H9m9K5HHY2J6iWtFSUSAecNiBHDznD/hDbv6XuCoJlEqIXg1xfAw+FIk1e9lkXJibK | |
| 02WcoefuSc36oIUm9yESL0svl6yAIt0b9HB0MjClkH3F1XF9/PORkmgBuukaBgQKCL84 | |
| 3j8qfuH0j76nTk32KPxol4L1C4qvUW8bHhTL6D9SIOlVEudbep8M1mhNqH5tbwV2xzYc | |
| xqoC/I5Ma4T0PRpbtJoKJO4Qd9o1EXKmDGKuHFnUikuacPYW1YdnPgm46VlGf9mGdkSz | |
| LEnBbuax9tdILNKh7bttR2vBNL58lMsf7D1wrJ/OUoHcFmTVrBtOKj/bjgFUcsUwRwpF | |
| d+LQ== | |
| X-Google-DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; |
| d=1e100.net; s=20210112; | |
| h=x-gm-message-state:mime-version:references:in-reply-to:from:date | |
| :message-id:subject:to:cc:content-transfer-encoding; | |
| bh=DEpcPsvh4+dtXf9rncGNtzgGmdPCNvSvdS0L97W3y0Y=; | |
| b=TmLws+XAiGY0jgkF6zG59AFFf4RvJc4au3t3SSB11LRcT3j/XSWdNH+hqYYiwBrIfi | |
| 8bWVtohXemcmyOKHXPCYR3tDp3DWMhmfMLtOLrqxT2dsIYcsC9hA46devmTb52Lx+aOo | |
| rVq0MrGK23OuGgBjJ3IkYfL2pIbnNMyiC/3pQ0EW8NXG7mdDM0WH6VgNbHqEHYFPX8rD | |
| NABcwO2SuI3MuYpJcEobhnRfBzxio7005W+dqQqlw3i2KqxTftg/7kM1OW/GzIW2hyJW | |
| 9C+ddVGCnZA4ycAy3X+Q7iFjDFSE9zYGkjaHlXQDi8MMyozB+cMLwwCbUOvunrQ/30e/ | |
| Q8Yw== | |
| X-Gm-Message-State: | AOAM533SKj1+3MM6m6BFOwwnyQt2QhdlRlDxPUMJQFaB8nZ7oYwhuUv8 |
| EnXaPfGV9Zam41SsY4hJlCvYN2GEBVLUcNNDiMQ= | |
| X-Google-Smtp-Source: | ABdhPJxyCsCMctWNc+zVjqplc9nsMC+8Bw9YJAftFTkqfxf1QC2Knyqe0+vN91D1Auhg1rMJmGQRiFGjp0Lw3qNG1AU= |
| X-Received: | by 2002:a7b:cb93:0:b0:38e:710e:8934 with SMTP id |
| m19-20020a7bcb93000000b0038e710e8934mr7318968wmi.83.1649246704700; Wed, 06 | |
| Apr 2022 05:05:04 -0700 (PDT) | |
| MIME-Version: | 1.0 |
| References: | <CAFWoy7ESdsGMzn7cxcnG1TCy1tJq1CQ7v6hfcmt80-1RdkUMLQ AT mail DOT gmail DOT com> |
| In-Reply-To: | <CAFWoy7ESdsGMzn7cxcnG1TCy1tJq1CQ7v6hfcmt80-1RdkUMLQ@mail.gmail.com> |
| From: | Csaba Raduly <rcsaba AT gmail DOT com> |
| Date: | Wed, 6 Apr 2022 14:04:50 +0200 |
| Message-ID: | <CAEhDDbAZ04bPnsxbfehtU-2cxopp1kTpZ8J6Wfi2sfuHyjK7AQ@mail.gmail.com> |
| Subject: | Re: Compiling gnu diction on Cygwin |
| To: | Keith Christian <keith1christian AT gmail DOT com> |
| X-Spam-Status: | No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, |
| DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, | |
| RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, | |
| T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 | |
| X-Spam-Checker-Version: | SpamAssassin 3.4.4 (2020-01-24) on |
| server2.sourceware.org | |
| X-BeenThere: | cygwin AT cygwin DOT com |
| X-Mailman-Version: | 2.1.29 |
| List-Id: | General Cygwin discussions and problem reports <cygwin.cygwin.com> |
| List-Archive: | <https://cygwin.com/pipermail/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-request AT cygwin DOT com?subject=help> |
| List-Subscribe: | <https://cygwin.com/mailman/listinfo/cygwin>, |
| <mailto:cygwin-request AT cygwin DOT com?subject=subscribe> | |
| Cc: | cygwin list <cygwin AT cygwin DOT com> |
| Sender: | "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com> |
| X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id 236C8Rms015487 |
On Tue, 5 Apr 2022 at 15:27, Keith Christian wrote:
>
> 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
(snip)
Works just fine for me:
$ uname -a
CYGWIN_NT-10.0 AMDAHL 3.3.4(0.341/5/3) 2022-01-31 19:35 x86_64 Cygwin
(configure ouptput elided)
(edit makefile to add missing -Wall -Wpedantic -Wextra)
$ make
gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wall -Wpedantic
-Wextra -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
../getopt.h:59:14: warning: ‘optarg’ redeclared without dllimport
attribute: previous dllimport ignored [-Wattributes]
../diction.c:190:31: warning: array subscript has type ‘char’
[-Wchar-subscripts]
190 | if (s>sent && isalpha(*(s-1))) continue;
| ^~~~~~
gcc -c -I. -DSHAREDIR=\"/usr/local/share\"
-DLOCALEDIR=\"/usr/local/share/locale\" -g -O2 -pipe -Wall -Wpedantic
-Wextra -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
../getopt.c:147:1: warning: function declaration isn’t a prototype
[-Wstrict-prototypes]
147 | extern char *getenv ();
| ^~~~~~
../getopt.c: In function ‘_getopt_internal_r’:
../getopt.c:444:23: warning: cast discards ‘const’ qualifier from
pointer target type [-Wcast-qual]
444 | exchange ((char **) argv, d);
| ^
../style.c:1191:18: warning: unknown conversion type character ‘(’ in
format [-Wformat=]
1191 | printf(_(" nominalizations %1.f% (%d)\n"),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../style.c:40:19: note: in definition of macro ‘_’
40 | #define _(String) String
| ^~~~~~
../style.c:1191:49: note: format string is defined here
1191 | printf(_(" nominalizations %1.f% (%d)\n"),
| ^
gcc -o style -g style.o sentence.o misc.o \
getopt.o getopt1.o -lm
Both diction.exe and style.exe are created successfully.
Csaba
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformant way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |