Number: 299
Title: MAXDOUBLE undefined
Submitter: Lars van de Kerkhof
Date: Wed May 28 16:45:19 2003
Subsys: Build/Installation
Version: 1.9
System: x86-Windows-XP
Severity: minor
Problem:
I am trying building graphviz witn mingw and msys. I successfully managed to compile all required libs like freetype, zlib, libpng and libjpeg. Now I only need to build dot actually but when I move to the directory dotneato and build I get this error:

utils.c:610:24: pwd.h: No such file or directory
utils.c: In function `username':
utils.c:632: warning: implicit declaration of function `getpwuid'
utils.c:632: warning: implicit declaration of function `getuid'
utils.c:635: dereferencing pointer to incomplete type
utils.c:640: dereferencing pointer to incomplete type
utils.c: In function `toggle':
utils.c:889: `SIGUSR1' undeclared (first use in this function)
utils.c:889: (Each undeclared identifier is reported only once
utils.c:889: for each function it appears in.)
d:/MinGW/include/stdlib.h: At top level:
globals.h:47: warning: array `Output_langs' assumed to have one element
globals.h:50: warning: array `Output_files' assumed to have one element
make[1]: *** [utils.lo] Error 1
make[1]: Leaving directory `/d/graph_source/graphviz-1.9/graphviz-1.9/dotneato/common'
make: *** [all-recursive] Error 1

but when I then try to build the complete package I get this :


 -I../incr -I../agraph -I../cdt -I../shape -I../ns  -I/usr/local/include  -g -O2 -Wall -Wno-unknown-pragmas -c -o geom.lo `test -f geom.c || echo './'`geom.c
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../pathplan -I../incr -I../agraph -I../cdt -I../shape -I../ns -I/usr/local/include -g -O2 -Wall -Wno-unknown-pragmas -c geom.c -MT geom.lo -MD -MP -MF .deps/geom.TPlo     -DDLL_EXPORT -DPIC -o geom.lo
geom.c: In function `update_bb':
geom.c:19: `MAXDOUBLE' undeclared (first use in this function)
geom.c:19: (Each undeclared identifier is reported only once
geom.c:19: for each function it appears in.)
make[2]: *** [geom.lo] Error 1
make[2]: Leaving directory `/d/graph_source/graphviz-1.9/graphviz-1.9/dag'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/d/graph_source/graphviz-1.9/graphviz-1.9'
make: *** [all] Error 2

I build with mingw becuase my cygwin installation hangs on the configure script on the point it tries to generate the makefiles

It would be nice if you could send me some suggestions on building dot and it's exact file dependancies. that way I could isolate the required files and focus on building dot alone.

Thanks in advance

regards,

Lars van de Kerkhof
Input file: b299.c
Owner: erg
Status: Fixed