[MacPorts] #67276: gmic-lib @3.2.3: upgrade fails with link error, when previous version active
MacPorts
noreply at macports.org
Thu Apr 20 22:59:15 UTC 2023
#67276: gmic-lib @3.2.3: upgrade fails with link error, when previous version
active
---------------------+-------------------------
Reporter: mascguy | Owner: Schamschula
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Keywords: | Port: gmic-lib
---------------------+-------------------------
Presumably should be a relatively easy fix, by changing the link order:
{{{
gmic-lib/work/compwrap/cxx/usr/bin/clang++ -o use_libgmic use_libgmic.cpp
-std=c++11 -pedantic -lgmic -L/opt/local/lib -lz -L.
-L/opt/local/lib -Wl,-rpath,. -lpthread -L/opt/local/lib -lfftw3
-lfftw3_threads -L/opt/local/lib -lcurl -L/opt/local/lib -lpng16
-L/opt/local/lib -ljpeg -L/opt/local/lib -ltiff -L/opt/local/lib -lX11
-lpthread -L/opt/local/lib -lIlmImf -lImath -lHalf -lIex
-lIexMath -lIlmThread
Undefined symbols for architecture x86_64:
"gmic_library::gmic_image<float>::assign(unsigned int, unsigned int,
unsigned int, unsigned int)", referenced from:
_main in use_libgmic-571b94.o
"gmic_library::gmic_list<float>::assign(unsigned int)", referenced from:
_main in use_libgmic-571b94.o
"gmic& gmic::run<float>(char const*, gmic_library::gmic_list<float>&,
gmic_library::gmic_list<char>&)", referenced from:
_main in use_libgmic-571b94.o
"gmic::gmic<float>(char const*, gmic_library::gmic_list<float>&,
gmic_library::gmic_list<char>&, char const*, bool, float*, bool*)",
referenced from:
_main in use_libgmic-571b94.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make[1]: *** [use_libgmic] Error 1
}}}
Deactivating the current version first works, but not very user-friendly.
Full log attached.
--
Ticket URL: <https://trac.macports.org/ticket/67276>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list