#67126 closed update (fixed)

rpki-client: Update to 8.3

Reported by: artkiver (グレェ) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: rpki-client

Description

Attempted to update the Portfile for rpki-client after 8.3 was released the other day yet have run into some issues.

rpki-client % sudo port -v install
--->  Computing dependencies for rpki-client.
--->  Fetching archive for rpki-client
--->  rpki-client-8.3_0+libressl.darwin_22.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch rpki-client-8.3_0+libressl.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/rpki-client
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch rpki-client-8.3_0+libressl.darwin_22.arm64.tbz2 from https://packages.macports.org/rpki-client
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch rpki-client-8.3_0+libressl.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/rpki-client
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Fetching distfiles for rpki-client
--->  Verifying checksums for rpki-client
--->  Checksumming rpki-client-8.3.tar.gz
--->  Extracting rpki-client
--->  Extracting rpki-client-8.3.tar.gz
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/rpki-client/rpki-client-8.3.tar.gz' | /usr/bin/tar -xf - 
--->  Configuring rpki-client
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3" && ./configure --prefix=/opt/local --without-libretls 
configure: WARNING: unrecognized options: --without-libretls
checking build system type... arm-apple-darwin22.3.0
checking host system type... arm-apple-darwin22.3.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking whether /usr/bin/clang understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of /usr/bin/clang... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for gcc... /usr/bin/clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether /usr/bin/clang accepts -g... (cached) yes
checking for /usr/bin/clang option to accept ISO C89... (cached) none needed
checking whether /usr/bin/clang understands -c and -o together... (cached) yes
checking dependency style of /usr/bin/clang... (cached) gcc3
checking for /usr/bin/clang option to accept ISO C99... none needed
checking for /usr/bin/clang option to accept ISO Standard C... (cached) none needed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /opt/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by /usr/bin/clang... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm -B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert arm-apple-darwin22.3.0 file names to arm-apple-darwin22.3.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin22.3.0 file names to toolchain format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm -B output from /usr/bin/clang object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... /usr/bin/clang -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if /usr/bin/clang supports -fno-rtti -fno-exceptions... yes
checking for /usr/bin/clang option to produce PIC... -fno-common -DPIC
checking if /usr/bin/clang PIC flag -fno-common -DPIC works... yes
checking if /usr/bin/clang static flag -static works... no
checking if /usr/bin/clang supports -c -o file.o... yes
checking if /usr/bin/clang supports -c -o file.o... (cached) yes
checking whether the /usr/bin/clang linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin22.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether CC supports -Wno-pointer-sign... yes
checking if compiling with clang... yes
checking for explicit_bzero... no
checking for reallocarray... no
checking for recallocarray... no
checking for freezero... no
checking for setproctitle... no
checking for setgroups... yes
checking for setregid... yes
checking for setresgid... no
checking for setreuid... yes
checking for setresuid... no
checking for memrchr... no
checking for strlcat... yes
checking for strlcpy... yes
checking for strtonum... yes
checking for pledge... no
checking for unveil... no
checking for getdtablecount... no
checking for pipe2... no
checking for ppoll... no
checking for strnvis... yes
checking for working strnvis... no
checking for library containing ibuf_open... no
checking for ibuf_open... no
checking for library containing inet_net_pton... none required
checking for inet_net_pton... yes
checking for working inet_net_pton... no
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for library containing fts_open... none required
checking for fts_open... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sha2.h usability... no
checking sha2.h presence... no
checking for sha2.h... no
checking openssl/cms.h usability... yes
checking openssl/cms.h presence... yes
checking for openssl/cms.h... yes
checking openssl/err.h usability... yes
checking openssl/err.h presence... yes
checking for openssl/err.h... yes
checking openssl/evp.h usability... yes
checking openssl/evp.h presence... yes
checking for openssl/evp.h... yes
checking openssl/ssl.h usability... yes
checking openssl/ssl.h presence... yes
checking for openssl/ssl.h... yes
checking openssl/x509.h usability... yes
checking openssl/x509.h presence... yes
checking for openssl/x509.h... yes
checking openssl/x509v3.h usability... yes
checking openssl/x509v3.h presence... yes
checking for openssl/x509v3.h... yes
checking for ASN1_STRING_get0_data in -lcrypto... yes
checking for X509_up_ref... yes
checking for ASIdentifiers_free... yes
checking for IPAddressRange_free... yes
checking for X509v3_addr_is_canonical... yes
checking for X509v3_asid_is_canonical... yes
checking tls.h usability... yes
checking tls.h presence... yes
checking for tls.h... yes
checking for library containing tls_read... -ltls
checking for tls_default_ca_cert_file... yes
checking for tls_config_set_ca_mem... yes
checking for ASN1_time_parse... yes
checking for ASN1_time_tm_cmp... yes
checking for X509_get_extension_flags... yes
checking expat.h usability... yes
checking expat.h presence... yes
checking for expat.h... yes
checking for XML_Parse in -lexpat... yes
checking for XML_Parse... yes
checking for XML_SetUserData... yes
checking linux/landlock.h usability... no
checking linux/landlock.h presence... no
checking for linux/landlock.h... no
checking for openrsync... no
checking for rsync... rsync
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating include/Makefile
config.status: creating compat/Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: unrecognized options: --without-libretls
--->  Building rpki-client
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3" && /usr/bin/make -j8 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3'
Making all in include
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/include'
Making all in compat
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/compat'
  CC       socket.lo
  CC       recallocarray.lo
  CC       freezero.lo
  CC       pipe2.lo
  CC       inet_net_pton.lo
  CC       reallocarray.lo
  CC       ppoll.lo
  CC       memrchr.lo
  CC       setproctitle.lo
  CC       bsd-setresgid.lo
  CC       bsd-setresuid.lo
  CC       imsg.lo
  CC       vis.lo
  CC       imsg-buffer.lo
  CC       pledge.lo
  CC       unveil.lo
  CC       libcompatnoopt_la-explicit_bzero.lo
  CCLD     libcompat.la
  CCLD     libcompatnoopt.la
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/compat'
Making all in src
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/src'
  CC       rpki_client-as.o
  CC       rpki_client-aspa.o
  CC       rpki_client-cert.o
  CC       rpki_client-gbr.o
  CC       rpki_client-cms.o
  CC       rpki_client-crl.o
  CC       rpki_client-encoding.o
  CC       rpki_client-filemode.o
  CC       rpki_client-geofeed.o
  CC       rpki_client-http.o
  CC       rpki_client-ip.o
  CC       rpki_client-io.o
  CC       rpki_client-log.o
  CC       rpki_client-main.o
  CC       rpki_client-mft.o
  CC       rpki_client-mkdir.o
  CC       rpki_client-ometric.o
  CC       rpki_client-output-bgpd.o
  CC       rpki_client-output-bird.o
  CC       rpki_client-output-csv.o
  CC       rpki_client-output-json.o
  CC       rpki_client-output-ometric.o
  CC       rpki_client-output.o
  CC       rpki_client-parser.o
  CC       rpki_client-print.o
  CC       rpki_client-repo.o
output-ometric.c:131:16: error: use of undeclared identifier 'HOST_NAME_MAX'
        char hostname[HOST_NAME_MAX + 1];
                      ^
1 error generated.
  CC       rpki_client-roa.o
make[1]: *** [rpki_client-output-ometric.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3" && /usr/bin/make -j8 -w all 
Exit code: 2
Error: Failed to build rpki-client: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port rpki-client failed

Attachments (6)

Portfile.rpki-client.8.3.ish (2.2 KB) - added by artkiver (グレェ) 13 months ago.
main.log (27.6 KB) - added by artkiver (グレェ) 13 months ago.
main.log from failed install attempt
main_withopensslvariant.log (49.4 KB) - added by artkiver (グレェ) 13 months ago.
main.log for +openssl variant
Portfile.rpki-client8.3functioning (2.2 KB) - added by artkiver (グレェ) 13 months ago.
A functioning Portfile for rpki-client 8.3 based upon an upstream PR referencing a couple of diffs not yet merged [as that will probably be a version bump]
configure.ac.diff (531 bytes) - added by artkiver (グレェ) 13 months ago.
diff for configure.ac addressing HOST_NAME_MAX discrepancies in rpki-client 8.3 fixed in a PR upstream.
unistd.h.diff (225 bytes) - added by artkiver (グレェ) 13 months ago.
diff for include/unistd.h in rpki-client 8.3 referencing a PR issue #85 upstream addressing the HOST_NAME_MAX challenges in macOS referenced in this ticket.

Download all attachments as: .zip

Change History (21)

Changed 13 months ago by artkiver (グレェ)

Changed 13 months ago by artkiver (グレェ)

Attachment: main.log added

main.log from failed install attempt

comment:1 Changed 13 months ago by artkiver (グレェ)

When attempting to build from the tarball manually, I encounter a different error:

rpki-client-8.3 %  ./configure --prefix=/opt/local --without-libretls
configure: WARNING: unrecognized options: --without-libretls
checking build system type... arm-apple-darwin22.3.0
checking host system type... arm-apple-darwin22.3.0
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /opt/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm -B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert arm-apple-darwin22.3.0 file names to arm-apple-darwin22.3.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin22.3.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common -DPIC
checking if cc PIC flag -fno-common -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin22.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether CC supports -Wno-pointer-sign... yes
checking if compiling with clang... yes
checking for explicit_bzero... no
checking for reallocarray... no
checking for recallocarray... no
checking for freezero... no
checking for setproctitle... no
checking for setgroups... yes
checking for setregid... yes
checking for setresgid... no
checking for setreuid... yes
checking for setresuid... no
checking for memrchr... no
checking for strlcat... yes
checking for strlcpy... yes
checking for strtonum... yes
checking for pledge... no
checking for unveil... no
checking for getdtablecount... no
checking for pipe2... no
checking for ppoll... no
checking for strnvis... yes
checking for working strnvis... no
checking for library containing ibuf_open... no
checking for ibuf_open... no
checking for library containing inet_net_pton... none required
checking for inet_net_pton... yes
checking for working inet_net_pton... no
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for library containing fts_open... none required
checking for fts_open... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sha2.h usability... no
checking sha2.h presence... no
checking for sha2.h... no
checking openssl/cms.h usability... no
checking openssl/cms.h presence... no
checking for openssl/cms.h... no
configure: error: OpenSSL headers required
grey@enbie132020enuan rpki-client-8.3 %  ./configure --prefix=/opt/local 
checking build system type... arm-apple-darwin22.3.0
checking host system type... arm-apple-darwin22.3.0
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /opt/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm -B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert arm-apple-darwin22.3.0 file names to arm-apple-darwin22.3.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin22.3.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common -DPIC
checking if cc PIC flag -fno-common -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin22.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether CC supports -Wno-pointer-sign... yes
checking if compiling with clang... yes
checking for explicit_bzero... no
checking for reallocarray... no
checking for recallocarray... no
checking for freezero... no
checking for setproctitle... no
checking for setgroups... yes
checking for setregid... yes
checking for setresgid... no
checking for setreuid... yes
checking for setresuid... no
checking for memrchr... no
checking for strlcat... yes
checking for strlcpy... yes
checking for strtonum... yes
checking for pledge... no
checking for unveil... no
checking for getdtablecount... no
checking for pipe2... no
checking for ppoll... no
checking for strnvis... yes
checking for working strnvis... no
checking for library containing ibuf_open... no
checking for ibuf_open... no
checking for library containing inet_net_pton... none required
checking for inet_net_pton... yes
checking for working inet_net_pton... no
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for library containing fts_open... none required
checking for fts_open... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sha2.h usability... no
checking sha2.h presence... no
checking for sha2.h... no
checking openssl/cms.h usability... no
checking openssl/cms.h presence... no
checking for openssl/cms.h... no
configure: error: OpenSSL headers required
grey@enbie132020enuan rpki-client-8.3 %  ./configure --prefix=/opt/local 
checking build system type... arm-apple-darwin22.3.0
checking host system type... arm-apple-darwin22.3.0
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking whether cc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of cc... gcc3
checking for a sed that does not truncate output... /opt/local/bin/gsed
checking for gcc... (cached) cc
checking whether we are using the GNU C compiler... (cached) yes
checking whether cc accepts -g... (cached) yes
checking for cc option to accept ISO C89... (cached) none needed
checking whether cc understands -c and -o together... (cached) yes
checking dependency style of cc... (cached) gcc3
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /opt/local/bin/gsed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /opt/local/bin/nm -B
checking the name lister (/opt/local/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 786432
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert arm-apple-darwin22.3.0 file names to arm-apple-darwin22.3.0 format... func_convert_file_noop
checking how to convert arm-apple-darwin22.3.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /opt/local/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... yes
checking for cc option to produce PIC... -fno-common -DPIC
checking if cc PIC flag -fno-common -DPIC works... yes
checking if cc static flag -static works... no
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin22.3.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether CC supports -Wno-pointer-sign... yes
checking if compiling with clang... yes
checking for explicit_bzero... no
checking for reallocarray... no
checking for recallocarray... no
checking for freezero... no
checking for setproctitle... no
checking for setgroups... yes
checking for setregid... yes
checking for setresgid... no
checking for setreuid... yes
checking for setresuid... no
checking for memrchr... no
checking for strlcat... yes
checking for strlcpy... yes
checking for strtonum... yes
checking for pledge... no
checking for unveil... no
checking for getdtablecount... no
checking for pipe2... no
checking for ppoll... no
checking for strnvis... yes
checking for working strnvis... no
checking for library containing ibuf_open... no
checking for ibuf_open... no
checking for library containing inet_net_pton... none required
checking for inet_net_pton... yes
checking for working inet_net_pton... no
checking fts.h usability... yes
checking fts.h presence... yes
checking for fts.h... yes
checking for library containing fts_open... none required
checking for fts_open... yes
checking err.h usability... yes
checking err.h presence... yes
checking for err.h... yes
checking sha2.h usability... no
checking sha2.h presence... no
checking for sha2.h... no
checking openssl/cms.h usability... no
checking openssl/cms.h presence... no
checking for openssl/cms.h... no
configure: error: OpenSSL headers required

Admittedly, I encounter that same error with rpki-client 8.2, but port -v install functions there, so that may not be a red herring, but it still troubling. Moreover, it seems as if I can probably modify the Portfile to omit the " configure.args-append --without-libretls" for the libressl variant (though I doubt I added that spuriously? I will have to go back and check to see if it was required with 8.2)

comment:2 Changed 13 months ago by artkiver (グレェ)

% sudo port -v install +openssl
--->  Computing dependencies for rpki-client....
The following dependencies will be installed: 
 libretls
 openssl
 openssl3
Continue? [Y/n]: 

omitting messages of dependencies being built for brevity.

--->  Fetching archive for rpki-client
--->  rpki-client-8.3_0+openssl.darwin_22.arm64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch rpki-client-8.3_0+openssl.darwin_22.arm64.tbz2 from http://mirror.fcix.net/macports/packages/rpki-client
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch rpki-client-8.3_0+openssl.darwin_22.arm64.tbz2 from https://packages.macports.org/rpki-client
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   126    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Attempting to fetch rpki-client-8.3_0+openssl.darwin_22.arm64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/rpki-client
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   153    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
--->  Building rpki-client
Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3" && /usr/bin/make -j8 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3'
Making all in include
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/include'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/include'
Making all in compat
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/compat'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/compat'
Making all in src
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/src'
  CC       rpki_client-rrdp_delta.o
  CC       rpki_client-rrdp_snapshot.o
  CC       rpki_client-rsc.o
  CC       rpki_client-output-ometric.o
  CC       rpki_client-rsync.o
  CC       rpki_client-rrdp_notification.o
  CC       rpki_client-tak.o
  CC       rpki_client-rrdp_util.o
rsc.c:54:3: warning: no previous prototype for function 'ConstrainedASIdentifiers_it' [-Wmissing-prototypes]
} ASN1_SEQUENCE_END(ConstrainedASIdentifiers);
  ^
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:89:1: note: expanded from here
ConstrainedASIdentifiers_it
^
rsc.c:54:3: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
rsc.c:66:3: warning: no previous prototype for function 'ConstrainedIPAddressFamily_it' [-Wmissing-prototypes]
} ASN1_SEQUENCE_END(ConstrainedIPAddressFamily);
  ^
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:99:1: note: expanded from here
ConstrainedIPAddressFamily_it
^
rsc.c:66:3: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
tak.c:72:3: warning: no previous prototype for function 'TAKey_it' [-Wmissing-prototypes]
} ASN1_SEQUENCE_END(TAKey);
  ^
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:31:1: note: expanded from here
TAKey_it
^
tak.c:72:3: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
tak.c:79:3: warning: no previous prototype for function 'TAK_it' [-Wmissing-prototypes]
} ASN1_SEQUENCE_END(TAK);
  ^
/opt/local/include/openssl/asn1t.h:160:36: note: rsc.cexpanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:44:1: note: expanded from here
TAK_it
^
tak.c:79:3: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
:74:1: warning: no previous prototype for function 'ConstrainedIPAddrBlocks_it' [-Wmissing-prototypes]
ASN1_ITEM_TEMPLATE_END(ConstrainedIPAddrBlocks);
^
/opt/local/include/openssl/asn1t.h:113:9: note: expanded from macro 'ASN1_ITEM_TEMPLATE_END'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:68:1: note: expanded from here
ConstrainedIPAddrBlocks_it
^
tak.c:145:11: warning: 'EVP_PKEY_get0_RSA' is deprecated [-Wdeprecated-declarations]
        if ((r = EVP_PKEY_get0_RSA(pkey)) == NULL) {
                 ^
rsc.c:74:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:113:9: note: expanded from macro 'ASN1_ITEM_TEMPLATE_END'
/opt/local/include/openssl/evp.h:1348:1:         ASN1_ITEM_start(tname) \note: 'EVP_PKEY_get0_RSA' has been explicitly marked deprecated here
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
rsc.c:85:3: warning: no previous prototype for function 'ResourceBlock_it' [-Wmissing-prototypes]

} ASN1_SEQUENCE_END(ResourceBlock);
  ^
/opt/local/include/openssl/asn1t.hOSSL_DEPRECATEDIN_3_0
^
/opt/local/include/openssl/macros.h:193:49: :note: 160expanded from macro 'OSSL_DEPRECATEDIN_3_0':
36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)                                   ^

                                                ^
/opt/local/include/openssl/asn1t.h:166/opt/local/include/openssl/macros.h::962:: 52note: :expanded from macro 'ASN1_SEQUENCE_END_name' 
note: expanded from macro 'OSSL_DEPRECATED'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: #     define OSSL_DEPRECATED(since) __attribute__((deprecated))expanded from macro 'ASN1_ITEM_start'

                                                   ^
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:76:1: note: expanded from here
ResourceBlock_it
^
rsc.c:85:3: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
tak.c:145:9: warning: assigning to 'RSA *' (aka 'struct rsa_st *') from 'const struct rsa_st *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        if ((r = EVP_PKEY_get0_RSA(pkey)) == NULL) {
               ^ ~~~~~~~~~~~~~~~~~~~~~~~
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
tak.c:150:16: warning: 'i2d_RSAPublicKey' is deprecated [-Wdeprecated-declarations]
        if ((rdersz = i2d_RSAPublicKey(r, &rder)) <= 0) {
                      ^
/opt/local/include/openssl/rsa.h:313:41: note: 'i2d_RSAPublicKey' has been explicitly marked deprecated here
DECLARE_ASN1_ENCODE_FUNCTIONS_name_attr(OSSL_DEPRECATEDIN_3_0,
                                        ^
/opt/local/include/openssl/macros.h:193:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/opt/local/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
rsc.c:107:3: warning: no previous prototype for function 'FileNameAndHash_it' [-Wmissing-prototypes]
} ASN1_SEQUENCE_END(FileNameAndHash);
  ^
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:52:1: note: expanded from here
FileNameAndHash_it
^
rsc.c:107:3: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
rsc.c:121:3: warning: no previous prototype for function 'RpkiSignedChecklist_it' [-Wmissing-prototypes]
} ASN1_SEQUENCE_END(RpkiSignedChecklist);
  ^
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:27: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
                          ^
<scratch space>:66:1: note: expanded from here
RpkiSignedChecklist_it
^
rsc.c:121:3: note: declare 'static' if the function is not intended to be used outside of this translation unit
/opt/local/include/openssl/asn1t.h:160:36: note: expanded from macro 'ASN1_SEQUENCE_END'
# define ASN1_SEQUENCE_END(stname) ASN1_SEQUENCE_END_name(stname, stname)
                                   ^
/opt/local/include/openssl/asn1t.h:166:9: note: expanded from macro 'ASN1_SEQUENCE_END_name'
        ASN1_ITEM_start(tname) \
        ^
/opt/local/include/openssl/asn1t.h:94:15: note: expanded from macro 'ASN1_ITEM_start'
        const ASN1_ITEM * itname##_it(void) \
              ^
output-ometric.c:131:16: error: use of undeclared identifier 'HOST_NAME_MAX'
        char hostname[HOST_NAME_MAX + 1];
                      ^
1 error generated.
make[1]: *** [rpki_client-output-ometric.o] Error 1
make[1]: *** Waiting for unfinished jobs....
5 warnings generated.
6 warnings generated.
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/src'
make: *** [all-recursive] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/work/rpki-client-8.3" && /usr/bin/make -j8 -w all 
Exit code: 2
Error: Failed to build rpki-client: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_rpki-client/rpki-client/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port rpki-client failed

Changed 13 months ago by artkiver (グレェ)

Attachment: main_withopensslvariant.log added

main.log for +openssl variant

comment:3 Changed 13 months ago by artkiver (グレェ)

Regarding the challenges with trying to build manually with the tarball (this is also true for 8.2) it doesn't seem to matter which TLS library I have installed:

Even going so far as to specify

%  ./configure --prefix=/opt/local/include --with-ssl-dir=/opt/local/bin/openssl --includedir=/opt/local/include/openssl

Results in the same

checking sha2.h usability... no
checking sha2.h presence... no
checking for sha2.h... no
checking openssl/cms.h usability... no
checking openssl/cms.h presence... no
checking for openssl/cms.h... no
configure: error: OpenSSL headers required

I have tried some other permutations as well (e.g. as mentioned here: #47091) without any different results. ;-/

Last edited 13 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 in reply to:  3 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to artkiver:

%  ./configure --prefix=/opt/local/include --with-ssl-dir=/opt/local/bin/openssl --includedir=/opt/local/include/openssl
configure: error: OpenSSL headers required

That wouldn't be the right value for --with-ssl-dir. /opt/local/bin/openssl is not a directory; it's a (symlink to a) binary.

comment:5 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

It wouldn't be the right value for --prefix either.

comment:6 in reply to:  description Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to artkiver:

output-ometric.c:131:16: error: use of undeclared identifier 'HOST_NAME_MAX'
        char hostname[HOST_NAME_MAX + 1];
                      ^
1 error generated.

As far as I can tell, macOS does not currently define HOST_NAME_MAX. I found no references to it by grepping MacOSX.sdk/usr/include on Monterey. The macOS gethostname(3) manpage used to refer to HOST_NAME_MAX so I guess macOS used to define it (or the manpage mentioned it erroneously), but that manpage currently refers to sysconf(_SC_HOST_NAME_MAX) instead. So this is a bug in rpki-client that will have to be discussed with and addressed by its developers before the port can be updated to this version.

Last edited 13 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 13 months ago by artkiver (グレェ)

Thanks for taking a look at this!

That seems like a reasonable conclusion regarding the lack of HOST_NAME_MAX.

I guess I have been confusing myself going down a rabbit hole with trying to run ./configure on a tarball manually and running into other issues. It seems as if MacPorts itself only invokes: ./configure --prefix=/opt/local (as well as the apparently spurious "--without-libtls" which I am guessing I can remove, though now I am wondering why I added it for 8.2 I think it was) but for whatever reason, attempting to replicate that on a command line manually hasn't been fruitful and had me going down a different rabbit hole.

For reference /opt/local/include/openssl is where cms.h is at least, some of the other headers which ./configure did not seem to error out on aren't there, but presumably are less critical, without going into the depths of attaching a config.log to this.

I'll continue upstream, but wanted to exhaust local possibilities first and document them insomuch as I didn't want anyone to think I was ignoring the release so much as running into challenges with the update.

comment:8 Changed 13 months ago by artkiver (グレェ)

As a note to myself, I think I figured out an error in my previous Portfile for 8.2.

% ./configure --prefix=/opt/local/ --without-libtls

Is OK and doesn't given an error.

% ./configure --prefix=/opt/local/ --without-libretls

However, is not recognized by configure, whoops. Documenting that here to remind myself to fix that too.

Anyway, I opened this Issue upstream: https://github.com/rpki-client/rpki-client-portable/issues/84 so hopefully the developers can take a gander and help.

comment:9 Changed 13 months ago by artkiver (グレェ)

OK, the upstream has a PR submitted here which seems to fix the build issues encountered:

https://github.com/rpki-client/rpki-client-portable/pull/85

For the time being I have modified the Portfile to add a couple of patchfiles with diffs to contend with that as I am unsure when the upstream project will iterate a new release.

I tested the +openssl variant as well as with libressl (instead of libressl-devel as I tend to default to locally) and they seem to build cleanly OK as well.

I am still somewhat confused about what is different when trying to use the tarball locally instead of MacPorts' but I will worry about that another time. Also cleaned up the Portfile to use --without-libtls instead of the libretls typo from before.

Changed 13 months ago by artkiver (グレェ)

A functioning Portfile for rpki-client 8.3 based upon an upstream PR referencing a couple of diffs not yet merged [as that will probably be a version bump]

Changed 13 months ago by artkiver (グレェ)

Attachment: configure.ac.diff added

diff for configure.ac addressing HOST_NAME_MAX discrepancies in rpki-client 8.3 fixed in a PR upstream.

Changed 13 months ago by artkiver (グレェ)

Attachment: unistd.h.diff added

diff for include/unistd.h in rpki-client 8.3 referencing a PR issue #85 upstream addressing the HOST_NAME_MAX challenges in macOS referenced in this ticket.

comment:10 Changed 13 months ago by artkiver (グレェ)

I submitted a PR: https://github.com/macports/macports-ports/pull/18033

Yet it failed one set of the CI build bot checks, which in turn cancelled the other set of checks:

https://github.com/macports/macports-ports/actions/runs/4474069300/jobs/7862130960?pr=18033

Looking at where it broke, from reading the error message, perhaps since I supplied a diff which modified configure.ac it requires some additional autoconf dependencies? Certainly autoconf is not an explicitly declared dependency in the Portfile, perhaps

depends_build port:autoconf

should be explicitly declared in the Portfile? However, I may be interpreting that error message incorrectly.

Last edited 13 months ago by artkiver (グレェ) (previous) (diff)

comment:11 Changed 13 months ago by artkiver (グレェ)

Closed that PR and created this one, which fails, more or less with a similar error:

https://github.com/macports/macports-ports/actions/runs/4475842487/jobs/7865630689?pr=18034

 /opt/local/var/macports/build/_Users_runner_work_macports-ports_macports-ports_ports_net_rpki-client/rpki-client/work/rpki-client-8.3/missing: line 81: aclocal-1.16: command not found
  WARNING: 'aclocal-1.16' is missing on your system.
           You should only need it if you modified 'acinclude.m4' or
           'configure.ac' or m4 files included by 'configure.ac'.
           The 'aclocal' program is part of the GNU Automake package:
           <https://www.gnu.org/software/automake>
           It also requires GNU Autoconf, GNU m4 and Perl in order to run:
           <https://www.gnu.org/software/autoconf>
           <https://www.gnu.org/software/m4/>
           <https://www.perl.org/>

Which, I guess for the sake of completeness and adhering more strictly to the error message, I should have added automake and m4 and perl as depends_build as well?

Going to try and resubmit.

comment:12 Changed 13 months ago by artkiver (グレェ)

Third try seemed to be the charm!

https://github.com/macports/macports-ports/pull/18035

So, yeah I am not entirely sure why those depends_build are required now when previously they weren't but it makes the CI build bots happy.

Whenever a new version of rpki-client is iterated with the upstream changes, I will see if I can remove the diffs and simplify the Portfile.

comment:13 Changed 13 months ago by jmroot (Joshua Root)

If you modify configure.ac, then configure has to be regenerated from it using autoconf (potentially using macros from automake, libtool and others.) You can avoid the dependency by making the resulting change directly to configure instead. If you regenerate configure, it's better to do it explicitly with e.g. use_autoreconf yes, which also adds the necessary deps for you.

comment:14 in reply to:  13 Changed 13 months ago by artkiver (グレェ)

That is good to know! Thank you for the recommendation.

Replying to jmroot:

If you modify configure.ac, then configure has to be regenerated from it using autoconf (potentially using macros from automake, libtool and others.) You can avoid the dependency by making the resulting change directly to configure instead. If you regenerate configure, it's better to do it explicitly with e.g. use_autoreconf yes, which also adds the necessary deps for you.

comment:15 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed
Summary: issues building rpki-client 8.3rpki-client: Update to 8.3

The PR was merged.

Note: See TracTickets for help on using tickets.