Opened 4 years ago

Closed 4 years ago

#62251 closed defect (fixed)

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

Reported by: cooljeanius (Eric Gallager) Owned by: ryandesign (Ryan Carsten Schmidt)
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 (2)

comment:1 Changed 4 years ago by ryandesign (Ryan Carsten 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).

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: set to ryandesign
Resolution: fixed
Status: newclosed

In 5b779154cc9c4d691441b73a3b78786266852091/macports-ports (master):

beecrypt: Fix implicit declaration of functions

Closes: #62251

Note: See TracTickets for help on using tickets.