﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
20265	ghostscript-10.03.1 FTBFS with GCC 14	Douglas R. Reno	Douglas R. Reno	"While building through the printing stack, I've encountered an issue with Ghostscript. It seems to be due to GCC 14:

gcc  -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE -DHAVE_SSE2 -DHAVE_DBUS -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF  -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -DNDEBUG -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-strict-aliasing -Werror=declaration-after-statement -fno-builtin -fno-common -Werror=return-type -Wno-unused-local-typedefs -DHAVE_STDINT_H=1 -DHAVE_DIRENT_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_TIMES_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_LIBDL=1 -DGX_COLOR_INDEX_TYPE=""unsigned long long"" -D__USE_UNIX98=1 -DHAVE_SNPRINTF  -DBUILD_PDF=1 -I./pdf  -DHAVE_RESTRICT=1  -DUSE_LIBPAPER -I/usr/include/webp -fno-strict-aliasing -DHAVE_POPEN_PROTO=1    -DSHARE_JPX=1 -I/usr/include/openjpeg-2.5 -DUSE_OPENJPEG_JP2  -DPDF_INCLUDED -I./pdf -I./obj -I./pcl/pl -I./base -Isrc/lib -I./jpegxr -Isrc -Isrc/src/lib/openjp2 -I./jbig2dec -c ./pdf/pdf_sec.c -o ./obj/pdf_sec.o

./pdf/pdf_sec.c: In function ‘apply_sasl’:

./pdf/pdf_sec.c:186:25: error: assignment to ‘char \*\*’ from incompatible pointer type ‘char \*’ [-Wincompatible-pointer-types]

  186 |             NewPassword = Password;

      |                         ^

./pdf/pdf_sec.c:187:20: error: assignment to ‘int \*’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]

  187 |             NewLen = Len;

      |                    ^

make: *** [pdf/pdf.mak:169: obj/pdf_sec.o] Error 1

This can be fixed by the following sed:

{{{
sed -e '186 s/NewPassword =/*NewPassword =/' \
          -e '187 s/NewLen =/*NewLen =/' \
          -i pdf/pdf_sec.c
}}}

The '\' in the char types above were added so that Trac showed them instead of hiding them."	defect	closed	normal	12.2	BOOK	git	medium	fixed		
