Bug#1138302: kannel: FTBFS with openssl 4.0

Sebastian Andrzej Siewior sebastian at breakpoint.cc
Sat May 30 16:49:43 BST 2026


Package: kannel
Version: 1.4.5-22
Severity: normal
Tags: sid
control: affects -1 src:openssl
User: pkg-openssl-devel at lists.alioth.debian.org
Usertags: openssl-4.0

OpenSSL 4.0 is in experimental. This package fails to build against it:

| gcc -Wdate-time -D_FORTIFY_SOURCE=2 -D_REENTRANT=1 -I. -Igw -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/kannel-1.4.5=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_LARGE_FILES= -DBROKEN_PTHREADS=1 -I/usr/include/libxml2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wformat -Wformat-security -Wmissing-format-attribute -I/usr/include -I/usr/include/mariadb/ -I/usr/include/postgresql -I/usr/include/hiredis -I/usr/include -o gwlib/conn.o -c gwlib/conn.c
| gwlib/conn.c: In function ‘unlocked_read’:
| gwlib/conn.c:350:41: warning: pointer targets in passing argument 2 of ‘octstr_append_data’ differ in signedness [-Wpointer-sign]
|   350 |         octstr_append_data(conn->inbuf, buf, len);
|       |                                         ^~~
|       |                                         |
|       |                                         unsigned char *
| In file included from ./gwlib/utils.h:68,
|                  from ./gwlib/gwlib.h:79,
|                  from gwlib/conn.c:82:
| ./gwlib/octstr.h:460:51: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
|   460 | void octstr_append_data(Octstr *ostr, const char *data, long len);
|       |                                       ~~~~~~~~~~~~^~~~
| gwlib/conn.c: In function ‘conn_write_data’:
| gwlib/conn.c:1062:38: warning: pointer targets in passing argument 2 of ‘octstr_append_data’ differ in signedness [-Wpointer-sign]
|  1062 |     octstr_append_data(conn->outbuf, data, length);
|       |                                      ^~~~
|       |                                      |
|       |                                      unsigned char *
| ./gwlib/octstr.h:460:51: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
|   460 | void octstr_append_data(Octstr *ostr, const char *data, long len);
|       |                                       ~~~~~~~~~~~~^~~~
| gwlib/conn.c: In function ‘conn_write_withlen’:
| gwlib/conn.c:1076:38: warning: pointer targets in passing argument 2 of ‘octstr_append_data’ differ in signedness [-Wpointer-sign]
|  1076 |     octstr_append_data(conn->outbuf, lengthbuf, 4);
|       |                                      ^~~~~~~~~
|       |                                      |
|       |                                      unsigned char *
| ./gwlib/octstr.h:460:51: note: expected ‘const char *’ but argument is of type ‘unsigned char *’
|   460 | void octstr_append_data(Octstr *ostr, const char *data, long len);
|       |                                       ~~~~~~~~~~~~^~~~
| gwlib/conn.c: In function ‘conn_read_withlen’:
| gwlib/conn.c:1182:35: warning: pointer targets in passing argument 1 of ‘octstr_get_many_chars’ differ in signedness [-Wpointer-sign]
|  1182 |             octstr_get_many_chars(lengthbuf, conn->inbuf, conn->inbufpos, 4);
|       |                                   ^~~~~~~~~
|       |                                   |
|       |                                   unsigned char *
| ./gwlib/octstr.h:217:34: note: expected ‘char *’ but argument is of type ‘unsigned char *’
|   217 | void octstr_get_many_chars(char *buf, Octstr *ostr, long pos, long len);
|       |                            ~~~~~~^~~
| gwlib/conn.c: In function ‘conn_shutdown_ssl’:
| gwlib/conn.c:1359:5: error: implicit declaration of function ‘ERR_remove_state’ [-Wimplicit-function-declaration]
|  1359 |     ERR_remove_state(0);
|       |     ^~~~~~~~~~~~~~~~
| gwlib/conn.c:1359:5: warning: nested extern declaration of ‘ERR_remove_state’ [-Wnested-externs]
| make[2]: *** [Makefile:226: gwlib/conn.o] Error 1

Full buildlog
 	https://breakpoint.cc/openssl-rebuild/logs-4/attempted/kannel_1.4.5-22_amd64-2026-04-19T10:38:31Z

Sebastian



More information about the Pkg-voip-maintainers mailing list