Opened 3 weeks ago

Last modified 3 weeks ago

#62251 new defect

beecrypt @4.2.1_5: error: implicit declaration of function 'swapu32' is invalid in C99

Reported by: cooljeanius (Eric Gallager) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: bigsur catalina Cc:
Port: beecrypt

Description

Another victim of -Werror=implicit-function-declaration being on by default now:

libtool: compile:  /usr/bin/clang -DHAVE_CONFIG_H -I. -I./include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch x86_64 -Wa,--noexecstack -c sha2k32.c  -fno-common -DPIC -o .libs/sha2k32.o
blockmode.c:162:14: error: implicit declaration of function 'swapu32' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
                                buf[i] = swapu32(fdback[j]);
                                         ^
1 error generated.
make[2]: *** [blockmode.lo] Error 1
make[2]: *** Waiting for unfinished jobs....

(...trimmed...)

make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_beecrypt/beecrypt/work/beecrypt-4.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_beecrypt/beecrypt/work/beecrypt-4.2.1'
make: *** [all] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_beecrypt/beecrypt/work/beecrypt-4.2.1'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_beecrypt/beecrypt/work/beecrypt-4.2.1" && /usr/bin/make -j16 -w all 
Exit code: 2
Error: Failed to build beecrypt: command execution failed
DEBUG: Error code: CHILDSTATUS 73840 2
DEBUG: Backtrace: command execution failed

Change History (1)

comment:1 Changed 3 weeks ago by ryandesign (Ryan Schmidt)

Keywords: bigsur catalina added
Summary: beecrypt @4.2.1_5 fails to build on Big Surbeecrypt @4.2.1_5: error: implicit declaration of function 'swapu32' is invalid in C99

This is the well-known implicit declaration of function issue with Xcode 12 and later that needs to be fixed in the usual way (include the right headers in the right places).

Note: See TracTickets for help on using tickets.