Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944806 - =net-print/cnrdrvcups-lb-5.80: Build failed with error: passing argument 3 of 'add_param_int' makes integer from pointer without a cast
Summary: =net-print/cnrdrvcups-lb-5.80: Build failed with error: passing argument 3 of...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-24 11:51 UTC by Daniel
Modified: 2025-04-02 04:25 UTC (History)
2 users (show)

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


Attachments
patch for fixing the compile error on amd64 (replace_incorrect_int_with_char.patch,770 bytes, patch)
2025-01-14 14:54 UTC, melser_regs@gmxpro.net
Details | Diff
modified ebuild to run patch (cnrdrvcups-lb-5.80-r1.ebuild,6.18 KB, text/plain)
2025-01-14 14:55 UTC, melser_regs@gmxpro.net
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2024-11-24 11:51:34 UTC
The build failed with these error:

execjob.c:1164:108: error: passing argument 3 of 'add_param_int' makes integer from pointer without a cast [-Wint-conversion]
 1164 |                                 num = add_param_int(ptr_param, kPPD_Items_CNJobResultNoticeAddress, ppd_opt->job_result_notice_address);
      |                                                                                                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                                                                            |
      |                                                                                                            char *

On AUR is an patch for this:
https://aur.archlinux.org/cgit/aur.git/tree/replace_incorrect_int_with_char.patch?h=cnrdrvcups-lb
Comment 1 melser_regs@gmxpro.net 2025-01-14 14:54:38 UTC
Created attachment 916518 [details, diff]
patch for fixing the compile error on amd64
Comment 2 melser_regs@gmxpro.net 2025-01-14 14:55:47 UTC
Created attachment 916519 [details]
modified ebuild to run patch

this modified ebuild runs the patch which needs to be put in the files/ directory, best is to run with a local overlay but you can also hack in your portage repo
Comment 3 Simon 2025-04-02 04:25:46 UTC
I put the patch in:
/etc/portage/patches/net-print/cnrdrvcups-lb/
Fixed the compilation for me.

And afterwards I had to fix two symlinks:
ln -snf /usr/lib/cups/filter/pdftocpca /usr/libexec/cups/filter/pdftocpca
ln -snf /usr/lib/cups/filter/rastertoufr2 /usr/libexec/cups/filter/rastertoufr2