FreeBSD verion: 12.2-RELEASE FreeBSD 12.2-RELEASE amd64 after update GS started having issues while interpreting following pdf file: https://media.lidl-flyer.com/306a7f70-33ea-11eb-9bd1-005056ae4067/Kaufland-03-12-2020-24-12-2020-01.pdf --------- $ gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4 \ -sOutputFile=tiger.png ~/gs2/bin/Kaufland-03-12-2020-24-12-2020-01.pdf GPL Ghostscript 9.52 (2020-03-19) Copyright (C) 2020 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Processing pages 1 through 8. Page 1 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File has unbalanced q/Q operators (too many Q's) Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Page 2 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Page 3 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Page 4 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Page 5 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Page 6 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Page 7 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. Page 8 $ --------- When GS compiled from stock source repository is used --------- ./gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4 \ -sOutputFile=tiger.png Kaufland-03-12-2020-24-12-2020-01.pdf GPL Ghostscript 9.52 (2020-03-19) Copyright (C) 2020 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Processing pages 1 through 8. Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 $ --------- So it seems to work OK
*After system upgrade from older FreeBSD version.
Hi bugreport@pokemail.net & everybody, I just landed on your ticket as it seems we have the same or a very similar issue using the latest ports gs version (9.52). The issues is not there on a much older setup (gs 8.70 / freebsd 8.x), under Mac OS (gs 9.54.0) and also under linux. I just wanted to ask you if you have been able to solve the issue on your side in the mean time and how ? I also tried compiling it from stock source (under 12.2, in /usr/local/src), but also here it fails most probably for other reasons. (...) -DHAVE_POPEN_PROTO=1 -DGS_DEVS_SHARED -DGS_DEVS_SHARED_DIR=\"/usr/local/lib/ghostscript/9.52\" -I./psi -I./obj -I./obj -I./base -I./devices -o ./obj/zpdfops.o -c ./psi/zpdfops.c ./psi/zpdfops.c:34:12: fatal error: 'stringprep.h' file not found # include <stringprep.h> ^~~~~~~~~~~~~~ 1 error generated. gmake: *** [psi/int.mak:1842: obj/zpdfops.o] Error 1 Ghostscript 9.52 is also quite old now (more than one year, released in March 2020). Is such an (relatively) important port really maintainer-less ? Thanks in advance for any update & kind regards, Olivier original command line with the same error: $ /usr/local/bin/gs -dBATCH -dNOPAUSE -sDEVICE=jpeg -r72 -dFirstPage=1 -dLastPage=1 -dJPEGQ=80 -sOutputFile=t4.jpg 1_2021_test.pdf GPL Ghostscript 9.52 (2020-03-19) Copyright (C) 2020 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Processing pages 1 through 1. Page 1 **** Error reading a content stream. The page may be incomplete. Output may be incorrect. **** Error: File has unbalanced q/Q operators (too many Q's) Output may be incorrect. **** Error: File did not complete the page properly and may be damaged. Output may be incorrect. + ./base/gdevp14.c:2277: pdf14_put_image(): PDF14 device push/pop out of sync + ./base/gdevp14.c:2277: pdf14_put_image(): PDF14 device push/pop out of sync + ./base/gdevp14.c:2277: pdf14_put_image(): PDF14 device push/pop out of sync + ./base/gdevp14.c:2277: pdf14_put_image(): PDF14 device push/pop out of sync
Is there any chance to get an update to 9.54.0 ? Or maybe a post to the freebsd-ports is needed first ? Best regards, Olivier
Sorry about the delay. Ghostscript ports are now back to the pool (ports@) and not maintained by doceng@ anymore.
Thanks the information Danilo, is it a good news for the package and us, or will it remain as is (outdated) for some time you think ? Current version in the ports (ghostscript9-agpl-base) is still 9.52 (released (2020-03-19) while latest version is 9.55 (released 2021-09-27), according to https://www.ghostscript.com/releases/index.html What would be the best way to get an actual package here ? (beside sending PR/patches) ? Thanks & best regards, Olivier
At least with the latest flyer and 9.56.1 and 10.0.0 it cannot be reproduced: ======== ldadocgen@deblndw011x1j:~ $ fetch "https://leaflets.assets.schwarz/pdfs/fadd661c-9c83-11ed-bc04-fa163e6fa430/Kaufland-02-02-2023-08-02-2023-01.pdf" Kaufland-02-02-2023-08-02-2023-01.pdf 36 MB 41 MBps 01s ldadocgen@deblndw011x1j:~ $ gs --version 9.56.1 ldadocgen@deblndw011x1j:~ $ gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4 -sOutputFile=tiger.png Kaufland-02-02-2023-08-02-2023-01.pdf GPL Ghostscript 9.56.1 (2022-04-04) Copyright (C) 2022 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Processing pages 1 through 43. Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Page 16 Page 17 Page 18 Page 19 Page 20 Page 21 Page 22 Page 23 Page 24 Page 25 Page 26 Page 27 Page 28 Page 29 Page 30 Page 31 Page 32 Page 33 Page 34 Page 35 Page 36 Page 37 Page 38 Page 39 Page 40 Page 41 Page 42 Page 43 ======== and ======== ldadocgen@deblndw013x2j:~ $ fetch "https://leaflets.assets.schwarz/pdfs/fadd661c-9c83-11ed-bc04-fa163e6fa430/Kaufland-02-02-2023-08-02-2023-01.pdf" Kaufland-02-02-2023-08-02-2023-01.pdf 36 MB 41 MBps 01s ldadocgen@deblndw013x2j:~ $ gs --version 10.00.0 ldadocgen@deblndw013x2j:~ $ gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=png16m -dGraphicsAlphaBits=4 -sOutputFile=tiger.png Kaufland-02-02-2023-08-02-2023-01.pdf GPL Ghostscript 10.0.0 (2022-09-21) Copyright (C) 2022 Artifex Software, Inc. All rights reserved. This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY: see the file COPYING for details. Processing pages 1 through 43. Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Page 16 Page 17 Page 18 Page 19 Page 20 Page 21 Page 22 Page 23 Page 24 Page 25 Page 26 Page 27 Page 28 Page 29 Page 30 Page 31 Page 32 Page 33 Page 34 Page 35 Page 36 Page 37 Page 38 Page 39 Page 40 Page 41 Page 42 Page 43 ========
Port has been removed from tree.