* Package: net-analyzer/portsentry-1.2-r1 * Repository: gentoo * Maintainer: netmon@gentoo.org * USE: abi_x86_64 amd64 elibc_musl kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking portsentry-1.2.tar.gz to /var/tmp/portage/net-analyzer/portsentry-1.2-r1/work >>> Source unpacked in /var/tmp/portage/net-analyzer/portsentry-1.2-r1/work >>> Preparing source in /var/tmp/portage/net-analyzer/portsentry-1.2-r1/work/portsentry_beta ... * Applying portsentry-1.2-conf.patch ... [ ok ] * Applying portsentry-1.2-config.h.patch ... [ ok ] * Applying portsentry-1.2-gcc.patch ... [ ok ] * Applying portsentry-1.2-ignore.csh.patch ... [ ok ] >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-analyzer/portsentry-1.2-r1/work/portsentry_beta ... >>> Source configured. >>> Compiling source in /var/tmp/portage/net-analyzer/portsentry-1.2-r1/work/portsentry_beta ... make -j1 CC=x86_64-gentoo-linux-musl-gcc 'CFLAGS=-O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0' linux SYSTYPE=linux Making x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -DLINUX -DSUPPORT_STEALTH -o ./portsentry ./portsentry.c \ ./portsentry_io.c ./portsentry_util.c In file included from ./portsentry.h:51, from ./portsentry.c:20: ./portsentry_tcpip.h:47:14: error: expected ‘;’ before ‘struct’ 47 | __BEGIN_DECLS | ^ | ; 48 | 49 | struct tcphdr | ~~~~~~ ./portsentry_tcpip.h:90:14: error: expected ‘;’ before ‘struct’ 90 | __BEGIN_DECLS | ^ | ; 91 | 92 | struct timestamp | ~~~~~~ ./portsentry_tcpip.h:157:14: error: expected ‘;’ before ‘struct’ 157 | __BEGIN_DECLS | ^ | ; ...... 160 | struct udphdr { | ~~~~~~ ./portsentry_tcpip.h:167:12: error: expected ‘;’ before ‘typedef’ 167 | __END_DECLS | ^ | ; ./portsentry.c: In function ‘InitConfig’: ./portsentry.c:240:4: warning: ‘strncat’ specified bound 1 equals source length [-Wstringop-overflow=] 240 | strncat (gblBlockedFile, ".", 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./portsentry.h:51, from ./portsentry_io.c:20: ./portsentry_tcpip.h:47:14: error: expected ‘;’ before ‘struct’ 47 | __BEGIN_DECLS | ^ | ; 48 | 49 | struct tcphdr | ~~~~~~ ./portsentry_tcpip.h:90:14: error: expected ‘;’ before ‘struct’ 90 | __BEGIN_DECLS | ^ | ; 91 | 92 | struct timestamp | ~~~~~~ ./portsentry_tcpip.h:157:14: error: expected ‘;’ before ‘struct’ 157 | __BEGIN_DECLS | ^ | ; ...... 160 | struct udphdr { | ~~~~~~ ./portsentry_tcpip.h:167:12: error: expected ‘;’ before ‘typedef’ 167 | __END_DECLS | ^ | ; ./portsentry_io.c: In function ‘ConfigTokenRetrieve’: ./portsentry_io.c:321:39: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 321 | if ((strstr (buffer, token) != (char) NULL) && | ^ ./portsentry_io.c:321:36: warning: comparison between pointer and integer 321 | if ((strstr (buffer, token) != (char) NULL) && | ^~ ./portsentry_io.c:324:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 324 | if (strstr (buffer, "\"") == (char) NULL) | ^ ./portsentry_io.c:324:31: warning: comparison between pointer and integer 324 | if (strstr (buffer, "\"") == (char) NULL) | ^~ ./portsentry_io.c: In function ‘IsBlocked’: ./portsentry_io.c:670:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 670 | if((ipOffset = strstr(buffer, target)) != (char) NULL) | ^ ./portsentry_io.c:670:41: warning: comparison between pointer and integer 670 | if((ipOffset = strstr(buffer, target)) != (char) NULL) | ^~ ./portsentry_io.c: In function ‘SubstString’: ./portsentry_io.c:727:33: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 727 | if (strstr (target, find) == (char) NULL) | ^ ./portsentry_io.c:727:30: warning: comparison between pointer and integer 727 | if (strstr (target, find) == (char) NULL) | ^~ In file included from ./portsentry.h:51, from ./portsentry_util.c:20: ./portsentry_tcpip.h:47:14: error: expected ‘;’ before ‘struct’ 47 | __BEGIN_DECLS | ^ | ; 48 | 49 | struct tcphdr | ~~~~~~ ./portsentry_tcpip.h:90:14: error: expected ‘;’ before ‘struct’ 90 | __BEGIN_DECLS | ^ | ; 91 | 92 | struct timestamp | ~~~~~~ ./portsentry_tcpip.h:157:14: error: expected ‘;’ before ‘struct’ 157 | __BEGIN_DECLS | ^ | ; ...... 160 | struct udphdr { | ~~~~~~ ./portsentry_tcpip.h:167:12: error: expected ‘;’ before ‘typedef’ 167 | __END_DECLS | ^ | ; make: *** [Makefile:104: linux] Error 1 * ERROR: net-analyzer/portsentry-1.2-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=net-analyzer/portsentry-1.2-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-analyzer/portsentry-1.2-r1::gentoo'`. * The complete build log is located at '/var/log/portage/net-analyzer:portsentry-1.2-r1:20200415-104008.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/net-analyzer/portsentry-1.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/portsentry-1.2-r1/temp/environment'. * Working directory: '/var/tmp/portage/net-analyzer/portsentry-1.2-r1/work/portsentry_beta' * S: '/var/tmp/portage/net-analyzer/portsentry-1.2-r1/work/portsentry_beta'