homebrew weirdness

hostscript
Error: No such keg: /usr/local/Cellar/ghostscript
RogerPackMBP:Downloads packrd$ brew install ghostscript
==> Installing dependencies for ghostscript: libtiff
==> Installing ghostscript dependency: libtiff
==> Using the sandbox
==> Downloading http://download.osgeo.org/libtiff/tiff-4.0.7.tar.gz
Already downloaded: /Users/packrd/Library/Caches/Homebrew/libtiff-4.0.7.tar.gz
==> Downloading https://mirrors.ocf.berkeley.edu/debian/pool/main/t/tiff/tiff_4.0.7-5.debian.tar.xz
Already downloaded: /Users/packrd/Library/Caches/Homebrew/libtiff–patch-f4183c48ed74b6c3c3a74ff1f10f0cf972d3dba0f840cf28b5a3f3846ceb2be6.tar.xz
==> Patching
==> Applying patches/01-CVE.patch
patching file ChangeLog
patching file libtiff/tif_read.c
patching file libtiff/tiffiop.h
==> Applying patches/02-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/03-CVE.patch
patching file ChangeLog
patching file libtiff/tif_luv.c
patching file libtiff/tif_pixarlog.c
==> Applying patches/04-CVE.patch
patching file ChangeLog
patching file libtiff/tif_dirread.c
patching file libtiff/tif_strip.c
==> Applying patches/05-CVE.patch
patching file ChangeLog
patching file libtiff/tif_ojpeg.c
==> Applying patches/06-CVE.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> Applying patches/07-CVE.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> Applying patches/08-CVE.patch
patching file ChangeLog
patching file tools/tiffcrop.c
==> Applying patches/09-CVE.patch
patching file ChangeLog
patching file tools/tiffinfo.c
==> Applying patches/10-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/11-CVE.patch
patching file ChangeLog
patching file libtiff/tif_dir.c
==> Applying patches/12-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/13-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/14-CVE.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> Applying patches/15-TIFFFaxTabEnt_bugfix.patch
patching file ChangeLog
patching file libtiff/tif_fax3.h
==> Applying patches/16-CVE-2016-10094.patch
patching file ChangeLog
patching file tools/tiff2pdf.c
==> Applying patches/17-CVE-2017-5225.patch
patching file ChangeLog
patching file tools/tiffcp.c
==> ./configure –prefix=/usr/local/Cellar/libtiff/4.0.7_2 –without-x –with-jpeg-include-dir=/usr/local/opt/jpeg/include –with-jpeg-lib-dir=/usr/local/opt/jpeg/lib –disable-lzma
Last 15 lines from /Users/packrd/Library/Logs/Homebrew/libtiff/01.configure:
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… config/install-sh -c -d
checking for gawk… no
checking for mawk… no
checking for nawk… no
checking for awk… awk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking how to create a pax tar archive… gnutar
checking whether to enable maintainer-specific portions of Makefiles… no
checking for gcc… clang
checking whether the C compiler works… no
configure: error: in `/private/tmp/libtiff-20170302-16420-10zr6ye/tiff-4.0.7′:
configure: error: C compiler cannot create executables
See `config.log’ for more details

READ THIS: http://docs.brew.sh/Troubleshooting.html

RogerPackMBP:Downloads packrd$ gcc
clang: error: no input files
RogerPackMBP:Downloads packrd$ brew clean libtiff
Error: Unknown command: clean
RogerPackMBP:Downloads packrd$ brew purge libtiff
Error: Unknown command: purge
RogerPackMBP:Downloads packrd$ brew help
Example usage:
brew search [TEXT|/REGEX/]
brew (info|home|options) [FORMULA…]
brew install FORMULA…
brew update
brew upgrade [FORMULA…]
brew uninstall FORMULA…
brew list [FORMULA…]

Troubleshooting:
brew config
brew doctor
brew install -vd FORMULA

Developers:
brew create [URL [–no-fetch]]
brew edit [FORMULA…]
http://docs.brew.sh/Formula-Cookbook.html

Further help:
man brew
brew help [COMMAND]
brew home
RogerPackMBP:Downloads packrd$ brew remove libtiff
Error: Refusing to uninstall /usr/local/Cellar/libtiff/4.0.6_2
because it is required by gd, which is currently installed.
You can override this and force removal with:
brew uninstall –ignore-dependencies libtiff
RogerPackMBP:Downloads packrd$ brew uninstall –ignore-dependencies libtiff
Uninstalling /usr/local/Cellar/libtiff/4.0.6_2… (262 files, 5M)
RogerPackMBP:Downloads packrd$ brew install libtiff
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.7_2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtiff-4.0.7_2.sierra.bottle.tar.gz
? /usr/local/Cellar/libtiff/4.0.7_2: 248 files, 3.4M
RogerPackMBP:Downloads packrd$ brew install ghostscript
==> Downloading https://homebrew.bintray.com/bottles/ghostscript-9.20.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ghostscript-9.20.sierra.bottle.tar.gz
? /usr/local/Cellar/ghostscript/9.20: 717 files, 63.9M
RogerPackMBP:Downloads packrd$ gs
GPL Ghostscript 9.20 (2016-09-26)
Copyright (C) 2016 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GS>^[[21~
Error: /undefined in 21~
Operand stack:
–nostringval–
Execution stack:
%interp_exit .runexec2 –nostringval– –nostringval– –nostringval– 2 %stopped_push –nostringval– –nostringval– %loop_continue –nostringval– –nostringval– false 1 %stopped_push .runexec2 –nostringval– –nostringval– –nostringval– 2 %stopped_push –nostringval–
Dictionary stack:
–dict:1199/1684(ro)(G)– –dict:0/20(G)– –dict:78/200(L)–
Current allocation mode is local
Current file position is 6
GS<1>0.
GS<2>.
Error: /undefined in .
Operand stack:
–nostringval– 0.0

crystal db woe

cast from Nil to String failed, at /Users/packrd/dev/ruby/sensible-cinema/html5_javascript/kemal_server/lib/db/src/db/result_set.cr:79 (TypeCastError)


meant "you have a field in crystal like DB.mapp(name: String) so crystal land thinks it can never be null, but this was nil in your DB

curl woe

curl https://127.0.0.1:3000 -k
curl: (35) Unknown SSL protocol error in connection to 127.0.0.1:-9847

and

 

crystal kemal
Unhandled exception in spawn:
header content contains invalid character ‘\u{0}’ (ArgumentError)
0x103228452: *CallStack::unwind:Array(Pointer(Void)) at ??
0x1032283f1: *CallStack#initialize:Array(Pointer(Void)) at ??
0x1032283c8: *CallStack::new:CallStack at ??
0x103214631: *raise<ArgumentError>:NoReturn at ??
0x1032a44b7: *HTTP::Headers#check_invalid_header_content<String>:Nil at ??
0x1032a4653: *HTTP::Headers#add<String, String>:HTTP::Headers at ??
0x103302129: *HTTP::Request::from_io<(OpenSSL::SSL::Socket::Server | TCPSocket+)>:(HTTP::Request | HTTP::Request::BadRequest | Nil) at ??
0x1032f8d18: *HTTP::Server::RequestProcessor#process<(OpenSSL::SSL::Socket::Server | TCPSocket+), (OpenSSL::SSL::Socket::Server | TCPSocket+), IO::FileDescriptor>:Nil at ??
0x1032f8c95: *HTTP::Server::RequestProcessor#process<(OpenSSL::SSL::Socket::Server | TCPSocket+), (OpenSSL::SSL::Socket::Server | TCPSocket+)>:Nil at ??
0x1032f3a16: *HTTP::Server#handle_client<(TCPSocket+ | Nil)>:Nil at ??
0x103226456: ~procProc(Nil)@/usr/local/Cellar/crystal-lang/0.20.5/src/http/server.cr:148 at ??
0x1032323c4: *Fiber#run:(IO::FileDescriptor | Nil) at ??
0x103222b49: ~proc2Proc(Fiber, (IO::FileDescriptor | Nil))@/usr/local/Cellar/crystal-lang/0.20.5/src/fiber.cr:29 at ??
^CKemal is going to take a rest!

meant “you’re trying to use curl to download https url but it’s server is actually serving http”

sdl2 mingw woe

CC     build/SDL_xinput.lo
In file included from src/core/windows/SDL_xinput.c:24:0:
src/core/windows/SDL_xinput.h:113:3: error: conflicting types for ‘XINPUT_GAMEPAD_EX’
} XINPUT_GAMEPAD_EX;
^
In file included from src/core/windows/SDL_xinput.h:29:0,
from src/core/windows/SDL_xinput.c:24:
/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/include/xinput.h:182:3: note: previous declaration of ‘XINPUT_GAMEPAD_EX’ was here
} XINPUT_GAMEPAD_EX, *PXINPUT_GAMEPAD_EX;
^
In file included from src/core/windows/SDL_xinput.c:24:0:
src/core/windows/SDL_xinput.h:119:3: error: conflicting types for ‘XINPUT_STATE_EX’
} XINPUT_STATE_EX;
^
In file included from src/core/windows/SDL_xinput.h:29:0,
from src/core/windows/SDL_xinput.c:24:
/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/include/xinput.h:192:3: note: previous declaration of ‘XINPUT_STATE_EX’ was here
} XINPUT_STATE_EX, *PXINPUT_STATE_EX;
^
Makefile:547: recipe for target ‘build/SDL_xinput.lo’ failed
make: *** [build/SDL_xinput.lo] Error 1

 

meant “mingw-w64 updated recently and sdl doesn’t handle it yet” (I think…)

java woe

PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property ‘base’ threw exception; nested exception is java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.replaceEach(Ljava/lang/String;[Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;

meant “you are using a spring that uses/requires commons-lang 2.16 but some different other dep. is overriding that with an older version of commons-lang

I think…

java woe

The prefix “xsi” for attribute “xsi:noNamespaceSchemaLocation” associated with an element type “_preservation_instructions” is not bound.

 

meant add this to the xml file itself:

xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”

Roger's meanderings, notes to himself, bug reports, and other things