General Category > LisaList2
LisaEm 1.2.7-RC4 support bug reports
rayarachelian:
That smells like a linking ordering issue, can you try running this?
--- Code: ---g++ -o bin/LisaEm -lpthread -liconv obj/floppy.o obj/profile.o obj/unvars.o obj/vars.o obj/glue.o obj/fliflo_queue.o obj/cops.o obj/zilog8530.o obj/via6522.o obj/irq.o obj/mmu.o obj/rom.o obj/romless.o obj/memory.o obj/symbols.o obj/lisaem_wx.o obj/LisaConfig.o obj/LisaConfigFrame.o obj/LisaSkin.o obj/hq3x-3x.o obj/imagewriter-wx.o src/lib/libGenerator/lib/libGenerator.a src/lib/libdc42/lib/libdc42.a -lstdc++.6 -L/usr/local/wx3.1.2-cocoa-x86-macOS-10.11-clang-sdl/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL /usr/local/wx3.1.2-cocoa-x86-macOS-10.11-clang-sdl/lib/libwx_osx_cocoau-3.1.a -L/opt/local/lib -lSDL2 -framework WebKit -L/opt/local/lib -lSDL2 -lwxtiff-3.1 -lwxjpeg-3.1 -lwxpng-3.1 -lwxregexu-3.1 -lwxscintilla-3.1 -lwxzlib-3.1 -framework Security
--- End code ---
and see if it links it?
If it helps, my 10.11 is 10.11.5.
xcode-select -p shows the full XCode 7.2 install, i.e.:
/Applications/Xcode.app/Contents/Developer
Which is likely where the 10.12 stuff came from, not sure why wxWidgets was linked against the later 10.12 SDK.
gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.5.0
Thread model: posix
Just tried building it against wx3.1.2, and in obj/build-errors.txt this is the linking text I get:
--- Code: ------------------------- /tmp/slot.881.39.sh.done ----------------------- g++ -o bin/LisaEm obj/floppy.o obj/profile.o obj/unvars.o obj/vars.o obj/glue.o obj/fliflo_queue.o obj/cops.o obj/zilog8530.o obj/via6522.o obj/irq.o obj/mmu.o obj/rom.o obj/romless.o obj/memory.o obj/symbols.o obj/lisaem_wx.o obj/LisaConfig.o obj/LisaConfigFrame.o obj/LisaSkin.o obj/hq3x-3x.o obj/imagewriter-wx.o src/lib/libGenerator/lib/libGenerator.a src/lib/libdc42/lib/libdc42.a -lstdc++.6 -L/usr/local/wx3.1.2-cocoa-x86-macOS-10.11-clang-sdl/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL /usr/local/wx3.1.2-cocoa-x86-macOS-10.11-clang-sdl/lib/libwx_osx_cocoau-3.1.a -llzma -framework WebKit -lwxtiff-3.1 -lwxjpeg-3.1 -lwxpng-3.1 -lwxregexu-3.1 -lwxscintilla-3.1 -lwxzlib-3.1 -llzma -framework Security -lpthread -liconv -llzma
in: /Volumes/shared/code/lisaem-1.2.7
!!* Linked ./bin/LisaEm
--- End code ---
Now, if I run the linking command you've pasted, I get an error saying that /opt/local/lib doesn't exist (it doesn't in my VM, which is fine). I'm guessing that somehow that snuck in somewhere and possibly one of the libraries in /opt/local/lib got included which may be causing an issue, not sure, but that might be something to look at as well. Is that from Darwin Ports? I'm using brew on this vm, but ports on older macos:
--- Code: ---elcapitan:lisaem-1.2.7 ray$ g++ -o bin/LisaEm obj/floppy.o obj/profile.o obj/unvars.o obj/vars.o obj/glue.o obj/fliflo_queue.o obj/cops.o obj/zilog8530.o obj/via6522.o obj/irq.o obj/mmu.o obj/rom.o obj/romless.o obj/memory.o obj/symbols.o obj/lisaem_wx.o obj/LisaConfig.o obj/LisaConfigFrame.o obj/LisaSkin.o obj/hq3x-3x.o obj/imagewriter-wx.o src/lib/libGenerator/lib/libGenerator.a src/lib/libdc42/lib/libdc42.a -lstdc++.6 -L/usr/local/wx3.1.2-cocoa-x86-macOS-10.11-clang-sdl/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL /usr/local/wx3.1.2-cocoa-x86-macOS-10.11-clang-sdl/lib/libwx_osx_cocoau-3.1.a -L/opt/local/lib -lSDL2 -framework WebKit -L/opt/local/lib -lSDL2 -lwxtiff-3.1 -lwxjpeg-3.1 -lwxpng-3.1 -lwxregexu-3.1 -lwxscintilla-3.1 -lwxzlib-3.1 -framework Security -lpthread -liconv
ld: warning: directory not found for option '-L/opt/local/lib'
ld: warning: directory not found for option '-L/opt/local/lib'
ld: library not found for -lSDL2
clang: error: linker command failed with exit code 1 (use -v to see invocation)
elcapitan:lisaem-1.2.7 ray$
--- End code ---
If I remove /opt/local/lib from that command, instead, I get complaints about lzma, and removing -lwxzlib-3.1 throws other errors.
--- Code: ---Undefined symbols for architecture x86_64:
"_lzma_code", referenced from:
_LZMADecode in libwxtiff-3.1.a(wxtiff_tif_lzma.o)
_LZMAPostEncode in libwxtiff-3.1.a(wxtiff_tif_lzma.o)
_LZMAEncode in libwxtiff-3.1.a(wxtiff_tif_lzma.o)
"_lzma_end", referenced from:
...
--- End code ---
Not sure how to get closer to your setup. I'd say check to ensure xcode-select -p shows XCode 7.2, worst case try to rebuild wxWidgets maybe tweaking the build-wx3.1.2-macos script disabling any libs you don't need. If you run ../configure --help in the wxWidgets build directory and look for both with and without options, see what else can be disabled, or set to builtin.
The one I shipped in rc1 is linked against wx3.1.3 - you can modify the build-wx3.1.2 to build both 3.1.2 and 3.1.3 like so at line 15:
--- Code: ---for VER in 3.1.3 3.1.2; do
--- End code ---
Pls let me know what winds up working for you (or not).
Al Kossow:
I use ports, which is no doubt where the /opt/local/.. stuff comes from
Then, I have a different tool chain for building MAME
sigh..
Al Kossow:
just noticed at the start of the build
--
aek$ ./*modern*
MIN_MACOSX_VERSION: 10.12
Al Kossow:
https://stackoverflow.com/questions/57734434/libiconv-or-iconv-undefined-symbol-on-mac-osx
rayarachelian:
Can you check that script for this snip? I think it's there since it does produce that output, but want to make sure.
It should ask XCode for what it supports. Might be it needs a slightly earlier XCode version that targets for 10.11 instead.
--- Code: ---#!/usr/bin/env bash
OSVER="$( sw_vers -productVersion | cut -f1,2 -d'.' )"
export MIN_MACOSX_VERSION="$( xcodebuild -showsdks 2>/dev/null | grep macosx10 | cut -d'-' -f2 | sed -e 's/sdk macosx//g' | sort -n | head -1 )"
[[ -z "$MIN_MACOSX_VERSION" ]] && export MIN_MACOSX_VERSION="$( basename $(ls -1d $(xcode-select -p )/SDKs/* | grep -i macosx10 | sort -n | head -1 ) | sed -e 's/.sdk$//g' -e 's/[Mm]ac[Oo][Ss][Xx]//g' )"
[[ -z "$MIN_MACOSX_VERSION" ]] && export MIN_MACOSX_VERSION="$OSVER"
OSVER="macOS-$( sw_vers -productVersion | cut -f1,2 -d'.' )"
echo "MIN_MACOSX_VERSION: $MIN_MACOSX_VERSION"
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version