[MacPorts] #68713: qt6-qtbase build error on Sonoma: ld: Undefined symbols: _glLoadIdentity etc.
MacPorts
noreply at macports.org
Sat Dec 2 07:46:17 UTC 2023
#68713: qt6-qtbase build error on Sonoma: ld: Undefined symbols: _glLoadIdentity
etc.
---------------------------+---------------------------------
Reporter: barracuda156 | Owner: MarcusCalhoun-Lopez
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.8.1
Resolution: | Keywords: sonoma
Port: qt6-qtbase |
---------------------------+---------------------------------
Comment (by barracuda156):
Replying to [comment:2 TellowKrinkle]:
So I trashed Command Line Tools folder, but got the same failure:
{{{
:info:build [3392/3724] : && /usr/bin/clang++
-I/opt/local/libexec/openssl3/include -DNDEBUG -Oz -arch arm64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
-mmacosx-version-min=14.0 -dynamiclib -Wl,-headerpad_max_install_names
-L/opt/local/libexec/openssl3/lib -Wl,-undefined,error -fapplication-
extension -compatibility_version 6.0.0 -current_version 6.4.3 -o
lib/QtOpenGL.framework/Versions/A/QtOpenGL -install_name
@rpath/QtOpenGL.framework/Versions/A/QtOpenGL
src/opengl/CMakeFiles/OpenGL.dir/OpenGL_autogen/mocs_compilation.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengl2pexvertexarray.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglbuffer.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglcustomshaderstage.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengldebug.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglengineshadermanager.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglframebufferobject.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglgradientcache.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglpaintdevice.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglpaintengine.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglpixeltransferoptions.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglshaderprogram.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltexture.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltextureblitter.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltexturecache.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltextureglyphcache.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltexturehelper.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltextureuploader.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglversionfunctions.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglversionfunctionsfactory.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglversionprofile.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglvertexarrayobject.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglwindow.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_0.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_1.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_2.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_3.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_4.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_5.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_2_0.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_2_1.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_0.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_1.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_2_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_2_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_3_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_3_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_0_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_0_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_1_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_1_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_2_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_2_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_3_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_3_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_4_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_4_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_5_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_5_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltimerquery.cpp.o
-F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtbase/work
/qtbase-everywhere-src-6.4.3/lib
-Wl,-rpath,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtbase/work
/qtbase-everywhere-src-6.4.3/lib lib/QtGui.framework/Versions/A/QtGui
-framework AGL -framework AppKit -framework ImageIO -framework Metal
lib/QtCore.framework/Versions/A/QtCore -framework IOKit -framework
DiskArbitration && :
:info:build FAILED: lib/QtOpenGL.framework/Versions/A/QtOpenGL
:info:build : && /usr/bin/clang++ -I/opt/local/libexec/openssl3/include
-DNDEBUG -Oz -arch arm64 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk
-mmacosx-version-min=14.0 -dynamiclib -Wl,-headerpad_max_install_names
-L/opt/local/libexec/openssl3/lib -Wl,-undefined,error -fapplication-
extension -compatibility_version 6.0.0 -current_version 6.4.3 -o
lib/QtOpenGL.framework/Versions/A/QtOpenGL -install_name
@rpath/QtOpenGL.framework/Versions/A/QtOpenGL
src/opengl/CMakeFiles/OpenGL.dir/OpenGL_autogen/mocs_compilation.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengl2pexvertexarray.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglbuffer.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglcustomshaderstage.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengldebug.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglengineshadermanager.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglframebufferobject.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglgradientcache.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglpaintdevice.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglpaintengine.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglpixeltransferoptions.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglshaderprogram.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltexture.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltextureblitter.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltexturecache.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltextureglyphcache.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltexturehelper.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltextureuploader.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglversionfunctions.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglversionfunctionsfactory.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglversionprofile.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglvertexarrayobject.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglwindow.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_0.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_1.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_2.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_3.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_4.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_1_5.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_2_0.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_2_1.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_0.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_1.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_2_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_2_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_3_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_3_3_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_0_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_0_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_1_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_1_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_2_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_2_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_3_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_3_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_4_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_4_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_5_compatibility.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopenglfunctions_4_5_core.cpp.o
src/opengl/CMakeFiles/OpenGL.dir/qopengltimerquery.cpp.o
-F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtbase/work
/qtbase-everywhere-src-6.4.3/lib
-Wl,-rpath,/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtbase/work
/qtbase-everywhere-src-6.4.3/lib lib/QtGui.framework/Versions/A/QtGui
-framework AGL -framework AppKit -framework ImageIO -framework Metal
lib/QtCore.framework/Versions/A/QtCore -framework IOKit -framework
DiskArbitration && :
:info:build ld: warning: -undefined error is deprecated
:info:build ld: Undefined symbols:
:info:build _glLoadIdentity, referenced from:
:info:build QOpenGL2PaintEngineEx::beginNativePainting() in
qopenglpaintengine.cpp.o
:info:build _glLoadMatrixf, referenced from:
:info:build QOpenGL2PaintEngineEx::beginNativePainting() in
qopenglpaintengine.cpp.o
:info:build _glMatrixMode, referenced from:
:info:build QOpenGL2PaintEngineEx::beginNativePainting() in
qopenglpaintengine.cpp.o
:info:build QOpenGL2PaintEngineEx::beginNativePainting() in
qopenglpaintengine.cpp.o
:info:build _glOrtho, referenced from:
:info:build QOpenGL2PaintEngineEx::beginNativePainting() in
qopenglpaintengine.cpp.o
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
}}}
The output now is:
{{{
svacchanda at Sergeys-MacBook-Air ~ % sudo grep -A8 -B8 "OPENGL_gl_LIBRARY"
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_aqua_qt6/qt6-qtbase/work
/qtbase-everywhere-src-6.4.3/CMakeCache.txt
//Path to a library.
ODBC_LIBRARY:FILEPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/lib/libiodbc.tbd
//Include for OpenGL on OS X
OPENGL_INCLUDE_DIR:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/OpenGL.framework
//OpenGL library for OS X
OPENGL_gl_LIBRARY:FILEPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/OpenGL.framework
//GLU library for OS X (usually same as OpenGL library)
OPENGL_glu_LIBRARY:FILEPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/System/Library/Frameworks/OpenGL.framework
//Path to a library.
OPENSSL_CRYPTO_LIBRARY:FILEPATH=/opt/local/libexec/openssl3/lib/libcrypto.dylib
//Path to a file.
--
//ADVANCED property for variable: ODBC_CONFIG
ODBC_CONFIG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ODBC_INCLUDE_DIR
ODBC_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: ODBC_LIBRARY
ODBC_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENGL_INCLUDE_DIR
OPENGL_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENGL_gl_LIBRARY
OPENGL_gl_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENGL_glu_LIBRARY
OPENGL_glu_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENSSL_CRYPTO_LIBRARY
OPENSSL_CRYPTO_LIBRARY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENSSL_INCLUDE_DIR
OPENSSL_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: OPENSSL_SSL_LIBRARY
OPENSSL_SSL_LIBRARY-ADVANCED:INTERNAL=1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68713#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list