macOS - error: "Function getprogname() needs to be ported."
ref #19 (closed)
THX for the good work.
This PR is based on my local port definition efforts while aiming at establishing a MacPorts new 'libbsd' port (WIP).
Please note that "getprogname" and "setprogname" are availabe by MacOSX.sdk to macOS 11 Big Sur already. IMO the utility "progname" should become exempted from the build process for macOS as was done with other utilities in 'libbsd' obviously.
ref 73b25a8f
sudo port -d -v build libbsd-devel
The below is an excerpt from the "libbsd-devel/main.log"
:debug:main Starting logging for libbsd-devel @0.11.7-dirty_0
:debug:sysinfo macOS 11.7.9 (darwin/20.6.0) arch i386
:debug:sysinfo MacPorts 2.8.1
:debug:sysinfo Xcode 13.0, CLT 13.2.0.0.1.1638488800
:debug:sysinfo SDK 11
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 11.0
:debug:main epoch: in tree: 0 installed: 0
. . .
:info:build Making all in src
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_usr_local_macports_ports_devel_libbsd/libbsd-devel/work/libbsd-73b25a8f871b3a20f6ff76679358540f95d7dbfd/src'
:info:build CC dehumanize_number.lo
:info:build CC closefrom.lo
:info:build CC err.lo
:info:build CC expand_number.lo
:info:build CC explicit_bzero.lo
:info:build CC fgetln.lo
:info:build CC fgetwln.lo
:info:build CC flopen.lo
:info:build CC fmtcheck.lo
:info:build CC fparseln.lo
:info:build CC freezero.lo
:info:build CC getbsize.lo
:info:build CC getpeereid.lo
:info:build CC heapsort.lo
:info:build CC humanize_number.lo
:info:build CC inet_net_pton.lo
:info:build CC merge.lo
:info:build CC pidfile.lo
:info:build CC progname.lo
:info:build progname.c:141:2: error: "Function getprogname() needs to be ported."
:info:build #error "Function getprogname() needs to be ported."
:info:build ^
:info:build 1 error generated.
:info:build make[2]: *** [progname.lo] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build CC pwcache.lo
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_usr_local_macports_ports_devel_libbsd/libbsd-devel/work/libbsd-73b25a8f871b3a20f6ff76679358540f95d7dbfd/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_usr_local_macports_ports_devel_libbsd/libbsd-devel/work/libbsd-73b25a8f871b3a20f6ff76679358540f95d7dbfd'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_usr_local_macports_ports_devel_libbsd/libbsd-devel/work/libbsd-73b25a8f871b3a20f6ff76679358540f95d7dbfd'
:info:build Command failed: cd "/opt/local/var/macports/build/_usr_local_macports_ports_devel_libbsd/libbsd-devel/work/libbsd-73b25a8f871b3a20f6ff76679358540f95d7dbfd" && /usr/bin/make -j4 -w all
:info:build Exit code: 2
:error:build Failed to build libbsd-devel: command execution failed
. . .
:error:build See /opt/local/var/macports/logs/_usr_local_macports_ports_devel_libbsd/libbsd-devel/main.log for details.
However, further scans found several utility commands included in the above are available to macOS already. I will provide some more information in another PR in due time.
Hope this helps.