[MacPorts] #70390: openiked build failure: error: variable 'pol' has initializer but incomplete type; error: 'SADB_UPDATE' undeclared
MacPorts
noreply at macports.org
Wed Jul 17 14:10:22 UTC 2024
#70390: openiked build failure: error: variable 'pol' has initializer but
incomplete type; error: 'SADB_UPDATE' undeclared
--------------------------+----------------------
Reporter: barracuda156 | Owner: ryanakca
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: | Port: openiked
--------------------------+----------------------
Without `legacysupport` the build fails quickly on:
{{{
In file included from
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/compat/arc4random.c:68:
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/compat/arc4random.h:28:10: fatal error:
arc4random_osx.h: No such file or directory
28 | #include "arc4random_osx.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [compat/CMakeFiles/compat.dir/arc4random.c.o] Error 1
}}}
With `legacysupport` added, it proceeds further, but fails here:
{{{
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c: In function 'socket_bypass':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:174:16: error: variable 'pol' has
initializer but incomplete type
174 | struct sadb_x_policy pol = {
| ^~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: error: 'SADB_UPDATE' undeclared
(first use in this function)
175 | SADB_UPDATE,
| ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: note: each undeclared
identifier is reported only once for each function it appears in
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: warning: excess elements in
struct initializer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: note: (near initialization for
'pol')
[ 50%] Building C object iked/CMakeFiles/iked-shared.dir/util.c.o
cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build/iked
&& /opt/local/bin/gcc-mp-14 -DHAVE_APPLE_NATT -DHAVE_ARC4RANDOM_BUF
-DHAVE_ARC4RANDOM_UNIFORM -DHAVE_ASPRINTF -DHAVE_DIRENT_H -DHAVE_ERR_H
-DHAVE_FFS -DHAVE_GETENTROPY -DHAVE_GETOPT -DHAVE_GETPAGESIZE
-DHAVE_GETPROGNAME -DHAVE_GRP_H -DHAVE_MEMMEM -DHAVE_NET_PFKEY_H
-DHAVE_SETREGID -DHAVE_SETREUID -DHAVE_SOCKADDR_SA_LEN -DHAVE_STRCASECMP
-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRNDUP -DHAVE_STRNLEN -DHAVE_STRSEP
-DHAVE_SYSLOG -DHAVE_TIMEGM -DHAVE_UNISTD_H -DHAVE_USLEEP -DHAVE_VIS
-DHAVE_VROUTE -DIKED_CA=\"/opt/local/etc/iked/\"
-DIKED_CONFIG=\"/opt/local/etc/iked.conf\" -I/opt/local/include
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/../iked
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/compat/. -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-I/opt/local/libexec/openssl3/include
-isystem/opt/local/include/LegacySupport -isystem/opt/local/include -arch
ppc -mmacosx-version-min=10.6 -O2 -fstack-protector-strong -fPIE
-D_FORTIFY_SOURCE=2 -Wall -Wno-pointer-sign -Wno-deprecated-declarations
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow
-Wpointer-arith -Wcast-qual -Wsign-compare -MD -MT iked/CMakeFiles/iked-
shared.dir/util.c.o -MF CMakeFiles/iked-shared.dir/util.c.o.d -o
CMakeFiles/iked-shared.dir/util.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:176:21: error: 'SADB_EXT_SENSITIVITY'
undeclared (first use in this function)
176 | SADB_EXT_SENSITIVITY,
| ^~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:176:21: warning: excess elements in
struct initializer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:176:21: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:177:21: error: 'IPSEC_POLICY_BYPASS'
undeclared (first use in this function)
177 | IPSEC_POLICY_BYPASS,
| ^~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:177:21: warning: excess elements in
struct initializer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:177:21: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:21: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:21: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:24: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:24: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:27: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:27: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:30: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:30: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:174:30: error: storage size of 'pol'
isn't known
174 | struct sadb_x_policy pol = {
| ^~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:193:33: error: 'IPSEC_DIR_INBOUND'
undeclared (first use in this function)
193 | pol.sadb_x_policy_dir = IPSEC_DIR_INBOUND;
| ^~~~~~~~~~~~~~~~~
[ 52%] Building C object iked/CMakeFiles/iked-shared.dir/ikev2_map.c.o
cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build/iked
&& /opt/local/bin/gcc-mp-14 -DHAVE_APPLE_NATT -DHAVE_ARC4RANDOM_BUF
-DHAVE_ARC4RANDOM_UNIFORM -DHAVE_ASPRINTF -DHAVE_DIRENT_H -DHAVE_ERR_H
-DHAVE_FFS -DHAVE_GETENTROPY -DHAVE_GETOPT -DHAVE_GETPAGESIZE
-DHAVE_GETPROGNAME -DHAVE_GRP_H -DHAVE_MEMMEM -DHAVE_NET_PFKEY_H
-DHAVE_SETREGID -DHAVE_SETREUID -DHAVE_SOCKADDR_SA_LEN -DHAVE_STRCASECMP
-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRNDUP -DHAVE_STRNLEN -DHAVE_STRSEP
-DHAVE_SYSLOG -DHAVE_TIMEGM -DHAVE_UNISTD_H -DHAVE_USLEEP -DHAVE_VIS
-DHAVE_VROUTE -DIKED_CA=\"/opt/local/etc/iked/\"
-DIKED_CONFIG=\"/opt/local/etc/iked.conf\" -I/opt/local/include
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/../iked
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/compat/. -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-I/opt/local/libexec/openssl3/include
-isystem/opt/local/include/LegacySupport -isystem/opt/local/include -arch
ppc -mmacosx-version-min=10.6 -O2 -fstack-protector-strong -fPIE
-D_FORTIFY_SOURCE=2 -Wall -Wno-pointer-sign -Wno-deprecated-declarations
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow
-Wpointer-arith -Wcast-qual -Wsign-compare -MD -MT iked/CMakeFiles/iked-
shared.dir/ikev2_map.c.o -MF CMakeFiles/iked-shared.dir/ikev2_map.c.o.d -o
CMakeFiles/iked-shared.dir/ikev2_map.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build/iked/ikev2_map.c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:198:33: error: 'IPSEC_DIR_OUTBOUND'
undeclared (first use in this function)
198 | pol.sadb_x_policy_dir = IPSEC_DIR_OUTBOUND;
| ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:174:30: warning: unused variable 'pol'
[-Wunused-variable]
174 | struct sadb_x_policy pol = {
| ^~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c: In function 'socket_bypass':
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:174:16: error: variable 'pol' has
initializer but incomplete type
174 | struct sadb_x_policy pol = {
| ^~~~~~~~~~~~~
make[2]: *** [ikectl/CMakeFiles/ikectl.dir/__/iked/util.c.o] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build'
make[1]: *** [ikectl/CMakeFiles/ikectl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: error: 'SADB_UPDATE' undeclared
(first use in this function)
175 | SADB_UPDATE,
| ^~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: note: each undeclared
identifier is reported only once for each function it appears in
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: warning: excess elements in
struct initializer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:175:21: note: (near initialization for
'pol')
[ 53%] Building C object iked/CMakeFiles/iked-shared.dir/eap_map.c.o
cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build/iked
&& /opt/local/bin/gcc-mp-14 -DHAVE_APPLE_NATT -DHAVE_ARC4RANDOM_BUF
-DHAVE_ARC4RANDOM_UNIFORM -DHAVE_ASPRINTF -DHAVE_DIRENT_H -DHAVE_ERR_H
-DHAVE_FFS -DHAVE_GETENTROPY -DHAVE_GETOPT -DHAVE_GETPAGESIZE
-DHAVE_GETPROGNAME -DHAVE_GRP_H -DHAVE_MEMMEM -DHAVE_NET_PFKEY_H
-DHAVE_SETREGID -DHAVE_SETREUID -DHAVE_SOCKADDR_SA_LEN -DHAVE_STRCASECMP
-DHAVE_STRLCAT -DHAVE_STRLCPY -DHAVE_STRNDUP -DHAVE_STRNLEN -DHAVE_STRSEP
-DHAVE_SYSLOG -DHAVE_TIMEGM -DHAVE_UNISTD_H -DHAVE_USLEEP -DHAVE_VIS
-DHAVE_VROUTE -DIKED_CA=\"/opt/local/etc/iked/\"
-DIKED_CONFIG=\"/opt/local/etc/iked.conf\" -I/opt/local/include
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/../iked
-I/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/compat/. -pipe
-I/opt/local/libexec/openssl3/include -Os -DNDEBUG
-I/opt/local/libexec/openssl3/include
-isystem/opt/local/include/LegacySupport -isystem/opt/local/include -arch
ppc -mmacosx-version-min=10.6 -O2 -fstack-protector-strong -fPIE
-D_FORTIFY_SOURCE=2 -Wall -Wno-pointer-sign -Wno-deprecated-declarations
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow
-Wpointer-arith -Wcast-qual -Wsign-compare -MD -MT iked/CMakeFiles/iked-
shared.dir/eap_map.c.o -MF CMakeFiles/iked-shared.dir/eap_map.c.o.d -o
CMakeFiles/iked-shared.dir/eap_map.c.o -c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build/iked/eap_map.c
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:176:21: error: 'SADB_EXT_SENSITIVITY'
undeclared (first use in this function)
176 | SADB_EXT_SENSITIVITY,
| ^~~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:176:21: warning: excess elements in
struct initializer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:176:21: note: (near initialization for
'pol')
[ 55%] Linking C executable dhtest
cd
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build/regress/dh
&& /opt/local/bin/cmake -E cmake_link_script
CMakeFiles/dhtest.dir/link.txt --verbose=ON
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:177:21: error: 'IPSEC_POLICY_BYPASS'
undeclared (first use in this function)
177 | IPSEC_POLICY_BYPASS,
| ^~~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:177:21: warning: excess elements in
struct initializer
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:177:21: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:21: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:21: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:24: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:24: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:27: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:27: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:30: warning: excess elements in
struct initializer
178 | 0, 0, 0, 0
| ^
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:178:30: note: (near initialization for
'pol')
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:174:30: error: storage size of 'pol'
isn't known
174 | struct sadb_x_policy pol = {
| ^~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:193:33: error: 'IPSEC_DIR_INBOUND'
undeclared (first use in this function)
193 | pol.sadb_x_policy_dir = IPSEC_DIR_INBOUND;
| ^~~~~~~~~~~~~~~~~
/opt/local/bin/gcc-mp-14 -pipe -I/opt/local/libexec/openssl3/include -Os
-DNDEBUG -I/opt/local/libexec/openssl3/include
-isystem/opt/local/include/LegacySupport -isystem/opt/local/include -arch
ppc -mmacosx-version-min=10.6 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/opt/local/libexec/openssl3/lib
-Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport
CMakeFiles/dhtest.dir/dhtest.c.o
CMakeFiles/dhtest.dir/__/__/iked/crypto_hash.c.o
CMakeFiles/dhtest.dir/__/__/iked/dh.c.o
CMakeFiles/dhtest.dir/__/__/iked/smult_curve25519_ref.c.o
CMakeFiles/dhtest.dir/__/__/iked/sntrup761.c.o
CMakeFiles/dhtest.dir/__/__/iked/imsg_util.c.o
../../compat/CMakeFiles/compat.dir/recallocarray.c.o
"../../compat/CMakeFiles/compat.dir/bsd-socket.c.o"
"../../compat/CMakeFiles/compat.dir/bsd-setres_id.c.o"
../../compat/CMakeFiles/compat.dir/getrtable.c.o
../../compat/CMakeFiles/compat.dir/getdtablecount.c.o
../../compat/CMakeFiles/compat.dir/setproctitle.c.o
../../compat/CMakeFiles/compat.dir/strtonum.c.o
../../compat/CMakeFiles/compat.dir/imsg.c.o
"../../compat/CMakeFiles/compat.dir/imsg-buffer.c.o"
../../compat/CMakeFiles/compat.dir/freezero.c.o
../../compat/CMakeFiles/compat.dir/explicit_bzero.c.o
../../compat/CMakeFiles/compat.dir/reallocarray.c.o
"../../compat/CMakeFiles/compat.dir/ibuf-compat.c.o" -o dhtest
-Wl,-rpath,/opt/local/lib -lutil -lcrypto
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:198:33: error: 'IPSEC_DIR_OUTBOUND'
undeclared (first use in this function)
198 | pol.sadb_x_policy_dir = IPSEC_DIR_OUTBOUND;
| ^~~~~~~~~~~~~~~~~~
/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work
/openiked-portable-7.3/iked/util.c:174:30: warning: unused variable 'pol'
[-Wunused-variable]
174 | struct sadb_x_policy pol = {
| ^~~
make[2]: *** [iked/CMakeFiles/iked-shared.dir/util.c.o] Error 1
make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_net_openiked/openiked/work/build'
make[1]: *** [iked/CMakeFiles/iked-shared.dir/all] Error 2
}}}
--
Ticket URL: <https://trac.macports.org/ticket/70390>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list