[MacPorts] #64941: usbredir fails to build for PowerPC

MacPorts noreply at macports.org
Tue Apr 5 17:17:56 UTC 2022


#64941: usbredir fails to build for PowerPC
-------------------------------------------------+-------------------------
 Reporter:  barracuda156                         |      Owner:  ryandesign
     Type:  defect                               |     Status:  assigned
 Priority:  Normal                               |  Milestone:
Component:  ports                                |    Version:  2.7.2
 Keywords:  powerpc, leopard, snowleopard,       |       Port:  usbredir
  rosetta                                        |
-------------------------------------------------+-------------------------
 This is a separate issue from: https://trac.macports.org/ticket/64940
 When restricted to ppc32, `usbredir` still fails on Leopard and Snow
 Leopard Rosetta due to undeclared `TCP_KEEPINTVL` and `TCP_KEEPCNT`.

 This is on 10.5.8:

 {{{
 Making all in usbredirserver
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_usbredir/usbredir/work/usbredir-0.9.0/usbredirserver'
 /usr/bin/gcc-4.2 -std=gnu99 -DHAVE_CONFIG_H -I. -I..
 -I/opt/local/include -I/opt/local/include/libusb-1.0 -I../usbredirhost
 -I../usbredirparser -pipe -Os -arch ppc -Wall -Wp,-D_FORTIFY_SOURCE=2
 -fstack-protector --param=ssp-buffer-size=4 -MT usbredirserver-
 usbredirserver.o -MD -MP -MF .deps/usbredirserver-usbredirserver.Tpo -c -o
 usbredirserver-usbredirserver.o `test -f 'usbredirserver.c' || echo
 './'`usbredirserver.c
 usbredirserver.c: In function ‘main’:
 usbredirserver.c:390: error: ‘TCP_KEEPINTVL’ undeclared (first use in this
 function)
 usbredirserver.c:390: error: (Each undeclared identifier is reported only
 once
 usbredirserver.c:390: error: for each function it appears in.)
 usbredirserver.c:397: error: ‘TCP_KEEPCNT’ undeclared (first use in this
 function)
 make[2]: *** [usbredirserver-usbredirserver.o] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_usbredir/usbredir/work/usbredir-0.9.0/usbredirserver'
 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_usbredir/usbredir/work/usbredir-0.9.0'
 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_usbredir/usbredir/work/usbredir-0.9.0'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_usbredir/usbredir/work/usbredir-0.9.0"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build usbredir: command execution failed
 }}}

 And on 10.6.8 with `gcc10`:

 {{{
 Making all in usbredirserver
 make[2]: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_usbredir/usbredir/work/usbredir-0.9.0/usbredirserver'
 /opt/local/bin/gcc-mp-10 -DHAVE_CONFIG_H -I. -I..   -I/opt/local/include
 -I/opt/local/include/libusb-1.0 -I../usbredirhost -I../usbredirparser
 -pipe -Os -arch ppc -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector
 --param=ssp-buffer-size=4 -MT usbredirserver-usbredirserver.o -MD -MP -MF
 .deps/usbredirserver-usbredirserver.Tpo -c -o usbredirserver-
 usbredirserver.o `test -f 'usbredirserver.c' || echo './'`usbredirserver.c
 usbredirserver.c: In function 'main':
 usbredirserver.c:390:48: error: 'TCP_KEEPINTVL' undeclared (first use in
 this function); did you mean 'TCP_KEEPALIVE'?
   390 |             if (setsockopt(client_fd, SOL_TCP, TCP_KEEPINTVL,
 &optval, optlen) == -1) {
       |                                                ^~~~~~~~~~~~~
       |                                                TCP_KEEPALIVE
 usbredirserver.c:390:48: note: each undeclared identifier is reported only
 once for each function it appears in
 usbredirserver.c:397:48: error: 'TCP_KEEPCNT' undeclared (first use in
 this function); did you mean 'TCP_KEEPIDLE'?
   397 |             if (setsockopt(client_fd, SOL_TCP, TCP_KEEPCNT,
 &optval, optlen) == -1) {
       |                                                ^~~~~~~~~~~
       |                                                TCP_KEEPIDLE
 make[2]: *** [usbredirserver-usbredirserver.o] Error 1
 make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_usbredir/usbredir/work/usbredir-0.9.0/usbredirserver'
 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_usbredir/usbredir/work/usbredir-0.9.0'
 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_usbredir/usbredir/work/usbredir-0.9.0'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_usbredir/usbredir/work/usbredir-0.9.0"
 && /usr/bin/make -j4 -w all
 Exit code: 2
 Error: Failed to build usbredir: command execution failed
 }}}

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


More information about the macports-tickets mailing list