You are not logged in.

#1 2024-08-06 14:09:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

[Solved] cnrdrvcups-lb error: integer from pointer without a cast

My aur package https://aur.archlinux.org/packages?O=0&K=cnrdrvcups-lb has a build issue that went unnoticed until recently because the generated script make.Arch didn't cause abortion of the build.

I have added sed -i '1iset -e o pipefail' make.Arch to ensure it does pass on the error and am now trying to solve it.


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 *
execjob.c:431:53: note: expected 'int' but argument is of type 'char *'
  431 | int add_param_int(char **ptr_param, char *name, int value)

build log http://0x0.st/XVMB.txt

The file with the error is located at src/extracted-cnrdrvcups-lb-5.90/cnrdrvcups-lb-5.90/cngplp/cngplpmod/execjob.c and uploaded to http://0x0.st/XVMQ.c

I could try to disable the error, but am not sure how serious it is (and would prefer to solve it)  .
Comments ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#2 2024-08-06 14:45:12

loqs
Member
Registered: 2014-03-06
Posts: 18,730

Re: [Solved] cnrdrvcups-lb error: integer from pointer without a cast

Have you tried replacing add_param_int with add_param_char?

Offline

#3 2024-08-06 16:50:18

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: [Solved] cnrdrvcups-lb error: integer from pointer without a cast

Took some time to understand what you meant, but after checking the sourcecode I realised add_param_int and add_param_char have the same purpose for different input types.

I patched the sourcecode and uploaded new version to AUR.
Thank you for the hint.

I'll wait a while for user reports before declaring this solved.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

#4 2024-08-14 09:49:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,574

Re: [Solved] cnrdrvcups-lb error: integer from pointer without a cast

No user reports, declaring this solved.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Online

Board footer

Powered by FluxBB