chmlib: FTBFS: chm_http.c:167:32: error: implicit declaration of function ‘inet_addr’ [-Werror=implicit-function-declaration]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chmlib (Debian) |
New
|
Unknown
|
|||
chmlib (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Imported from Debian bug http://
Source: chmlib
Version: 2:0.40a-8
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: <email address hidden>
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=
https:/
Relevant part (hopefully):
> x86_64-
> chm_http.c: In function ‘chmhttp_server’:
> chm_http.c:167:32: error: implicit declaration of function ‘inet_addr’ [-Werror=
> 167 | bindAddr.
> | ^~~~~~~~~
> chm_http.c:179:9: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Werror=
> 179 | close(server.
> | ^~~~~
> | pclose
> chm_http.c:192:73: warning: pointer targets in passing argument 3 of ‘accept’ differ in signedness [-Wpointer-sign]
> 192 | slave->fd = accept(
> | ^~~~~~~~
> | |
> | int *
> In file included from chm_http.c:43:
> /usr/include/
> 307 | socklen_t *__restrict __addr_len);
> | ~~~~~~~
> chm_http.c: In function ‘service_request’:
> chm_http.c:343:9: error: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Werror=
> 343 | write(fd, INTERNAL_ERROR, strlen(
> | ^~~~~
> | fwrite
> chm_http.c:348:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_
> 348 | fgets(buffer, 4096, fout);
> | ^~~~~~~
> mv -f .deps/enum_
> libtool: compile: x86_64-
> mv -f .deps/enumdir_
> mv -f .deps/test_
> libtool: compile: x86_64-
> mv -f .deps/extract_
> cc1: some warnings being treated as errors
> make[2]: *** [Makefile:543: chm_http.o] Error 1
The full build log is available from:
http://
All bugs filed during this archive rebuild are listed at:
https:/
or:
https:/
A list of current common problems and possible solutions is available at
http://
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https:/
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.
Related branches
- Dave Jones (community): Approve
-
Diff: 87 lines (+55/-1)4 files modifieddebian/changelog (+13/-0)
debian/control (+2/-1)
debian/patches/implicit-declarations.patch (+39/-0)
debian/patches/series (+1/-0)
Changed in chmlib (Debian): | |
importance: | Undecided → Unknown |
The branch in the linked merge proposal is for noble, but the issue is still present in the oracular package (by the looks of the version numbers it's presumably present in at least noble, mantic and possibly earlier too).
I've sponsored this for oracular for now; if that lands successfully (I can't currently test locally due to armhf issues on the Pi images), this should probably be converted to an SRU bug for the affected series.