[gl2ps] report problems

Alan Woodland awoodland at debian.org
Tue Jun 5 13:26:29 CEST 2012


On 5 June 2012 01:05, ammuri abdelkarim <ammuri1 at gmail.com> wrote:
> cd C; make "TOPDIR=/home/karim/Bureau/espresso-5.0/xcrysden-1.5.53" compile
> make[1]: entrant dans le répertoire «
> /home/karim/Bureau/espresso-5.0/xcrysden-1.5.53/C »
> make  TOPDIR=/home/karim/Bureau/espresso-5.0/xcrysden-1.5.53
> make[2]: entrant dans le répertoire «
> /home/karim/Bureau/espresso-5.0/xcrysden-1.5.53/C »
> gcc -g -static -ansi -ffast-math -funroll-loops -DUSE_FONTS -pedantic -Wall
>   -DUSE_FONTS
> -I/home/karim/Bureau/espresso-5.0/xcrysden-1.5.53/external/src/tcl8.5.11/generic
> -I/home/karim/Bureau/espresso-5.0/xcrysden-1.5.53/external/src/tk8.5.11/generic
> -I/home/karim/Bureau/espresso-5.0/xcrysden-1.5.53/external/include    -c
> gl2ps.c
> gl2ps.c: In function ‘gl2psPutPDFText’:
> gl2ps.c:3416:21: erreur: ‘M_PI’ undeclared (first use in this function)
> gl2ps.c:3416:21: note: each undeclared identifier is reported only once for
> each function it appears in
> make[2]: *** [gl2ps.o] Erreur 1
> make[2]: quittant le répertoire «
> /home/karim/Bureau/espresso-5.0/xcrysden-1.5.53/C »
> make[1]: *** [compile] Erreur 2
> make[1]: quittant le répertoire «
> /home/karim/Bureau/espresso-5.0/xcrysden-1.5.53/C »
> make: *** [src-C] Erreur 2
> root at ubuntu:/home/karim/Bureau/espresso-5.0/xcrysden-1.5.53#

Looks like your compiler doesn't define M_PI. It's not standard
though: http://c-faq.com/fp/mpi.html - you can fix it by adding the
simple #ifdef in that link although personally I prefer the acos
method though.

Alan