[tex-live] Problems using Asymptote on Cygwin [TL2009]

Angelo Graziosi angelo.graziosi at alice.it
Tue Apr 20 14:40:49 CEST 2010


Ken Brown wrote:
> The asymptote binary shipped with the TL2009 Cygwin binaries is
> identical with the native Windows binary.

Hmm...

$ cygcheck /usr/local/texlive/bin/i386-cygwin/asy.exe
C:\cygwin-2\usr\local\texlive\bin\i386-cygwin\asy.exe
   C:\cygwin-2\bin\cygwin1.dll
     C:\WINDOWS\system32\ADVAPI32.DLL
       C:\WINDOWS\system32\KERNEL32.dll
         C:\WINDOWS\system32\ntdll.dll
       C:\WINDOWS\system32\RPCRT4.dll
         C:\WINDOWS\system32\Secur32.dll
   C:\cygwin-2\usr\local\texlive\bin\i386-cygwin\freeglut.dll
     C:\WINDOWS\system32\GDI32.dll
       C:\WINDOWS\system32\USER32.dll
     C:\WINDOWS\system32\OPENGL32.DLL
       C:\WINDOWS\system32\msvcrt.dll
       C:\WINDOWS\system32\GLU32.dll
       C:\WINDOWS\system32\DDRAW.dll
         C:\WINDOWS\system32\DCIMAN32.dll
     C:\WINDOWS\system32\WINMM.DLL

This seems to confim Reinhard's comment[*]: "Yes, see below.  MinGW uses 
MSVCRT.DLL." :-)

> I never succeeded in doing a
> proper Cygwin build.

Indeed! :(

I have tried this (with current sources):

$ ./configure --prefix=/tmp/asyinst --enable-texlive-build

First problem:
[...]
checking for fpu_control.h... no
configure: WARNING: *** Broken rpc headers; XDR support disabled ***
[...]

Second problem:
[...]
checking GL/glut.h usability... yes
checking GL/glut.h presence... yes
checking for GL/glut.h... yes
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking for gluNewNurbsRenderer in -lGLU... no
configure: *** Could not find libglu32: will compile without OpenGL 
support ***
[...]

Really Cygwin has libglu32.a in /usr/lib/w32api... I have tried to add 
LDFLAG=/usr/lib/w32api, but with no success.

Another observation:
[...]
checking for _LARGEFILE_SOURCE value needed for large files... unknown
[...]

Ok. We assume to build without OpenGL:

$ make
[...]
g++ -Wall -ansi -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -g -O3 
-I . -Igc-7.1/include -o runmath.o -c runmath.cc
runmath.in: In function ‘void run::gen_runmath24(vm::stack*)’:
runmath.in:199: error: ‘signgam’ was not declared in this scope
make: *** [runmath.o] Error 1

But omitting the '-ansi' option, works! i.e. compiling with

g++ -Wall -DHAVE_CONFIG_H -D_FILE_OFFSET_BITS=64 -DUSEGC  -g -O3  -I . 
-Igc-7.1/include -o runmath.o -c runmath.cc

Ciao,
Angelo.

---
[*] http://tug.org/pipermail/tex-live/2010-April/025566.html


More information about the tex-live mailing list