[MacPorts] #64646: tuntaposx @20150118: fix for Leopard? Previous version builds for ppc but fails for ppc+ppc64

MacPorts noreply at macports.org
Thu Sep 8 17:45:14 UTC 2022


#64646: tuntaposx @20150118: fix for Leopard? Previous version builds for ppc but
fails for ppc+ppc64
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  PowerPC, Leopard, ppc64
      Port:  tuntaposx     |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Confirmed again to build on Rosetta, though there are multiple unused
 parameter warnings:
 {{{
 /usr/bin/g++-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTUN_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c ../mem.cc -o
 ../mem.o
 /usr/bin/g++-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTUN_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c kmod.cc -o kmod.o
 ../tuntap.cc:493: warning: unused parameter ‘flags’
 ../tuntap.cc:493: warning: unused parameter ‘devtype’
 ../tuntap.cc:516: warning: unused parameter ‘flags’
 ../tuntap.cc:516: warning: unused parameter ‘devtype’
 ../tuntap.cc:516: warning: unused parameter ‘p’
 ../tuntap.cc:493: warning: unused parameter ‘flags’
 ../tuntap.cc:493: warning: unused parameter ‘devtype’
 ../tuntap.cc:516: warning: unused parameter ‘flags’
 ../tuntap.cc:516: warning: unused parameter ‘devtype’
 ../tuntap.cc:516: warning: unused parameter ‘p’
 ../tuntap.cc:542: warning: unused parameter ‘ioflag’
 ../tuntap.cc:542: warning: unused parameter ‘ioflag’
 ../tuntap.cc:622: warning: unused parameter ‘ioflag’
 ../tuntap.cc:720: warning: unused parameter ‘fflag’
 ../tuntap.cc:720: warning: unused parameter ‘p’
 ../tuntap.cc:622: warning: unused parameter ‘ioflag’
 ../tuntap.cc:720: warning: unused parameter ‘fflag’
 ../tuntap.cc:720: warning: unused parameter ‘p’
 ../tuntap.cc:943: warning: unused parameter ‘maddr’
 ../tuntap.cc:943: warning: unused parameter ‘maddr’
 /usr/bin/gcc-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTUN_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c tun_inet_proto.c
 -o tun_inet_proto.o
 /usr/bin/gcc-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTUN_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c tun_inet6_proto.c
 -o tun_inet6_proto.o
 /usr/bin/g++-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTAP_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c ../mem.cc -o
 ../mem.o
 tun_inet_proto.c:37: warning: unused parameter ‘ifp’
 tun_inet_proto.c:37: warning: unused parameter ‘protocol’
 tun_inet_proto.c:37: warning: unused parameter ‘header’
 tun_inet_proto.c:44: warning: unused parameter ‘ifp’
 tun_inet_proto.c:44: warning: unused parameter ‘proto’
 tun_inet_proto.c:44: warning: unused parameter ‘packet’
 tun_inet_proto.c:45: warning: unused parameter ‘route’
 tun_inet_proto.c:45: warning: unused parameter ‘dst_addr’
 /usr/bin/g++-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTUN_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c tun.cc -o tun.o
 /usr/bin/g++-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTAP_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c kmod.cc -o kmod.o
 tun_inet6_proto.c:37: warning: unused parameter ‘ifp’
 tun_inet6_proto.c:37: warning: unused parameter ‘protocol’
 tun_inet6_proto.c:37: warning: unused parameter ‘header’
 tun_inet6_proto.c:44: warning: unused parameter ‘ifp’
 tun_inet6_proto.c:44: warning: unused parameter ‘proto’
 tun_inet6_proto.c:44: warning: unused parameter ‘packet’
 tun_inet6_proto.c:45: warning: unused parameter ‘route’
 tun_inet6_proto.c:45: warning: unused parameter ‘dst_addr’
 kmod.cc:44: warning: unused parameter ‘ki’
 kmod.cc:44: warning: unused parameter ‘data’
 kmod.cc:72: warning: unused parameter ‘ki’
 kmod.cc:72: warning: unused parameter ‘data’
 /usr/bin/g++-4.2 -Wall -Wextra -mkernel -force_cpusubtype_ALL -nostdinc
 -fno-builtin -fno-stack-protector -msoft-float -fno-common -arch ppc
 -DKERNEL -DAPPLE -DKERNEL_PRIVATE -DTUNTAP_VERSION=\"20150118\"
 -DTAP_KEXT_VERSION=\"20150118\" -I..
 -I/System/Library/Frameworks/Kernel.framework/Headers -c tap.cc -o tap.o
 kmod.cc:44: warning: unused parameter ‘ki’
 kmod.cc:44: warning: unused parameter ‘data’
 kmod.cc:72: warning: unused parameter ‘ki’
 kmod.cc:72: warning: unused parameter ‘data’
 tun.cc:256: warning: unused parameter ‘dest_linkaddr’
 tun.cc:256: warning: unused parameter ‘frame_type’
 tap.cc: In member function ‘virtual int
 tap_interface::initialize_interface()’:
 tap.cc:171: warning: empty body in an if-statement
 tap.cc:208: warning: empty body in an if-statement
 tap.cc: At global scope:
 tap.cc:385: warning: unused parameter ‘dest’
 /usr/bin/gcc-4.2 -Wall -Wextra -arch ppc -Xlinker -kext -nostdlib
 -lkmodc++ -lkmod -lcc_kext -o tun ../tuntap.o ../tuntap_mgr.o ../lock.o
 ../mem.o kmod.o tun_inet_proto.o tun_inet6_proto.o tun.o
 /usr/bin/gcc-4.2 -Wall -Wextra -arch ppc -Xlinker -kext -nostdlib
 -lkmodc++ -lkmod -lcc_kext -o tap ../tuntap.o ../tuntap_mgr.o ../lock.o
 ../mem.o kmod.o tap.o
 rm -rf ../../tun.kext
 mkdir -p ../../tun.kext/Contents/MacOS
 cp tun ../../tun.kext/Contents/MacOS
 sed -e "s/@@CFBUNDLEEXECUTABLE@@/tun/" \
          -e "s/@@CFBUNDLEDEVELOPMENTREGION@@/English/" \
          -e "s/@@CFBUNDLEIDENTIFIER@@/net.sf.tuntaposx.tun/" \
          -e "s/@@CFBUNDLESIGNATURE@@/????/" \
          -e "s/@@CFBUNDLEPACKAGETYPE@@/KEXT/" \
          -e "s/@@CFBUNDLEVERSION@@/20150118/" \
         Info.plist > ../../tun.kext/Contents/Info.plist
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_tuntaposx/tuntaposx/work/tuntap/src/tun'
 rm -rf ../../tap.kext
 if test -s ".signing_identity"; then \
                 codesign -fv --keychain net.sf.tuntaposx.tmp -s "$(cat
 .signing_identity)" \
                         tun.kext ; \
         fi
 mkdir -p ../../tap.kext/Contents/MacOS
 cp tap ../../tap.kext/Contents/MacOS
 sed -e "s/@@CFBUNDLEEXECUTABLE@@/tap/" \
          -e "s/@@CFBUNDLEDEVELOPMENTREGION@@/English/" \
          -e "s/@@CFBUNDLEIDENTIFIER@@/net.sf.tuntaposx.tap/" \
          -e "s/@@CFBUNDLESIGNATURE@@/????/" \
          -e "s/@@CFBUNDLEPACKAGETYPE@@/KEXT/" \
          -e "s/@@CFBUNDLEVERSION@@/20150118/" \
         Info.plist > ../../tap.kext/Contents/Info.plist
 make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_tuntaposx/tuntaposx/work/tuntap/src/tap'
 if test -s ".signing_identity"; then \
                 codesign -fv --keychain net.sf.tuntaposx.tmp -s "$(cat
 .signing_identity)" \
                         tap.kext ; \
         fi
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_tuntaposx/tuntaposx/work/tuntap'
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/64646#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list