[MacPorts] #61210: ftgl fails to link due to undefined symbols

MacPorts noreply at macports.org
Sat Jan 30 20:17:04 UTC 2021


#61210: ftgl fails to link due to undefined symbols
------------------------+----------------------
  Reporter:  hellhovnd  |      Owner:  (none)
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.6.3
Resolution:             |   Keywords:
      Port:  ftgl       |
------------------------+----------------------

Comment (by murrayE):

 Build failure with Xcode 12.4 and CLT 12.4 under BigSur 11.1:

 {{{
 :info:build mv -f .deps/libftgl_la-FTSimpleLayout.Tpo .deps/libftgl_la-
 FTSimpleLayout.Plo
 :info:build /bin/sh ../libtool  --tag=CXX   --mode=link /usr/bin/clang++
 -I/opt/local/include/freetype2 -I/opt/local/include/libpng16  -pipe -Os
 -std=c++11 -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch
 x86_64 -W -Wall -Wundef -Wfloat-equal  -Wpointer-arith -Wcast-align
 -Wcast-qual -Wshadow -Wsign-compare -Winline -no-undefined -version-number
 2:4:0 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk
 -arch x86_64 -W -Wall -Wundef -Wfloat-equal  -Wpointer-arith -Wcast-align
 -Wcast-qual -Wshadow -Wsign-compare -Winline -o libftgl.la -rpath
 /opt/local/lib libftgl_la-FTBuffer.lo libftgl_la-FTCharmap.lo libftgl_la-
 FTCleanup.lo libftgl_la-FTContour.lo libftgl_la-FTFace.lo libftgl_la-
 FTGL.lo libftgl_la-FTGlyphContainer.lo libftgl_la-FTLibrary.lo libftgl_la-
 FTPoint.lo libftgl_la-FTSize.lo libftgl_la-FTVectoriser.lo libftgl_la-
 FTGlyph.lo libftgl_la-FTGlyphGlue.lo libftgl_la-FTBitmapGlyph.lo
 libftgl_la-FTBufferGlyph.lo libftgl_la-FTExtrudeGlyph.lo libftgl_la-
 FTOutlineGlyph.lo libftgl_la-FTPixmapGlyph.lo libftgl_la-FTPolygonGlyph.lo
 libftgl_la-FTTextureGlyph.lo libftgl_la-FTTriangleExtractorGlyph.lo
 libftgl_la-FTFont.lo libftgl_la-FTFontGlue.lo libftgl_la-FTBitmapFont.lo
 libftgl_la-FTBufferFont.lo libftgl_la-FTExtrudeFont.lo libftgl_la-
 FTOutlineFont.lo libftgl_la-FTPixmapFont.lo libftgl_la-FTPolygonFont.lo
 libftgl_la-FTTextureFont.lo libftgl_la-FTTriangleExtractorFont.lo
 libftgl_la-FTLayout.lo libftgl_la-FTLayoutGlue.lo libftgl_la-
 FTSimpleLayout.lo    -L/opt/local/lib -lfreetype -lGL  -lSM -lICE  -lX11
 -lXext -lXmu
 :info:build libtool: link: /usr/bin/clang++ -dynamiclib  -o
 .libs/libftgl.2.dylib  .libs/libftgl_la-FTBuffer.o .libs/libftgl_la-
 FTCharmap.o .libs/libftgl_la-FTCleanup.o .libs/libftgl_la-FTContour.o
 .libs/libftgl_la-FTFace.o .libs/libftgl_la-FTGL.o .libs/libftgl_la-
 FTGlyphContainer.o .libs/libftgl_la-FTLibrary.o .libs/libftgl_la-FTPoint.o
 .libs/libftgl_la-FTSize.o .libs/libftgl_la-FTVectoriser.o .libs
 /libftgl_la-FTGlyph.o .libs/libftgl_la-FTGlyphGlue.o .libs/libftgl_la-
 FTBitmapGlyph.o .libs/libftgl_la-FTBufferGlyph.o .libs/libftgl_la-
 FTExtrudeGlyph.o .libs/libftgl_la-FTOutlineGlyph.o .libs/libftgl_la-
 FTPixmapGlyph.o .libs/libftgl_la-FTPolygonGlyph.o .libs/libftgl_la-
 FTTextureGlyph.o .libs/libftgl_la-FTTriangleExtractorGlyph.o .libs
 /libftgl_la-FTFont.o .libs/libftgl_la-FTFontGlue.o .libs/libftgl_la-
 FTBitmapFont.o .libs/libftgl_la-FTBufferFont.o .libs/libftgl_la-
 FTExtrudeFont.o .libs/libftgl_la-FTOutlineFont.o .libs/libftgl_la-
 FTPixmapFont.o .libs/libftgl_la-FTPolygonFont.o .libs/libftgl_la-
 FTTextureFont.o .libs/libftgl_la-FTTriangleExtractorFont.o .libs
 /libftgl_la-FTLayout.o .libs/libftgl_la-FTLayoutGlue.o .libs/libftgl_la-
 FTSimpleLayout.o   -L/opt/local/lib -lfreetype -lGL -lSM -lICE -lX11
 -lXext -lXmu  -Os -stdlib=libc++ -arch x86_64
 -Wl,-headerpad_max_install_names -Wl,-syslibroot
 -Wl,/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -arch x86_64
 -install_name  /opt/local/lib/libftgl.2.dylib -compatibility_version 7
 -current_version 7.0 -Wl,-single_module
 :info:build ld: warning: dylib (/opt/local/lib/libXmu.dylib) was built for
 newer macOS version (11.1) than being linked (11.0)
 :info:build ld: warning: dylib (/opt/local/lib/libXext.dylib) was built
 for newer macOS version (11.1) than being linked (11.0)
 :info:build Undefined symbols for architecture x86_64:
 :info:build   "_gluDeleteTess", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluNewTess", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessBeginContour", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessBeginPolygon", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessCallback", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessEndContour", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessEndPolygon", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessNormal", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessProperty", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build   "_gluTessVertex", referenced from:
 :info:build       FTVectoriser::MakeMesh(double, int, float) in
 libftgl_la-FTVectoriser.o
 :info:build ld: symbol(s) not found for architecture x86_64
 :info:build clang: error: linker command failed with exit code 1 (use -v
 to see invocation)
 :info:build make[2]: *** [libftgl.la] Error 1
 :info:build make[2]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ftgl/ftgl/work
 /frankheckenbach-ftgl-4836392/src'
 :info:build make[1]: *** [all-recursive] Error 1
 :info:build make[1]: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ftgl/ftgl/work
 /frankheckenbach-ftgl-4836392'
 :info:build make: *** [all] Error 2
 :info:build make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ftgl/ftgl/work
 /frankheckenbach-ftgl-4836392'
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ftgl/ftgl/work/ftgl-2.4.0"
 && /usr/bin/make -j16 -w all
 :info:build Exit code: 2
 :error:build Failed to build ftgl: command execution failed
 :debug:build Error code: CHILDSTATUS 82491 2
 }}}

 Note also warnings in Terminal during install attempt:

 {{{
 --->  Configuring ftgl
 Warning:
 -----------------------------------------------------------------------
 Warning: The port 'ftgl' uses the cxx11 PortGroup which is deprecated.
 Warning: Please instead specify the required c++ standard directly using
 Warning:     compiler.cxx_standard  2011
 Warning: replacing 2011 with newer standards (e.g. 2014, 2017) as
 required.
 Warning: For more details see
 https://trac.macports.org/wiki/CompilerSelection
 Warning:
 -----------------------------------------------------------------------
 --->  Building ftgl
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61210#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list