Add a New Comment (Rich Markup)
afm.c will build with -DPROTOTYPES src/util.c needs langinfo.h included. I'm trying to debug a segfault on Debian Stable and can build with: ./configure --prefix=/usr --sysconfdir=/etc CFLAGS=-DPROTOTYPES make to get a replacement binary (using my same config files) with the patch below. But, yeah, the current git still won't build today with: gcc version 10.2.1 20210110 (Debian 10.2.1-6) ----- diff --git a/src/util.c b/src/util.c index d53d8f0..8b04529 100644 --- a/src/util.c +++ b/src/util.c @@ -23,6 +23,7 @@ */ #include "gsint.h" +#include "langinfo.h" /* * Types and definitions.
Build fails on make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/enscript-1.6.6/afmlib' gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -flto -c -o afm.o afm.c afm.c:510:1: error: conflicting types for ‘afm_font_charwidth’ 510 | afm_font_charwidth (AFMFont font, AFMNumber ptsize, char ch, | ^~~~~~~~~~~~~~~~~~ afm.c:512:1: note: an argument type that has a default promotion can’t match an empty parameter name list declaration 512 | { | ^ In file included from afmint.h:87, from afm.c:23: afm.h:414:10: note: previous declaration of ‘afm_font_charwidth’ was here 414 | AFMError afm_font_charwidth ___P ((AFMFont font, AFMNumber ptsize, | ^~~~~~~~~~~~~~~~~~ afm.c:551:1: error: conflicting types for ‘afm_font_encode’ 551 | afm_font_encode (AFMFont font, unsigned char code, char *name, | ^~~~~~~~~~~~~~~ afm.c:553:1: note: an argument type that has a default promotion can’t match an empty parameter name list declaration 553 | { | ^ In file included from afmint.h:87, from afm.c:23: afm.h:423:10: note: previous declaration of ‘afm_font_encode’ was here 423 | AFMError afm_font_encode ___P ((AFMFont font, unsigned char code, char *name, | ^~~~~~~~~~~~~~~ make[2]: * [Makefile:477: afm.o] Error 1 make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/enscript-1.6.6/afmlib' make[1]: * [Makefile:467: all-recursive] Error 1 make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/enscript-1.6.6' make: * [Makefile:406: all] Error 2
(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)
Attach Files: Comment:
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Only logged-in users can vote.
Please enter the title of George Orwell's famous dystopian book (it's a date):
Copyright © 2023 Free Software Foundation, Inc. Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved. The Levitating, Meditating, Flute-playing Gnu logo is a GNU GPL'ed image provided by the Nevrax Design Team. Source Code
Powered by Savane 3.11