Looks like there is some issue linking sdl2-ttf with new Mesa (new ports
bulk on i386); not sure if it will affect other ports too or if it's
just this.

(for once ld.lld actually managed to complain about an undefined
reference, we don't usually find these until it results in a runtime
failure)

Anyone have ideas?

/usr/bin/libtool  --tag=CC    --mode=link cc  -O2 -pipe 
-I/usr/X11R6/include/freetype2 -I/usr/local/include/SDL2 -I/usr/X11R6/include 
-D_REENTRANT  -I/usr/X11R6/include -DHAVE_OPENGL   -L/usr/local/lib -o glfont 
glfont.o libSDL2_ttf.la  -L/usr/X11R6/lib -lGL -lm -L/usr/X11R6/lib -lfreetype 
-lz -L/usr/local/lib -L/usr/X11R6/lib -lSDL2
libtool: link: cc -o .libs/glfont -pthread -O2 -pipe 
-I/usr/X11R6/include/freetype2 -I/usr/local/include/SDL2 -I/usr/X11R6/include 
-D_REENTRANT -I/usr/X11R6/include -DHAVE_OPENGL glfont.o -L.libs -lSDL2_ttf -lm 
-lfreetype -lz -lSDL2 -lsndio -lsamplerate -lX11 -lxcb -lXext -lXcursor 
-lXrender -lXfixes -lXinerama -lXi -lXrandr -lXss -lXxf86vm -lusbhid -lGL 
-lexpat -lX11-xcb -lxcb-glx -lXau -lXdmcp -lxcb-dri2 -lxcb-shm -ldrm -lpthread 
-lxcb-dri3 -lxcb-xfixes -lxcb-present -lxcb-sync -lxshmfence -lglapi 
-Wl,-rpath-link,/usr/local/lib,-rpath-link,/usr/X11R6/lib
ld: error: .libs/libGL.so.17.1: undefined reference to 
std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> >::find(char, unsigned long) const 
[--no-allow-shlib-undefined]
ld: error: .libs/libGL.so.17.1: undefined reference to operator new(unsigned 
long) [--no-allow-shlib-undefined]
ld: error: .libs/libGL.so.17.1: undefined reference to operator delete(void*) 
[--no-allow-shlib-undefined]
ld: error: .libs/libGL.so.17.1: undefined reference to 
std::__1::__basic_string_common<true>::__throw_length_error() const 
[--no-allow-shlib-undefined] ld: error: .libs/libGL.so.17.1: undefined 
reference to __gxx_personality_v0 [--no-allow-shlib-undefined]
cc: error: linker command failed with exit code 1 (use -v to see 
invocation)Error while executing cc -o .libs/glfont -pthread -O2 -pipe 
-I/usr/X11R6/include/freetype2 -I/usr/local/include/SDL2 -I/usr/X11R6/include 
-D_REENTRANT -I/usr/X11R6/include -DHAVE_OPENGL glfont.o -L.libs -lSDL2_ttf -lm 
-lfreetype -lz -lSDL2 -lsndio -lsamplerate -lX11 -lxcb -lXext -lXcursor 
-lXrender -lXfixes -lXinerama -lXi -lXrandr -lXss -lXxf86vm -lusbhid -lGL 
-lexpat -lX11-xcb -lxcb-glx -lXau -lXdmcp -lxcb-dri2 -lxcb-shm -ldrm -lpthread 
-lxcb-dri3 -lxcb-xfixes -lxcb-present -lxcb-sync -lxshmfence -lglapi 
-Wl,-rpath-link,/usr/local/lib,-rpath-link,/usr/X11R6/lib
*** Error 2 in /pobj/sdl2-ttf-2.0.15/build-i386 (Makefile:519 'glfont')

Reply via email to