os icon indicating copy to clipboard operation
os copied to clipboard

w3m fails to build from source with GCC 15 on amd64

Open sergiodj opened this issue 7 months ago • 1 comments

The package w3m with version 0.5.3.20230121-r1 fails to build from source with GCC 15 on amd64 with the following error:

2025/05/31 00:58:11 WARN  1811 |     mySignal(SIGINT, prevtrap);
2025/05/31 00:58:11 WARN       |                      ^~~~~~~~
2025/05/31 00:58:11 WARN       |                      |
2025/05/31 00:58:11 WARN       |                      MySignalHandler (*)(void) {aka void (*)(void)}
2025/05/31 00:58:11 WARN In file included from fm.h:1279,
2025/05/31 00:58:11 WARN                  from main.c:3:
2025/05/31 00:58:11 WARN proto.h:678:50: note: expected 'void (*)(int)' but argument is of type 'MySignalHandler (*)(void)' {aka 'void (*)(void)'}
2025/05/31 00:58:11 WARN   678 | extern void (*mySignal(int signal_number, void (*action) (int))) (int);
2025/05/31 00:58:11 WARN       |                                           ~~~~~~~^~~~~~~~~~~~~
2025/05/31 00:58:11 WARN main.c: In function 'readsh':
2025/05/31 00:58:11 WARN main.c:2212:14: error: assignment to 'MySignalHandler (*)(void)' {aka 'void (*)(void)'} from incompatible pointer type 'void (*)(int)' [-Wincompatible-pointer-types]
2025/05/31 00:58:11 WARN  2212 |     prevtrap = mySignal(SIGINT, intTrap);
2025/05/31 00:58:11 WARN       |              ^
2025/05/31 00:58:11 WARN main.c:2215:22: error: passing argument 2 of 'mySignal' from incompatible pointer type [-Wincompatible-pointer-types]
2025/05/31 00:58:11 WARN  2215 |     mySignal(SIGINT, prevtrap);
2025/05/31 00:58:11 WARN       |                      ^~~~~~~~
2025/05/31 00:58:11 WARN       |                      |
2025/05/31 00:58:11 WARN       |                      MySignalHandler (*)(void) {aka void (*)(void)}
2025/05/31 00:58:11 WARN proto.h:678:50: note: expected 'void (*)(int)' but argument is of type 'MySignalHandler (*)(void)' {aka 'void (*)(void)'}
2025/05/31 00:58:11 WARN   678 | extern void (*mySignal(int signal_number, void (*action) (int))) (int);
2025/05/31 00:58:11 WARN       |                                           ~~~~~~~^~~~~~~~~~~~~
2025/05/31 00:58:11 WARN file.c: In function 'AuthDigestCred':
2025/05/31 00:58:11 WARN file.c:1260:5: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1260 |     MD5(cnonce_seed.s, sizeof(cnonce_seed.s), md5);
2025/05/31 00:58:11 WARN       |     ^~~
2025/05/31 00:58:11 WARN In file included from file.c:1189:
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1296:5: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1296 |     MD5((unsigned char *)tmp->ptr, strlen(tmp->ptr), md5);
2025/05/31 00:58:11 WARN       |     ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1309:13: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1309 |             MD5((unsigned char *)tmp->ptr, strlen(tmp->ptr), md5);
2025/05/31 00:58:11 WARN       |             ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1331:21: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1331 |                     MD5((unsigned char *)ebody->ptr, strlen(ebody->ptr), md5);
2025/05/31 00:58:11 WARN       |                     ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1334:21: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1334 |                     MD5((unsigned char *)"", 0, md5);
2025/05/31 00:58:11 WARN       |                     ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1338:17: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1338 |                 MD5((unsigned char *)request->body, request->length, md5);
2025/05/31 00:58:11 WARN       |                 ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1342:13: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1342 |             MD5((unsigned char *)"", 0, md5);
2025/05/31 00:58:11 WARN       |             ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1347:5: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1347 |     MD5((unsigned char *)tmp->ptr, strlen(tmp->ptr), md5);
2025/05/31 00:58:11 WARN       |     ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1365:9: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1365 |         MD5((unsigned char *)tmp->ptr, strlen(tmp->ptr), md5);
2025/05/31 00:58:11 WARN       |         ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN file.c:1375:9: warning: 'MD5' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2025/05/31 00:58:11 WARN  1375 |         MD5((unsigned char *)tmp->ptr, strlen(tmp->ptr), md5);
2025/05/31 00:58:11 WARN       |         ^~~
2025/05/31 00:58:11 WARN /usr/include/openssl/md5.h:52:38: note: declared here
2025/05/31 00:58:11 WARN    52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
2025/05/31 00:58:11 WARN       |                                      ^~~
2025/05/31 00:58:11 WARN make: *** [<builtin>: main.o] Error 1
2025/05/31 00:58:11 WARN file.c: In function '_doFileCopy':
2025/05/31 00:58:11 WARN file.c:8452:9: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result]
2025/05/31 00:58:11 WARN  8452 |         symlink(p, lock);
2025/05/31 00:58:11 WARN       |         ^~~~~~~~~~~~~~~~
2025/05/31 00:58:11 WARN file.c: In function 'doFileSave':
2025/05/31 00:58:11 WARN file.c:8561:9: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result]
2025/05/31 00:58:11 WARN  8561 |         symlink(p, lock);
2025/05/31 00:58:11 WARN       |         ^~~~~~~~~~~~~~~~
2025/05/31 00:58:11 INFO make[1]: Leaving directory '/home/build/libwc'
2025/05/31 00:58:11 WARN make: *** [Makefile:198: libwc] Error 2
2025/05/31 00:58:16 INFO make: Leaving directory '/home/build'
2025/05/31 00:58:16 ERRO failed to build package: unable to run package w3m pipeline: unable to run pipeline: unable to run pipeline: exit status 2
make[1]: *** [Makefile:157: packages/x86_64/w3m-0.5.3.20230121-r1.apk] Error 1
make[1]: Leaving directory '/home/sergio_durigan_chainguard_dev/os'
make: *** [Makefile:151: package/w3m] Error 2

sergiodj avatar May 31 '25 04:05 sergiodj

https://github.com/tats/w3m/issues/308

There's a fork that we might want to look at:

https://git.sr.ht/~rkta/w3m/commit/a7287bd7568fd627f2c6e6f86bc136bf0f76d210

sergiodj avatar Aug 28 '25 23:08 sergiodj