Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922448 - app-text/ghostscript-gpl-10.02.1 - ./devices/gdevxini.c:626:69: error: passing argument 4 of 'gdev_mem_data_size' from incompatible pointer type [-Wincompatible-pointer-types]
Summary: app-text/ghostscript-gpl-10.02.1 - ./devices/gdevxini.c:626:69: error: passin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-01-18 23:22 UTC by ernsteiswuerfel
Modified: 2024-01-19 10:47 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (10.02.1, ppc) (ghostscript-gpl-10.02.1:20240118-231208.log,167.96 KB, text/plain)
2024-01-18 23:22 UTC, ernsteiswuerfel
Details
emerge --info (file_922448.txt,5.64 KB, text/plain)
2024-01-18 23:23 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2024-01-18 23:22:18 UTC
Created attachment 882581 [details]
build.log (10.02.1, ppc)

Getting this on ppc with GCC 14:

[...]
powerpc-unknown-linux-gnu-gcc  -DHAVE_MKSTEMP -DHAVE_FILE64 -DHAVE_FSEEKO -DHAVE_MKSTEMP64 -DHAVE_FONTCONFIG -DHAVE_LIBIDN -DHAVE_SETLOCALE   -DHAVE_BSWAP32 -DHAVE_BYTESWAP_H -DHAVE_STRERROR -DHAVE_ISNAN -DHAVE_ISINF  -DHAVE_PREAD_PWRITE=1 -DGS_RECURSIVE_MUTEXATTR=PTHREAD_MUTEX_RECURSIVE -O2 -DNDEBUG -fPIC  -fvisibility=hidden -DGSDLLEXPORT="__attribute__((visibility(\"default\")))" -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  -DBUILD_PDF=1 -I./pdf -O2 -mcpu=7450 -mtune=7450 -pipe -DHAVE_RESTRICT=1  -DUSE_LIBPAPER  -fno-strict-aliasing -DHAVE_POPEN_PROTO=1   -fPIC  -fvisibility=hidden -DGSDLLEXPORT="__attribute__((visibility(\"default\")))" -I./soobj -I./base -I./devices  -DWHICH_CMS="lcms2"  -o ./soobj/gdevxini.o -c ./devices/gdevxini.c
./devices/gdevxini.c: In function 'x_set_buffer':
./devices/gdevxini.c:626:69: error: passing argument 4 of 'gdev_mem_data_size' from incompatible pointer type [-Wincompatible-pointer-types]
  626 |             if (gdev_mem_data_size(mdev, xdev->width, xdev->height, &space) < 0 ||
      |                                                                     ^~~~~~
      |                                                                     |
      |                                                                     ulong * {aka long unsigned int *}
In file included from ./devices/gdevxini.c:23:
./base/gxdevmem.h:192:46: note: expected 'size_t *' {aka 'unsigned int *'} but argument is of type 'ulong *' {aka 'long unsigned int *'}
  192 |                          int height, size_t *size);
      |                                      ~~~~~~~~^~~~
make[2]: *** [devices/devs.mak:338: soobj/gdevxini.o] Error 1
make[2]: Leaving directory '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1'
make[1]: *** [base/unix-dll.mak:321: so-only-subtarget] Error 2
make[1]: Leaving directory '/var/tmp/portage/app-text/ghostscript-gpl-10.02.1/work/ghostscript-10.02.1'
make: *** [base/unix-dll.mak:281: so] Error 2
 * ERROR: app-text/ghostscript-gpl-10.02.1::gentoo failed (compile phase):
 *   emake failed
Comment 1 ernsteiswuerfel archtester 2024-01-18 23:23:02 UTC
Created attachment 882582 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-19 05:02:17 UTC
Thanks! Reported upstream at https://bugs.ghostscript.com/show_bug.cgi?id=707502.
Comment 4 ernsteiswuerfel archtester 2024-01-19 10:42:13 UTC
Thanks Sam! I can confirm the patch you linked applies and fixes the build issue.
Comment 5 Larry the Git Cow gentoo-dev 2024-01-19 10:47:50 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f63293f0b9f2a9d167ad811188daab93f9295c48

commit f63293f0b9f2a9d167ad811188daab93f9295c48
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-01-19 10:46:40 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-01-19 10:46:40 +0000

    app-text/ghostscript-gpl: another modern C fix
    
    Closes: https://bugs.gentoo.org/922448
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/ghostscript-gpl-10.02.1-c99-2.patch      |  53 ++++++
 .../ghostscript-gpl-10.02.1-r1.ebuild              | 199 +++++++++++++++++++++
 2 files changed, 252 insertions(+)
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-19 10:47:54 UTC
(In reply to ernsteiswuerfel from comment #4)
> Thanks Sam! I can confirm the patch you linked applies and fixes the build
> issue.

Thanks! Please keep an eye out for these *especially* on ppc32 as I expect us to see a bunch of 32-bit specific stuff.