[tlbuild] asymptote-2.56 in tl sources
Nelson H. F. Beebe
beebe at math.utah.edu
Tue Oct 8 15:31:16 CEST 2019
On Sun, 6 Oct 2019 14:04:44 -0600, Karl Berry announced new asymptote
code in the TeX Live source repository, so yesterday, I pulled down
snapshot texlive-20191007 and attempted a build with my usual script
on Ubuntu 18.04 x86-64. That worked flawlessly.
However, when I ran the build of asymptote, I got link-time failure in
creating the asy executable:
glew.o: In function `_glewInit_GL_VERSION_1_2':
glew.c:(.text+0x474): undefined reference to `glXGetProcAddressARB'
glew.c:(.text+0x48a): undefined reference to `glXGetProcAddressARB'
glew.c:(.text+0x4ab): undefined reference to `glXGetProcAddressARB'
glew.c:(.text+0x4c6): undefined reference to `glXGetProcAddressARB'
glew.o: In function `_glewInit_GL_VERSION_1_3':
glew.c:(.text+0x4ee): undefined reference to `glXGetProcAddressARB'
glew.o:glew.c:(.text+0x504): more undefined references to `glXGetProcAddressARB' follow
glew.o: In function `glxewGetExtension':
glew.c:(.text+0xef1d): undefined reference to `glXGetClientString'
glew.o: In function `glxewInit':
glew.c:(.text+0xef75): undefined reference to `glXGetProcAddressARB'
... many more ...
Here are the library references:
% nm -D /usr/lib/x86_64-linux-gnu/libGLEW.so.1.13.0 |grep glXGetProcAddressARB
U glXGetProcAddressARB
% nm -D /usr/lib/x86_64-linux-gnu/libGLX.so.0.0.0 | grep glXGetProcAddressARB
00000000000066e0 T glXGetProcAddressARB
However, -lGLX is missing from the link command.
I restarted the asymptote build with
cd texlive-20191007/source/utils/asymptote/
make 'LIBS = $(LFLAGS) -lrt -lsigsegv -lz -lreadline -ltinfo -lncurses -lGL glew.o -lGLX $(GCLIBS)'
and that produced a successful link:
% ./asy --version
Asymptote version 2.56 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]
-------------------------------------------------------------------------------
- Nelson H. F. Beebe Tel: +1 801 581 5254 -
- University of Utah FAX: +1 801 581 4148 -
- Department of Mathematics, 110 LCB Internet e-mail: beebe at math.utah.edu -
- 155 S 1400 E RM 233 beebe at acm.org beebe at computer.org -
- Salt Lake City, UT 84112-0090, USA URL: http://www.math.utah.edu/~beebe/ -
-------------------------------------------------------------------------------
More information about the tlbuild
mailing list