[MacPorts] #70676: gmic-lib: Unable to upgrade on Mtn Lion - fatal error: use of undeclared identifier 'AT_FDCWD'
MacPorts
noreply at macports.org
Mon Sep 2 14:51:44 UTC 2024
#70676: gmic-lib: Unable to upgrade on Mtn Lion - fatal error: use of undeclared
identifier 'AT_FDCWD'
--------------------------------------+------------------------------------
Reporter: RobK88 | Owner: Ken <21211439+kencu@…>
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.10.1
Resolution: | Keywords: mtnlion
Port: gmic-lib legacy-support |
--------------------------------------+------------------------------------
Comment (by RobK88):
Thanks Ken. Your change did help. The compile went further but then
stopped with another undefined symbol error:
{{{
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/compwrap/cxx/opt/local/bin/clang++-mp-17 -dynamiclib -o
libgmic.1.dylib -install_name /opt/local/lib/libgmic.1.dylib
-compatibility_version 1 -current_version 3.4.1 -Dcimg_date=\\\"\\\"
-Dcimg_time=\\\"\\\" -Dcimg_use_zlib -I. -std=c++11 -pedantic -Wall
-Wextra -Wfatal-errors -Werror=unknown-pragmas -Werror=unused-label
-Wshadow libgmic.o -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 -lOpenEXR-3_2
-lOpenEXRUtil-3_2 -lOpenEXRCore-3_2 -lIex-3_2 -lIlmThread-3_2 -lImath-3_1
Undefined symbols for architecture x86_64:
"_faccessat", referenced from:
gmic_library::cimg::posix_searchpath(char const*) in libgmic.o
ld: symbol(s) not found for architecture x86_64
clang++: fatal error: linker command failed with exit code 1 (use -v to
see invocation)
make[1]: *** [libgmic.so] Error 1
make[1]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/gmic-3.4.1/src'
make: *** [lib] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/gmic-3.4.1/src'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/gmic-3.4.1/src" && /usr/bin/make -w lib NO_STDLIB=Yes
OPT_CFLAGS="" SOVERSION=1 X11_CFLAGS="-Dcimg_display=1
-I/opt/local/include" X11_LIBS="-L/opt/local/lib -lX11 -lpthread"
USR=/opt/local
CC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/compwrap/cc/opt/local/bin/clang-mp-17"
CXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/compwrap/cxx/opt/local/bin/clang++-mp-17"
OBJC="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/compwrap/objc/opt/local/bin/clang-mp-17"
OBJCXX="/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/work/compwrap/objcxx/opt/local/bin/clang++-mp-17"
INSTALL="/usr/bin/install -c"
Exit code: 2
Error: Failed to build gmic-lib: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_science_gmic
/gmic-lib/main.log for details.
Error: Unable to execute port gmic: upgrade gmic-lib failed
}}}
I have attached another main.log
--
Ticket URL: <https://trac.macports.org/ticket/70676#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list