[tlbuild] asymptote-2.56 in tl sources
John Bowman
bowman at ualberta.ca
Tue Oct 8 17:59:41 CEST 2019
Can you check that this patch solves the problem? Thanks!
diff --git a/configure.ac b/configure.ac
index 1d99b113..81a3e1a4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -411,6 +411,7 @@ case "$OSTYPE" in
AC_CHECK_LIB([gccpp],[GC_throw_bad_alloc])
AC_CHECK_LIB([glut], [glutMainLoop],,
AC_MSG_NOTICE([*** Could not find libglut: will
compile without OpenGL support ***]))
+ AC_CHECK_LIB([GLX],[glXGetProcAddressARB])
AC_CHECK_LIB([GL], [glDepthMask],
[AC_DEFINE(HAVE_LIBGL,1,
DEFINE_LIB([GL]))
On Tue, Oct 8, 2019 at 7:31 AM Nelson H. F. Beebe <beebe at math.utah.edu>
wrote:
> 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/ -
>
> -------------------------------------------------------------------------------
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20191008/99a9fa35/attachment.html>
More information about the tlbuild
mailing list