Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 935662 - net-print/gutenprint-5.3.4-r2 - [perl-5.40] [ncurses-6.5] [icu-75.1] print.c: error: passing argument 1 of gimp_image_width makes integer from pointer without a cast [-Wint-conversion]
Summary: net-print/gutenprint-5.3.4-r2 - [perl-5.40] [ncurses-6.5] [icu-75.1] print.c:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting gcc-14-stable
  Show dependency tree
 
Reported: 2024-07-06 08:11 UTC by Toralf Förster
Modified: 2024-11-14 11:37 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.35 KB, text/plain)
2024-07-06 08:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,56.72 KB, text/plain)
2024-07-06 08:11 UTC, Toralf Förster
Details
environment (environment,77.56 KB, text/plain)
2024-07-06 08:11 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-07-06 08:11 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,39.76 KB, application/x-xz)
2024-07-06 08:11 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,12.92 KB, application/x-xz)
2024-07-06 08:11 UTC, Toralf Förster
Details
net-print:gutenprint-5.3.4-r2:20240705-233733.log (net-print:gutenprint-5.3.4-r2:20240705-233733.log,154.77 KB, text/plain)
2024-07-06 08:11 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,137.60 KB, text/plain)
2024-07-06 08:11 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,21.81 KB, application/x-xz)
2024-07-06 08:11 UTC, Toralf Förster
Details
Fix the invalid int conversion error in src/gimp2/print.c (fix_invalid_int_conversion.patch,494 bytes, patch)
2024-09-17 06:06 UTC, Nuitari
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2024-07-06 08:11:21 UTC
  247 |     gimp_pixel_rgn_get_row(&(im->rgn), inter,
      |     ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/gimp-2.0/libgimp/gimppixelrgn.h:68:11: note: declared here
   68 | void      gimp_pixel_rgn_get_row    (GimpPixelRgn  *pr,
      |           ^~~~~~~~~~~~~~~~~~~~~~
print.c: In function stpui_get_thumbnail_data_function:
print.c:117:29: error: passing argument 1 of gimp_image_width makes integer from pointer without a cast [-Wint-conversion]
  117 |   gint x = gimp_image_width(image_ID);
      |                             ^~~~~~~~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop-20240703-235043

  UNMASKED:
  ~dev-libs/icu-75.1
  ~dev-libs/icu-layoutex-75.1
    Requested by sam
  >=sys-libs/ncurses-6.5
    Requested by sam
  ~dev-lang/perl-5.40.0
  ~virtual/perl-Archive-Tar-3.20.10_rc
  ~virtual/perl-CPAN-Meta-Requirements-2.143.0
  ~virtual/perl-Compress-Raw-Bzip2-2.212.0
  ~virtual/perl-DB_File-1.859.0
  ~virtual/perl-Data-Dumper-2.189.0
  ~virtual/perl-Devel-PPPort-3.720.0
  ~virtual/perl-Exporter-5.780.0
  ~virtual/perl-ExtUtils-CBuilder-0.280.240
  ~virtual/perl-ExtUtils-Manifest-1.750.0
  ~virtual/perl-File-Spec-3.900.0
  ~virtual/perl-HTTP-Tiny-0.88.0
  ~virtual/perl-IO-1.550.0
  ~virtual/perl-IO-Compress-2.212.0
  ~virtual/perl-IO-Socket-IP-0.420.0
  ~virtual/perl-IO-Zlib-1.150.0
  ~virtual/perl-Math-BigInt-2.3.2
  ~virtual/perl-Math-BigInt-FastCalc-0.501.800
  ~virtual/perl-Math-BigRat-2.3.2
  ~virtual/perl-Module-CoreList-5.202.406.90
  ~virtual/perl-Module-Metadata-1.0.38
  ~virtual/perl-Pod-Simple-3.450.0
  ~virtual/perl-Safe-2.460.0
  ~virtual/perl-Socket-2.38.0
  ~virtual/perl-Test-Harness-3.480.0
  ~virtual/perl-Test-Simple-1.302.199
  ~virtual/perl-Text-Tabs+Wrap-2024.1.0
  ~virtual/perl-Time-HiRes-1.977.700
  ~virtual/perl-Time-Local-1.350.0
  ~virtual/perl-autodie-2.370.0
  ~virtual/perl-bignum-0.670.0
  ~virtual/perl-podlators-5.10.200_rc
  ~virtual/perl-threads-2.400.0
  ~virtual/perl-threads-shared-1.690.0
  ~virtual/perl-version-0.993.0
    Requested by dilfridge and sam

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.8
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.8
Python 3.12.4
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems)
  [3]   ruby33 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.79.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 21.0.3_p9 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-21  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.5 linux/amd64

  HEAD of ::gentoo
commit 34b6a23fbcf69dfb13b09928d8b84692deacf647
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Jul 5 22:03:59 2024 +0000

    2024-07-05 22:03:59 UTC

emerge -qpvO net-print/gutenprint
[ebuild  N    ] net-print/gutenprint-5.3.4-r2  USE="cups gimp gtk nls ppds readline -static-libs"
Comment 1 Toralf Förster gentoo-dev 2024-07-06 08:11:22 UTC
Created attachment 897183 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-07-06 08:11:23 UTC
Created attachment 897184 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-07-06 08:11:24 UTC
Created attachment 897185 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-07-06 08:11:25 UTC
Created attachment 897186 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-07-06 08:11:26 UTC
Created attachment 897187 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-07-06 08:11:27 UTC
Created attachment 897188 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-07-06 08:11:28 UTC
Created attachment 897189 [details]
net-print:gutenprint-5.3.4-r2:20240705-233733.log
Comment 8 Toralf Förster gentoo-dev 2024-07-06 08:11:30 UTC
Created attachment 897190 [details]
qlist-info.txt
Comment 9 Toralf Förster gentoo-dev 2024-07-06 08:11:31 UTC
Created attachment 897191 [details]
temp.tar.xz
Comment 10 Nuitari 2024-09-17 06:06:36 UTC
Created attachment 903174 [details, diff]
Fix the invalid int conversion error in src/gimp2/print.c

Signed-off-by: Stephane Bakhos <nuitari@nuitari.net>
Comment 11 Larry the Git Cow gentoo-dev 2024-11-14 11:37:17 UTC
The bug has been closed via the following commit(s):

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

commit 7363e212718580aa76308ea6b00a5a0c60f09142
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2024-11-14 11:33:46 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2024-11-14 11:37:06 +0000

    net-print/gutenprint: fix for modern C
    
    Patch by Nuitari <nuitari@nuitari.net>
    
    Closes: https://bugs.gentoo.org/935662
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../gutenprint/files/gutenprint-5.3.4-invalidint.patch      | 13 +++++++++++++
 net-print/gutenprint/gutenprint-5.3.4-r2.ebuild             |  5 ++++-
 2 files changed, 17 insertions(+), 1 deletion(-)