[MacPorts] #70708: tcpcrypt-devel build failure: error: ‘DLT_PKTAP’ undeclared (first use in this function)

MacPorts noreply at macports.org
Tue Sep 10 03:51:33 UTC 2024


#70708: tcpcrypt-devel build failure: error: ‘DLT_PKTAP’ undeclared (first use in
this function)
--------------------------+----------------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.1
 Keywords:                |       Port:  tcpcrypt-devel
--------------------------+----------------------------
 {{{
 --->  Building tcpcrypt-devel
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_security_tcpcrypt-devel/tcpcrypt-
 devel/work/tcpcrypt-0.5" && /usr/bin/make -j6 -w all
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_security_tcpcrypt-devel/tcpcrypt-
 devel/work/tcpcrypt-0.5'
 /usr/bin/make  all-am
 make[1]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_security_tcpcrypt-devel/tcpcrypt-
 devel/work/tcpcrypt-0.5'
 ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT src/tcpcryptd-freebsd.o -MD -MP -MF
 src/.deps/tcpcryptd-freebsd.Tpo -c -o src/tcpcryptd-freebsd.o `test -f
 'src/freebsd.c' || echo './'`src/freebsd.c
 ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT src/tcpcryptd-unix.o -MD -MP -MF
 src/.deps/tcpcryptd-unix.Tpo -c -o src/tcpcryptd-unix.o `test -f
 'src/unix.c' || echo './'`src/unix.c
 ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT shared/util_tcnetstat-socket_address.o
 -MD -MP -MF shared/.deps/util_tcnetstat-socket_address.Tpo -c -o shared
 /util_tcnetstat-socket_address.o `test -f 'shared/socket_address.c' ||
 echo './'`shared/socket_address.c
 depbase=`echo shared/socket_address.lo | sed
 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
         /bin/sh ./libtool  --tag=CC   --mode=compile ccache
 /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.   -I/opt/local/include
 -I./src -I./include -I./src -pipe -Os -arch ppc -Wall -Wno-deprecated-
 declarations -MT shared/socket_address.lo -MD -MP -MF $depbase.Tpo -c -o
 shared/socket_address.lo shared/socket_address.c &&\
         mv -f $depbase.Tpo $depbase.Plo
 ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT util/tcs-tcs.o -MD -MP -MF util/.deps
 /tcs-tcs.Tpo -c -o util/tcs-tcs.o `test -f 'util/tcs.c' || echo
 './'`util/tcs.c
 ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT shared/util_tcs-socket_address.o -MD -MP
 -MF shared/.deps/util_tcs-socket_address.Tpo -c -o shared/util_tcs-
 socket_address.o `test -f 'shared/socket_address.c' || echo
 './'`shared/socket_address.c
 mv -f src/.deps/tcpcryptd-freebsd.Tpo src/.deps/tcpcryptd-freebsd.Po
 ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT unix/util_tcs-priv.o -MD -MP -MF
 unix/.deps/util_tcs-priv.Tpo -c -o unix/util_tcs-priv.o `test -f
 'unix/priv.c' || echo './'`unix/priv.c
 src/unix.c: In function ‘divert_open_pcap’:
 src/unix.c:240: warning: implicit declaration of function ‘pcap_create’
 src/unix.c:240: warning: assignment makes pointer from integer without a
 cast
 src/unix.c:248: warning: implicit declaration of function
 ‘pcap_set_snaplen’
 src/unix.c:249: warning: implicit declaration of function
 ‘pcap_set_timeout’
 src/unix.c:250: warning: implicit declaration of function ‘pcap_activate’
 src/unix.c:253: error: ‘DLT_PKTAP’ undeclared (first use in this function)
 src/unix.c:253: error: (Each undeclared identifier is reported only once
 src/unix.c:253: error: for each function it appears in.)
 src/unix.c:259: error: ‘PCAP_NETMASK_UNKNOWN’ undeclared (first use in
 this function)
 mv -f shared/.deps/util_tcnetstat-socket_address.Tpo shared/.deps
 /util_tcnetstat-socket_address.Po
 make[1]: *** [src/tcpcryptd-unix.o] Error 1
 make[1]: *** Waiting for unfinished jobs....
 mv -f unix/.deps/util_tcs-priv.Tpo unix/.deps/util_tcs-priv.Po
 mv -f shared/.deps/util_tcs-socket_address.Tpo shared/.deps/util_tcs-
 socket_address.Po
 mv -f util/.deps/tcs-tcs.Tpo util/.deps/tcs-tcs.Po
 libtool: compile:  ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT shared/socket_address.lo -MD -MP -MF
 shared/.deps/socket_address.Tpo -c shared/socket_address.c  -fno-common
 -DPIC -o shared/.libs/socket_address.o
 libtool: compile:  ccache /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I.
 -I/opt/local/include -I./src -I./include -I./src -pipe -Os -arch ppc -Wall
 -Wno-deprecated-declarations -MT shared/socket_address.lo -MD -MP -MF
 shared/.deps/socket_address.Tpo -c shared/socket_address.c -o
 shared/socket_address.o >/dev/null 2>&1
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_security_tcpcrypt-devel/tcpcrypt-
 devel/work/tcpcrypt-0.5'
 make: *** [all] Error 2
 }}}

 https://github.com/scslab/tcpcrypt/issues/19

-- 
Ticket URL: <https://trac.macports.org/ticket/70708>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list