From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by sourceware.org (Postfix) with ESMTPS id F1BF73857815 for ; Wed, 6 Apr 2022 12:05:05 +0000 (GMT) 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 Received: by mail-wm1-x333.google.com with SMTP id n38-20020a05600c502600b0038e4a0fc5easo1482990wmr.3 for ; Wed, 06 Apr 2022 05:05:05 -0700 (PDT) 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: In-Reply-To: From: Csaba Raduly Date: Wed, 6 Apr 2022 14:04:50 +0200 Message-ID: Subject: Re: Compiling gnu diction on Cygwin To: Keith Christian Cc: cygwin list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2022 12:05:08 -0000 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 er= rors: > 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=3D\"/usr/local/share\" -DLOCALEDIR=3D\"/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: =E2=80=98optarg=E2=80=99 redeclared without dll= import attribute: previous dllimport ignored [-Wattributes] ../diction.c:190:31: warning: array subscript has type =E2=80=98char=E2=80= =99 [-Wchar-subscripts] 190 | if (s>sent && isalpha(*(s-1))) continue; | ^~~~~~ gcc -c -I. -DSHAREDIR=3D\"/usr/local/share\" -DLOCALEDIR=3D\"/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=E2=80=99t a prototype [-Wstrict-prototypes] 147 | extern char *getenv (); | ^~~~~~ ../getopt.c: In function =E2=80=98_getopt_internal_r=E2=80=99: ../getopt.c:444:23: warning: cast discards =E2=80=98const=E2=80=99 qualifie= r from pointer target type [-Wcast-qual] 444 | exchange ((char **) argv, d); | ^ ../style.c:1191:18: warning: unknown conversion type character =E2=80=98(= =E2=80=99 in format [-Wformat=3D] 1191 | printf(_(" nominalizations %1.f% (%d)\n"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../style.c:40:19: note: in definition of macro =E2=80=98_=E2=80=99 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 --=20 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 w= ay to get the wrong information: this is what you want. - Scott Meyers (C++TDa= WYK)