AmigaOS : curl_setup avoid explicit_bzero with clib2#21989
Conversation
|
Thanks! It still hurts we were forced to drop the Amiga jobs from CI, |
Bebbo moved the Amiga GCC Toolchain off github over to cordberg - https://codeberg.org/bebbo/amiga-gcc There is also a fork of the prior git hub - before removal here - https://github.com/AmigaPorts/m68k-amigaos-gcc |
|
Is there perhaps a place where the pre-built Linux binary package is available? (using the Windows toolchain would be an alternative in theory, but last |
I've had a look around and it seems that bebbo is also hosting that pre-built file here it seems to be GCC 6.5.0 - which maybe your CI was working off before. If that's not helpful I can send a message to Bebbo to see if I can host the pre-built based off the newer GCC. |
|
Lovely, I see if I can fire up the CI job again. And possibly add caching to GCC 6.5.0 is fine, the job doubling as tests for an older GCC version is useful. |
|
AmigaOS is in CI again, yay!: #21993 |
|
Excellent work @vszakats ! - glad I could help. |
Fix build issues: - src: adjust `toolx_ftruncate()`. - libtests/cli_ftp_upload: make `struct timeval` initialization portable. - libtests/lib1960: do unconst in local `inet_pton()` macro. - tests/server/dnsd: make it stub instead of failing the build. - tests/server: make them link AmiSSL for `SocketBase`. Also: - bump AmiSSL to the latest release. - add download hash checks and toolchain cache. - sync restored code with local updates made since last year. It takes 30 seconds per job, 1 minute in total. Thanks-to: Bebbo Thanks-to: Darren Banfi Ref: #21989 (comment) Follow-up to 7a14898 #17486 Closes #21993
clib2 defines NEWLIB after its system headers are included, but it does not provide explicit_bzero().
curl therefore selects the explicit_bzero() path and fails to build with m68k-amigaos-gcc:
Excluding CLIB2 from the generic NEWLIB branch makes curl use its existing portable curlx_memzero() fallback.
The full AmigaOS build then completes successfully.
I've tested the following on Amiga OS 3.2.3 with this patch and latest build.
Follow-up to 066478f #21598