[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1115696: hplip: FTBFS: scan/sane/bb_ledm.c:842:5: error: conflicting types for 'bb_is_paper_in_adf'; have 'int(struct ledm_session *)'



Source: hplip
Version: 3.22.10+dfsg0-8.1
Severity: serious
Justification: FTBFS
Tags: forky sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20250918 ftbfs-forky

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

The full build log is available from:
http://qa-logs.debian.net/2025/09/18/hplip_3.22.10+dfsg0-8.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20250918;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20250918&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

-- 
Relevant part of the build log (hopefully):
> /bin/bash ./libtool  --tag=CC   --mode=compile gcc -DPACKAGE_NAME=\"HP\ Linux\ Imaging\ and\ Printing\" -DPACKAGE_TARNAME=\"hplip\" -DPACKAGE_VERSION=\"3.22.10\" -DPACKAGE_STRING=\"HP\ Linux\ Imaging\ and\ Printing\ 3.22.10\" -DPACKAGE_BUGREPORT=\"3.22.10\" -DPACKAGE_URL=\"\" -DPACKAGE=\"hplip\" -DVERSION=\"3.22.10\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_LIBDL=1 -DHAVE_PTHREAD_H=1 -DHAVE_JPEGLIB_H=1 -DHAVE_UINT32_T=1 -DHAVE_LIBHPIP=1 -DHAVE_LIBHPIP=1 -DDISABLE_IMAGEPROCESSOR=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBNETSNMP=1 -DHAVE_NET_SNMP_NET_SNMP_CONFIG_H=1 -DHAVE_LIBAVAHI=1 -DHAVE_LIBAVAHI_CLIENT=1 -DHAVE_LIBAVAHI_COMMON=1 -DHAVE_AVAHI_CLIENT_CLIENT_H=1 -DHAVE_AVAHI_COMMON_MALLOC_H=1 -DHAVE_CUPS_CUPS_H=1 -DHAVE_CUPS_PPD_H=1 -DHAVE_LIBUSB_1_0_LIBUSB_H=1 -DHAVE_PYTHON_H=1 -DHAVE_DBUS=1 -I. -Iip -Iio/hpmud -Iscan/sane -Iprnt/hpijs -Icommon/ -Iprotocol  -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include  -Iprotocol -Iprotocol/discovery -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/hplip-3.22.10+dfsg0=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I/usr/include/python3.13 -I/usr/include/python3.13 -DCONFDIR=\"/etc/hp\" -c -o libsane_hpaio_la-sclpml.lo `test -f 'scan/sane/sclpml.c' || echo './'`scan/sane/sclpml.c
> In file included from scan/sane/bb_ledm.c:23:
> scan/sane/common.h:191:1: warning: 'visibility' attribute ignored on non-class types [-Wattributes]
>   191 | char* __attribute__ ((visibility ("hidden"))) itoa(int value, char* str, int radix);
>       | ^~~~
> scan/sane/bb_ledm.c: In function 'cancel_job':
> scan/sane/bb_ledm.c:207:29: warning: format '%d' expects argument of type 'int', but argument 6 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
>   207 | # define CANCEL_JOB_REQUEST "PUT %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: hplip\r\n\
>       |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   208 | Accept: text/plain\r\nAccept-Language: en-us,en\r\nAccept-Charset:utf-8\r\nKeep-Alive: 10\r\n\
>       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   209 | Content-Type: text/xml\r\nProxy-Connection: Keep-alive\r\nX-Requested-With: XMLHttpRequest\r\nReferer: localhost\r\n\
>       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   210 | Content-Length: %d\r\nCookie: AccessCounter=new\r\n\r\n"
>       | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> scan/sane/bb_ledm.c:620:36: note: in expansion of macro 'CANCEL_JOB_REQUEST'
>   620 |   len = snprintf(buf, sizeof(buf), CANCEL_JOB_REQUEST, ps->url, ps->ip, strlen(CANCEL_JOB_DATA));
>       |                                    ^~~~~~~~~~~~~~~~~~
> scan/sane/bb_ledm.c: At top level:
> scan/sane/bb_ledm.c:842:5: error: conflicting types for 'bb_is_paper_in_adf'; have 'int(struct ledm_session *)'
>   842 | int bb_is_paper_in_adf(struct ledm_session *ps) /* 0 = no paper in adf, 1 = paper in adf, -1 = error */
>       |     ^~~~~~~~~~~~~~~~~~
> In file included from scan/sane/bb_ledm.c:25:
> scan/sane/ledmi.h:165:5: note: previous declaration of 'bb_is_paper_in_adf' with type 'int(void)'
>   165 | int bb_is_paper_in_adf();         /* 0 = no paper in adf, 1 = paper in adf, -1 = error */
>       |     ^~~~~~~~~~~~~~~~~~
> In file included from scan/sane/ledm.c:38:
> scan/sane/common.h:191:1: warning: 'visibility' attribute ignored on non-class types [-Wattributes]
>   191 | char* __attribute__ ((visibility ("hidden"))) itoa(int value, char* str, int radix);
>       | ^~~~
> make[2]: *** [Makefile:6121: libsane_hpaio_la-bb_ledm.lo] Error 1


Reply to: