wrljet / hercules-helper

Utility scripts to help with building and deploying the Hercules emulator
MIT License
39 stars 14 forks source link

Doesnt' seem to work with Macos High Sierra #10

Closed moshix closed 3 years ago

moshix commented 3 years ago

older versions of Macos are still used by Hercules folks because x3270 can't be easily built on 64bit-only version of Macos like Big Sur etc.

In this case, I am using High Sierra, but the tool is not able to recognize High Sierra and assumes it's Mojave.

thanks a lot!

M

wrljet commented 3 years ago

Moshe,

I have updated Hercules-Helper to recognize High Sierra and Big Sur.

The instructions are exactly the same as what you did last week on Mojave. I have repeated them here.


A new script has been added called macOS-prerequisites. This will install the Xcode Command Line Tools and Homebrew package manager, if they are not already on your system.

This experimental work is in a branch called "mojave". A similar branch is in my fork of SDL-Hyperion-390. Those changes will be push upstream after this has been thoroughly tested on all the systems I check.

A hercules-helper.conf config file included in this branch will direct the main script to git clone Hyperion from my GitHub fork/branch rather than the default of SDL-Hyperion-390.

To get this work: (you will need to erase your existing /Users/moshe/hercules-helper folder. git clone -b mojave https://github.com/wrljet/hercules-helper.git

If git is not already installed on your system, you can grab this branch with a browser: https://github.com/wrljet/hyperion/archive/refs/heads/mojave.zip

Then run similar to before, but you may need the prerequisite step. hyperion-buildall.sh will tell you if that step is needed and you haven't run it.

cd ~/herctest
~/hercules-helper/macOS-prerequisites.sh
~/hercules-helper/hyperion-buildall.sh --auto

If anything doesn't work as expected, please send me the newest *.log file left in the herctest folder.

Thanks, Bill

wrljet commented 3 years ago

You can build 64-bit x3270 on High Sierra, Mojave, or Big Sur using these steps:

Install the required X11 components:

brew install xquartz

Log out and back in, or reboot, for X11 to become available.

Then in any directory you'd like, follow these steps:

wget http://x3270.bgp.nu/download/04.00/suite3270-4.0ga14-src.tgz
tar xfz suite3270-4.0ga14-src.tgz 
cd suite3270-4.0
export PATH=$PATH:/opt/X11/bin
./configure --enable-unix --x-includes=/opt/X11/include
make
sudo make install
which x3270

To connect to a running Hercules:

x3270 127.0.0.1:3270

rvjansen commented 3 years ago

Hi Bill,

this is what I get on Big Sur:

➜ hercinst ~/apps/hercules-helper/hyperion-buildall.sh --auto /Users/rvjansen/apps/hercules-helper/hyperion-buildall.sh: line 225: syntax error near unexpected token else' /Users/rvjansen/apps/hercules-helper/hyperion-buildall.sh: line 225:else' ➜ hercinst Tried with zsh and bash. best regards,

René.

On 7 May 2021, at 21:08, Bill Lewis @.***> wrote:

Moshe,

I have updated Hercules-Helper to recognize High Sierra and Big Sur.

The instructions are exactly the same as what you did last week on Mojave. I have repeated them here.

wrljet commented 3 years ago

René,

I made a commenting change just before checking all that in, and didn't test it. And that broke it. Nothing ever just works, does it.

Bill

wrljet commented 3 years ago

OK, should work now. (although like before I didn't test it)

rvjansen commented 3 years ago

Hi Bill,

Happy mother’s day! Thank you. Will test after visit to dad.

René.

On 9 May 2021, at 15:23, Bill Lewis @.***> wrote:

 OK, should work now.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

wrljet commented 3 years ago

Works now also on macOS 10.15 Catalina.

wrljet commented 3 years ago

As of now, release v0.9.6, this seems to work on recent macOS:

And... now on Apple M1 silicon. Developed and tested on a Mac Mini M1.

A huge thank-you to Shaikh Tissa for giving me access to his Mac Mini M1, which made the work possible, and benefits the overall SDL-Hyperion Hercules community.

I have pushed my autoconf/automake/libtool modifications up to the official repo, so this release of Hercules-Helper switches the default configuration back to using the official SDL-Hercules-390 repo for the Hercules sources (rather than my work-in-progress).

moshix commented 3 years ago

Build fails on High Sierra after updating to latest hercules-helper:

19:15:25~/hercules-helper ./h~/hercules-helper/hyperion-buildall.sh --auto 19:15:54~/hercules-helper ~/hercules-helper/hyperion-buildall.sh --auto Bash version < v4

Using logfile hyperion-buildall-2021-07-01-1.log script version: /Users/moshe/hercules-helper/hyperion-buildall.sh: v0.9.6-0-g38ba6e0

Config file: /Users/moshe/hercules-helper/hercules-helper.conf

Not yet fully supported under MacOS

General Options: --trace : false --verbose : true --prompts : false --sudo : false --detect-only : false --no-packages : false --no-rexx : false --no-gitclone : false --no-bldlvlck : false --no-autogen : true --no-configure : false --no-clean : false --no-make : false --no-tests : false --no-install : false --no-setcap : false --no-envscript : false --no-bashrc : false

System information: uname -a : Darwin mac13backup.home 17.7.0 Darwin Kernel Version 17.7.0: Thu Jun 21 22:53:14 PDT 2018; root:xnu-4570.71.2~1/RELEASE_X86_64 x86_64 uname -m : x86_64 uname -p : i386 uname -s : Darwin

System detection: OS Type : Darwin Machine Arch : x86_64 VERSION_ID : darwin VERSION_STR : 10.13.6 VERSION_MAJOR : 10 VERSION_MINOR : 13 VERSION_BUILD : 6 Apple macOS version 10.13.6 (High Sierra) found

Build tools versions: autoconf : autoconf (GNU Autoconf) 2.69 automake : automake (GNU automake) 1.16.1 libtool : Apple Inc. version cctools-921 m4 : GNU M4 1.4.6 make : GNU Make 3.81 compiler : Apple LLVM version 10.0.0 (clang-1000.10.44.4) linker : ld: unknown option: --version

Configuration: OPT_BUILD_DIR : /Users/moshe/hercules-helper OPT_INSTALL_DIR : /Users/moshe/hercules-helper/herc4x OPT_REGINA_DIR : Regina-REXX-3.6 OPT_REGINA_TARFILE : Regina-REXX-3.6.tar.gz OPT_REGINA_URL : http://www.wrljet.com/ibm360/Regina-REXX-3.6.tar.gz GIT_REPO_HYPERION : https://github.com/SDL-Hercules-390/hyperion.git [default branch] GIT_REPO_GISTS : https://github.com/SDL-Hercules-390/gists.git [default branch] GIT_REPO_EXTPKGS : https://github.com/SDL-Hercules-390 [default branch]

Performing Steps: run : Check for required system packages run : Build Regina REXX run : Git clone Hercules and external packages run : Run bldlvlck run : Build Hercules external packages skip : Run autogen run : Run configure run : Run make clean run : Run make (compile and link) run : Run make check run : Run make install run : setcap executables run : Create script to set environment variables run : Add setting environment variables from .bashrc

Step: Check for required packages:

Note: your sudo password may be requested

Required packages: wget autoconf automake libtool cmake gsed


Checking for package: wget package: wget is already installed

Checking for package: autoconf package: autoconf is already installed

Checking for package: automake package: automake is already installed

Checking for package: libtool installing package: libtool Updating Homebrew... ==> Auto-updated Homebrew! Updated 2 taps (homebrew/core and homebrew/cask). ==> Updated Formulae Updated 1 formula. ==> Updated Casks Updated 7 casks.

Warning: You are using macOS 10.13. We (and Apple) do not provide support for this old version. You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this old version.

==> Downloading https://raw.githubusercontent.com/macports/macports-ports/edf0ee1e2cf/devel/m4/files/secure_snprintf.patch Already downloaded: /Users/moshe/Library/Caches/Homebrew/downloads/3760a84bd8e06fe3d5576a1a863bbd63a34fbb99a9f5c13833ace9abd5399cb6--secure_snprintf.patch ==> Downloading https://ftp.gnu.org/gnu/m4/m4-1.4.18.tar.xz Already downloaded: /Users/moshe/Library/Caches/Homebrew/downloads/bb74c92bda9bdc32be0653ca50751920ff35cfe8f329499d0bea86fbe66ce580--m4-1.4.18.tar.xz ==> Downloading https://github.com/Homebrew/formula-patches/raw/e5fbd46a25e35663059296833568667c7b572d9a/libtool/dynamic_lookup-11.patch Already downloaded: /Users/moshe/Library/Caches/Homebrew/downloads/5a220d4e315a1ffbc9644d2bf91fe956c5a84a11689cbb8da50106ad3b71c48f--dynamic_lookup-11.patch ==> Downloading https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz Already downloaded: /Users/moshe/Library/Caches/Homebrew/downloads/a7871392bebba3d24e9db265409485330a2e81ca638579ca84ff5bf9f9040666--libtool-2.4.6.tar.xz ==> Installing dependencies for libtool: m4 ==> Installing libtool dependency: m4 ==> Patching ==> Applying secure_snprintf.patch patching file lib/vasnprintf.c Hunk #1 succeeded at 4858 (offset -11 lines). ==> ./configure --prefix=/usr/local/Cellar/m4/1.4.18 ==> make Last 15 lines from /Users/moshe/Library/Logs/Homebrew/m4/02.make: CC basename-lgpl.o CC stripslash.o CC execute.o CC exitfail.o CC fatal-signal.o CC fd-hook.o execute.c:244:35: error: use of undeclared identifier 'environ' environ)) ^ 1 error generated. make[3]: [execute.o] Error 1 make[3]: Waiting for unfinished jobs.... make[2]: [all] Error 2 make[1]: [all-recursive] Error 1 make: *** [all] Error 2

Do not report this issue to Homebrew/brew or Homebrew/core!

Error: You are using macOS 10.13. We (and Apple) do not provide support for this old version. You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this old version.

These open issues may also help: m4 1.4.19 https://github.com/Homebrew/homebrew-core/pull/78294


Checking for package: cmake Warning: Treating cmake as a formula. For the cask, use homebrew/cask/cmake package: cmake is already installed

Checking for package: gsed package: gsed is already installed

Step: Check REXX and compiler files:

REXX presence : Checking for Regina-REXX... nope Checking for ooRexx... nope CC : cc CFLAGS : CPPFLAGS : LDFLAGS : gcc presence : /usr/bin/gcc cc : Apple LLVM version 10.0.0 (clang-1000.10.44.4) g++ presence : /usr/bin/g++ looking for files ... please wait ... cc1 presence : skipped on macOS cc1plus presence : skipped on macOS

Processing started: Thu Jul 1 19:17:08 CDT 2021

Step: Build Regina Rexx [used for test scripts]:

dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib Referenced from: /usr/local/bin/wget Reason: image not found /Users/moshe/hercules-helper/hyperion-buildall.sh: line 1548: 98870 Abort trap: 6 wget "$opt_regina_url" tar: Error opening archive: Failed to open 'Regina-REXX-3.6.tar.gz' /Users/moshe/hercules-helper/hyperion-buildall.sh: line 2301: cd: Regina-REXX-3.6: No such file or directory CFLAGS="-Wno-error=implicit-function-declaration" ./configure

/Users/moshe/hercules-helper/hyperion-buildall.sh: line 2363: ./configure: No such file or directory make: *** No targets specified and no makefile found. Stop.

real 0m0.012s user 0m0.005s sys 0m0.004s sudo required to install Regina REXX in the default system directories

Password: make: *** No rule to make target `install'. Stop. 0.00 real 0.00 user 0.00 sys

which rexx:

Step: git clone all required repos:

git clone https://github.com/SDL-Hercules-390/hyperion.git Cloning into 'hyperion'...

Cloning gists / extpkgs from https://github.com/SDL-Hercules-390/gists.git git clone https://github.com/SDL-Hercules-390/gists.git Cloning into 'gists'...


git clone https://github.com/SDL-Hercules-390/crypto crypto-0 Cloning into 'crypto-0'...

git clone https://github.com/SDL-Hercules-390/decNumber decNumber-0 Cloning into 'decNumber-0'...

git clone https://github.com/SDL-Hercules-390/SoftFloat SoftFloat-0 Cloning into 'SoftFloat-0'...

git clone https://github.com/SDL-Hercules-390/telnet telnet-0 Cloning into 'telnet-0'...

Step: util/bldlvlck:

This utility will check the level of various utilities needed to build hercules. Checking is done against versions that are KNOWN to work. This doesn't mean a build will NOT succeed with older versions of the utilities, but will give a hint as to what package may need an upgrade if the build ever fails with some odd reason.

Machine architecture is x86_64

OK autoconf requires 2.64, found 2.69

OK automake requires 1.9, found 1.16.1

OK cmake requires 3.2, found 3.16.4

OK flex requires 2.5, found 2.5.35

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.8.dylib Referenced from: /usr/local/bin/gawk Reason: image not found Use of uninitialized value $resp[0] in scalar chomp at util/bldlvlck line 69. Use of uninitialized value $resp in pattern match (m//) at util/bldlvlck line 190. Use of uninitialized value $resp in pattern match (m//) at util/bldlvlck line 194. HUH? UPGRADE gawk requires 3.0, found 1 URL: http://www.gnu.org/directory/gawk.html

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 OK gcc requires 5.0.0, found 10.0.0

OK grep requires 1, found 2.5.1

ld: unknown option: --version Use of uninitialized value $resp[0] in scalar chomp at util/bldlvlck line 69. Use of uninitialized value $resp in pattern match (m//) at util/bldlvlck line 190. Use of uninitialized value $resp in pattern match (m//) at util/bldlvlck line 194. HUH? UPGRADE ld requires 2.22, found 1 URL: http://www.gnu.org/directory/binutils.html

Apple/Darwin ==> custom version parsing! OK m4 requires 1.4.6, found 1.4.6

OK make requires 3.79, found 3.81

OK perl requires 5.6, found 5.18.2

Apple/Darwin ==> sed changed to gsed! OK gsed requires 3.02, found 4.8


Step: Prepare and build extpkgs:

Defaulting to x86 machine type in extpkgs.sh.ini

cmdline = extpkgs.sh c d s t

action = BUILD crypto_repo = "/Users/moshe/hercules-helper/extpkgs/repos/crypto-0" decnumber_repo = "/Users/moshe/hercules-helper/extpkgs/repos/decNumber-0" softfloat_repo = "/Users/moshe/hercules-helper/extpkgs/repos/SoftFloat-0" telnet_repo = "/Users/moshe/hercules-helper/extpkgs/repos/telnet-0" install_dir = "/Users/moshe/hercules-helper/extpkgs/." cpu = "x86" crypto ... 64-bit Debug ... FAILED!

One or more External Packages has FAILED! :(

Skipping step: autogen.sh (--no-autogen)

Step: configure:

Disabling "getopt wrapper kludge" for Apple Darwin

~/hercules-helper/hyperion ~/hercules-helper/hyperion ../configure --enable-optimization="-O2 -march=native" --enable-extpkgs=/Users/moshe/hercules-helper/extpkgs --prefix=/Users/moshe/hercules-helper/herc4x --enable-custom="Built using Hercules-Helper (version: v0.9.6-0-g38ba6e0)" --enable-regina-rexx --disable-getoptwrapper

checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ../autoconf/install-sh -c -d 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 to enable maintainer-specific portions of Makefiles... no checking build system type... x86_64-apple-darwin17.7.0 checking host system type... x86_64-apple-darwin17.7.0 checking target system type... x86_64-apple-darwin17.7.0 checking whether make supports the include directive... yes (GNU style) checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking target CPU architecture ... x86 checking target CPU bitness ... 64 configure: Detected GCC equivalent level for gcc : 4.2.1 checking how to print strings... printf checking for a sed that does not truncate output... /usr/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 gcc... /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)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking how to convert x86_64-apple-darwin17.7.0 file names to x86_64-apple-darwin17.7.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin17.7.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... dlltool 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 /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 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... gcc -E checking for ANSI C header files... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... no checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... no checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... no checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... yes checking for gcc option to produce PIC... -fno-common -DPIC checking if gcc PIC flag -fno-common -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.8.dylib Referenced from: /usr/local/bin/awk Reason: image not found dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.8.dylib Referenced from: /usr/local/bin/awk Reason: image not found darwin17.7.0 dyld checking how to hardcode library paths into programs... immediate checking for dlopen in -ldl... yes checking whether a program can dlopen itself... yes checking whether a statically linked program can dlopen itself... yes 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... no checking what extension is used for runtime loadable modules... .so checking what variable specifies run-time module search path... DYLD_LIBRARY_PATH checking for the default library search path... /usr/local/lib /lib /usr/lib checking for library containing dlopen... none required checking for dlerror... yes checking for shl_load... no checking for shl_load in -ldld... no checking for dldlink in -ldld... no checking for prefix in compiled symbols... yes checking whether we have to add an underscore for dlsym... unknown checking whether deplibs are loaded by dlopen... yes checking for argz.h... no checking for error_t... no checking for argz_add... no checking for argz_append... no checking for argz_count... no checking for argz_create_sep... no checking for argz_insert... no checking for argz_next... no checking for argz_stringify... no checking whether libtool supports -dlopen/-dlpreopen... yes checking for ltdl.h... no checking where to find libltdl headers... -I$(top_srcdir)/libltdl checking where to find libltdl library... $(top_build_prefix)libltdl/libltdlc.la checking for unistd.h... (cached) yes checking for dl.h... no checking for sys/dl.h... no checking for dld.h... no checking for mach-o/dyld.h... no checking for dirent.h... yes checking for closedir... yes checking for opendir... yes checking for readdir... yes checking for strlcat... yes checking for strlcpy... yes configure: (use of lt_dlopen forced by Hercules Dynamic Loader requirement) checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking setjmp.h usability... yes checking setjmp.h presence... yes checking for setjmp.h... yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking for stdlib.h... (cached) no ERROR: Required header 'stdlib.h' not found
checking for string.h... (cached) yes checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking time.h usability... yes checking time.h presence... yes checking for time.h... yes checking for unistd.h... (cached) yes checking for sys/stat.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for sys/types.h... (cached) yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking whether HQA_DIR is defined ... no checking for sys/socket.h... yes checking for netinet/in.h... no checking for net/if.h... yes checking for net/route.h... yes checking for net/tcp.h... no checking for netinet/tcp.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking linux/if_tun.h usability... no checking linux/if_tun.h presence... no checking for linux/if_tun.h... no checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for linux/ipv6.h... no checking for net/if_var.h... yes checking for netinet/in_var.h... no checking for netinet6/in6_var.h... no checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for sys/mount.h... no checking for stdatomic.h... no checking for sys/sysctl.h... no checking for assert.h... yes checking sys/mtio.h usability... no checking sys/mtio.h presence... no checking for sys/mtio.h... no checking sys/resource.h usability... no checking sys/resource.h presence... yes configure: WARNING: sys/resource.h: present but cannot be compiled configure: WARNING: sys/resource.h: check for missing prerequisite headers? configure: WARNING: sys/resource.h: see the Autoconf documentation configure: WARNING: sys/resource.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/resource.h: proceeding with the compiler's result checking for sys/resource.h... no checking sys/uio.h usability... yes checking sys/uio.h presence... yes checking for sys/uio.h... yes checking sys/utsname.h usability... yes checking sys/utsname.h presence... yes checking for sys/utsname.h... yes checking sys/wait.h usability... no checking sys/wait.h presence... yes configure: WARNING: sys/wait.h: present but cannot be compiled configure: WARNING: sys/wait.h: check for missing prerequisite headers? configure: WARNING: sys/wait.h: see the Autoconf documentation configure: WARNING: sys/wait.h: section "Present But Cannot Be Compiled" configure: WARNING: sys/wait.h: proceeding with the compiler's result checking for sys/wait.h... no checking sys/un.h usability... yes checking sys/un.h presence... yes checking for sys/un.h... yes checking byteswap.h usability... no checking byteswap.h presence... no checking for byteswap.h... no checking bzlib.h usability... yes checking bzlib.h presence... yes checking for bzlib.h... yes checking for dlfcn.h... (cached) no checking fenv.h usability... yes checking fenv.h presence... yes checking for fenv.h... yes checking for inttypes.h... (cached) no checking for stdint.h... (cached) yes checking stdbool.h usability... no checking stdbool.h presence... no checking for stdbool.h... no checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking for ltdl.h... (cached) no checking malloc.h usability... no checking malloc.h presence... no checking for malloc.h... no checking math.h usability... yes checking math.h presence... yes checking for math.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking pwd.h usability... yes checking pwd.h presence... yes checking for pwd.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for time.h... (cached) yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking sys/capability.h usability... no checking sys/capability.h presence... no checking for sys/capability.h... no checking sys/prctl.h usability... no checking sys/prctl.h presence... no checking for sys/prctl.h... no checking sys/syscall.h usability... yes checking sys/syscall.h presence... yes checking for sys/syscall.h... yes checking rexx.h usability... no checking rexx.h presence... no checking for rexx.h... no checking oorexxapi.h usability... no checking oorexxapi.h presence... no checking for oorexxapi.h... no checking regina/rexxsaa.h usability... no checking regina/rexxsaa.h presence... no checking for regina/rexxsaa.h... no checking rexxsaa.h usability... no checking rexxsaa.h presence... no checking for rexxsaa.h... no checking whether SIGPIPE is declared... yes checking whether SIGBUS is declared... yes checking whether IFNAMSIZ is declared... no checking whether LOGIN_NAME_MAX is declared... no checking whether _SC_NPROCESSORS_CONF is declared... yes checking whether _SC_NPROCESSORS_ONLN is declared... yes checking whether SIOCSIFNETMASK is declared... no checking whether SIOCSIFBRDADDR is declared... no checking whether SIOCSIFHWADDR is declared... no checking whether SIOCGIFHWADDR is declared... no checking whether SIOCADDRT is declared... no checking whether SIOCDELRT is declared... no checking whether SIOCDIFADDR is declared... no configure: Checking for TCP keepalive support... checking whether SO_KEEPALIVE is declared... yes checking whether TCP_KEEPIDLE is declared... no checking whether TCP_KEEPINTVL is declared... yes checking whether TCP_KEEPCNT is declared... yes configure: TCP keepalive support... PARTIAL checking for __int128_t... yes checking for u_int8_t... yes checking for useconds_t... yes checking for id_t... yes checking for u_char... yes checking for u_short... yes checking for u_int... yes checking for u_long... yes checking for in_addr_t... yes checking for socklen_t... yes checking for _pipe in -lmsvcrt... no checking for dlopen in -ldl... yes checking for sqrt in -lm... yes checking for connect in -lsocket... no checking for gethostbyname in -lnsl... no checking for inet_aton in -lresolv... yes checking for uncompress in -lz... yes checking for BZ2_bzBuffToBuffDecompress in -lbz2... yes checking for sched_yield in -lrt... no checking for pthread_setname_np... yes checking for pthread_rwlockattr_setpshared... yes checking for memrchr... no checking for getopt_long... yes checking for sqrtl... yes checking for ldexpl... yes checking for fabsl... yes checking for fmodl... yes checking for frexpl... yes checking for ldexpf... yes checking for frexpf... yes checking for fabsf... yes checking for rint... yes checking for strlcpy... (cached) yes checking for strlcat... (cached) yes checking for strerror_r... yes checking for strsignal... yes checking for sys_siglist... yes checking for InitializeCriticalSectionAndSpinCount... no checking for sleep... yes checking for usleep... yes checking for nanosleep... yes checking for sched_yield... yes checking for strtok_r... yes checking for pipe... yes checking for gettimeofday... yes checking for getpgrp... yes checking for scandir... yes checking for alphasort... yes checking for getlogin... yes checking for getlogin_r... yes checking for realpath... yes checking for fdatasync... yes checking for fsync... yes checking for ftruncate... yes checking for inet_aton... yes checking for fork... yes checking for socketpair... yes checking for sysconf... yes checking for mlock... yes checking for mlockall... yes checking for pvalloc... no checking for valloc... yes checking for posix_memalign... yes checking for vsscanf... yes checking for setresuid... no checking for getresuid... no checking for setreuid... yes checking for geteuid... yes checking for getuid... yes checking whether fdatasync is supported... no checking for struct sockaddr_in.sin_len... no checking for struct in_addr.s_addr... no checking for struct in6_ifreq.ifr6_addr... no checking for struct in6_ifreq.ifr_ifru.ifru_flags... no checking for struct sigaction.sa_sigaction... yes checking for struct timespec.tv_nsec... no checking for struct timespec.tv_nsec... (cached) no checking whether byte ordering is bigendian... no checking size of int... 0 checking size of long... 0 checking size of long long... 0 checking size of size_t... 0 checking size of int *... 0 checking size of off_t... 0 checking size of pthread_t... 0 configure: begin check: whether byte structs are aligned/rounded by default... checking size of struct bytestruct... 0 configure: results: byte structs are aligned/rounded by default... yes ERROR: Size of structures are aligned/rounded and we don't know how to tell the compiler otherwise checking if this is the broken 2.96 version of GCC... no checking if '_bswap' builtins are available... yes checking if atomic '_sync' builtins are available... yes checking if 'atomic' intrinsics are available... yes checking if C11 atomics are available... no checking C99 struct flexible arrays support... no checking whether 'attribute ((format(printf,n,n)))' is supported... yes checking whether 'attribute ((regparm(n)))' is supported... yes checking whether GCC supports diagnostic pragma... yes checking whether GCC supports diagnostic push/pop pragma... yes checking whether GCC issues 'function defined but not used' warnings... yes checking whether GCC issues 'variable set but not used' warnings... no checking whether 'attribute ((regparm(3)))' is broken... no checking whether 'builtin_alloca' is broken... no checking whether preprocessor macro argument counting broken... no checking if this is GCC with broken '-O3' option... dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.8.dylib Referenced from: /usr/local/bin/awk Reason: image not found ../configure: line 19676: 3245 Abort trap: 6 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null

checking if 'pthread_setname_np' takes only name... yes checking if 'pthread_setname_np' takes 3 arguments... no checking for gcc strict aliasing insanity... yes checking whether '-traditional-cpp' is K&R C preprocessor... yes checking whether byte-swapping can be done using assembler ... yes checking whether 'optreset' needed for 'getopt' use... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking for off_t... yes checking for _LARGEFILE_SOURCE value needed for large files... no configure: Using External Packages override directory /Users/moshe/hercules-helper/extpkgs configure: NOTICE: sizeof(__int128_t) < 16; max CPU engines = 64 checking whether getopt wrapper kludge is necessary... no (forced) ERROR: Regina Rexx support requested but rexxsaa.h is not available ERROR: IPv6 support requested but struct in6_ifreq is not available configure: error: Please correct the above error(s) and try again

./config.status --config ... /Users/moshe/hercules-helper/hyperion-buildall.sh: line 2705: ./config.status: No such file or directory

Step: make clean:

make clean make: *** No rule to make target `clean'. Stop.

Step: make:

time make -j 4 2>&1 make: *** No targets specified and no makefile found. Stop.

real 0m0.010s user 0m0.004s sys 0m0.004s [[ error: ]] Make failed!

wrljet commented 3 years ago

Moshe,

Could you run this and post the output, please:

brew info wget

And it's clear I need to add a lot of error detection to keep things from continuing to run after something bad has already happened. :-)

Bill

moshix commented 3 years ago

brew info wget wget: stable 1.21.1, HEAD Internet file retriever https://www.gnu.org/software/wget/ /usr/local/Cellar/wget/1.21.1 (87 files, 4MB) * Built from source on 2021-05-25 at 01:36:55 From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/wget.rb License: GPL-3.0-or-later ==> Dependencies Build: pkg-config ✔ Required: libidn2 ✔, openssl@1.1 ✔ ==> Options --HEAD Install HEAD version ==> Analytics install: 112,504 (30 days), 368,005 (90 days), 1,563,848 (365 days) install-on-request: 112,066 (30 days), 366

wrljet commented 3 years ago

That's about what mine says. I wonder why wget didn't work, giving you this error:

dyld: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib
Referenced from: /usr/local/bin/wget
Reason: image not found

Let's try two things. Run wget by hand, in some junk directory and see if it works:

wget "http://www.wrljet.com/ibm360/Regina-REXX-3.6.tar.gz"

And run this and report back:

ls /usr/local/opt/openssl*

moshix commented 3 years ago

09:43:28~ wget "http://www.wrljet.com/ibm360/Regina-REXX-3.6.tar.gz" --2021-07-03 09:43:35-- http://www.wrljet.com/ibm360/Regina-REXX-3.6.tar.gz Resolving www.wrljet.com (www.wrljet.com)... 2602:fe6b:1012:1::da:155, 192.80.49.1 Connecting to www.wrljet.com (www.wrljet.com)|2602:fe6b:1012:1::da:155|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1140272 (1.1M) [application/x-gzip] Saving to: ‘Regina-REXX-3.6.tar.gz’

Regina-REXX-3.6.tar 100%[===================>] 1.09M 1.11MB/s in 1.0s

2021-07-03 09:43:36 (1.11 MB/s) - ‘Regina-REXX-3.6.tar.gz’ saved [1140272/1140272]

09:43:36~ ls /usr/local/opt/openssl* /usr/local/opt/openssl: AUTHORS NEWS lib CHANGES README share INSTALL_RECEIPT.json bin LICENSE include

/usr/local/opt/openssl@1.1: AUTHORS NEWS lib CHANGES README share INSTALL_RECEIPT.json bin LICENSE include 09:43:47~

moshix commented 3 years ago

removing /usr/local/include, then removing hombrew and all packages, then re-installing homebrew fixed the problem. works now.