[MacPorts] #64937: usbredir fails on 10.6.8 Rosetta

MacPorts noreply at macports.org
Tue Apr 5 14:46:06 UTC 2022


#64937: usbredir fails on 10.6.8 Rosetta
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  ryandesign
      Type:  defect        |     Status:  closed
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:  fixed         |   Keywords:  powerpc, snowleopard, rosetta
      Port:  usbredir      |
---------------------------+-------------------------------------------

Comment (by barracuda156):

 Replying to [comment:1 ryandesign]:
 > Looks like with apple-gcc42 we're getting some warnings, and the build
 system treats warnings as errors (it uses `-Werror`). As usual in MacPorts
 I think the fix should be not to use `-Werror`; that fixes the problem for
 me.

 It also fails 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/64937#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list