Re: Error compiling ghostscript10

From: Guido Falsi <mad_at_madpilot.net>
Date: Wed, 13 Mar 2024 14:35:46 UTC
On 13/03/24 15:27, Filippo Moretti wrote:
> FreeBSD ROXY 14.0-STABLE FreeBSD 14.0-STABLE #23 
> stable/14-n266950-f7d51eb77e84: Sun Mar 10 00:33:51 CET 2024     
> filippo@ROXY:/usr/obj/usr/src/amd64.amd64/sys/ROXY amd64
> 
> 
> 
> 
> 
> r/local/include -DUSE_LIBPAPER -I/usr/local/include -fno-strict-aliasing 
> -DHAVE_POPEN_PROTO=1   -DSHARE_JPX=1 -I/usr/local/include/openjpeg-2.5 
> -DUSE_OPENJPEG_JP2  -DPDF_INCLUDED -I./pdf -I./soobj -I./pcl/pl -I./base 
> -Isrc/lib -I./jpegxr -Isrc -Isrc/src/lib/openjp2 -Isrc -c 
> ./pdf/pdf_sec.c -o ./soobj/pdf_sec.o
> ./pdf/pdf_sec.c:186:25: warning: incompatible pointer types assigning to 
> 'char **' from 'char *'; take the address with & 
> [-Wincompatible-pointer-types]
>    186 |             NewPassword = Password;
>        |                         ^ ~~~~~~~~
>        |                           &
> ./pdf/pdf_sec.c:187:20: error: incompatible integer to pointer 
> conversion assigning to 'int *' from 'int'; take the address with & 
> [-Wint-conversion]
>    187 |             NewLen = Len;
>        |                    ^ ~~~
>        |                      &
> 1 warning and 1 error generated.

Hi!

Yes, this has already been reported and confirmed, it is being worked 
on, a fix should arrive soon:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277667

https://reviews.freebsd.org/D44339

-- 
Guido Falsi <mad@madpilot.net>