[MacPorts] #63748: xsel 1.2.0 fails to build on macOS 12.0.1

MacPorts noreply at macports.org
Sun Oct 31 22:18:00 UTC 2021


#63748: xsel 1.2.0 fails to build on macOS 12.0.1
--------------------------+--------------------
 Reporter:  derekschrock  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.7.1
 Keywords:                |       Port:  xsel
--------------------------+--------------------
 {{{

 $ sudo port install xsel
 ...
 Error: Failed to build xsel: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xsel/xsel/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port xsel failed
 }}}


 {{{
 ...
 :info:build if /usr/bin/clang -DHAVE_CONFIG_H -I. -I. -I.
 -I/opt/local/include
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk  -pipe -Os
 -isysroot/Libr
 ary/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch x86_64 -fno-strict-
 aliasing -Wall -Werror -g -std=gnu99 -Wdeclaration-after-statement -Wno-
 unused -MT xsel.o -MD -
 MP -MF ".deps/xsel.Tpo" -c -o xsel.o xsel.c; \
 :info:build     then mv -f ".deps/xsel.Tpo" ".deps/xsel.Po"; else rm -f
 ".deps/xsel.Tpo"; exit 1; fi
 :info:build xsel.c:372:14: error: 'fork' is deprecated: Use posix_spawn or
 fork [-Werror,-Wdeprecated-declarations]
 :info:build   if ((pid = fork()) == -1) {
 :info:build              ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/unistd.h:604:1:
 note: 'fork' has been explicitly marked deprecated here
 :info:build __deprecated_msg("Use posix_spawn or fork")
 :info:build ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/cdefs.h:208:48:
 note: expanded from macro '__deprecated_msg'
 :info:build         #define __deprecated_msg(_msg)
 __attribute__((__deprecated__(_msg)))
 :info:build                                                       ^
 :info:build xsel.c:382:14: error: 'fork' is deprecated: Use posix_spawn or
 fork [-Werror,-Wdeprecated-declarations]
 :info:build   if ((pid = fork()) == -1) {
 :info:build              ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/unistd.h:604:1:
 note: 'fork' has been explicitly marked deprecated here
 :info:build __deprecated_msg("Use posix_spawn or fork")
 :info:build ^
 :info:build
 /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk/usr/include/sys/cdefs.h:208:48:
 note: expanded from macro '__deprecated_msg'
 :info:build         #define __deprecated_msg(_msg)
 __attribute__((__deprecated__(_msg)))
 :info:build                                                       ^
 :info:build 2 errors generated.
 :info:build make[1]: *** [xsel.o] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xsel/xsel/wo
 rk/xsel-1.2.0'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xsel/xsel/work/
 xsel-1.2.0'
 }}}

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


More information about the macports-tickets mailing list