[rrd-users] Cygwin build problems for 1.2.23

Darren Dunham ddunham at taos.com
Wed Sep 5 03:19:11 CEST 2007

I'm trying to build 1.2.23 on cygwin and running into some issues.
I'm afraid I'm not very familiar with autoconfigure so I'm hoping
someone knows how this stuff is supposed to work.

Configure runs without errors and make proceeds pretty well.  But
when it moves into 'bindings' it has problems.

make[2]: Entering directory `/home/ddunham/devel/rrd/rrdtool-1.2.23/bindings'
Making all in tcl
make[3]: Entering directory `/home/ddunham/devel/rrd/rrdtool-1.2.23/bindings/tcl'
gcc -shared -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -DPIC -L../../src/.libs -L../../src -L/usr/local/rrdtool-1.2.23/lib tclrrd.o -o tclrrd1.2.23.dll -lrrd_th -lm -ltclstub84  
../../src/.libs/librrd_th.a(librrd_th_la-rrd_gfx.o): In function `gfx_add_point':
/home/ddunham/devel/rrd/rrdtool-1.2.23/src/rrd_gfx.c:191: undefined reference to `_art_vpath_add_point'
[lots of undefined references omitted]

The issue here seems to be that the freetype, art, and png libraries
are not added to the gcc line.  If I add them by hand, the compile

$ gcc -shared -g -O2 -fno-strict-aliasing -Wall -std=gnu99 -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -W  -DPIC  -L../../src/.libs -L../../src -L/usr/local/rrdtool-1.2.23/lib tclrrd.o -o tclrrd1.2.23.dll -lrrd_th -lm -ltclstub84 -lfreetype -lpng -lz -lart_lgpl_2

$ grep ALL_LIBS Makefile bindings/tcl/Makefile
Makefile:ALL_LIBS = -lfreetype -lpng -lz -lart_lgpl_2 
bindings/tcl/Makefile:ALL_LIBS = -lfreetype -lpng -lz -lart_lgpl_2 

The configure program found them, but the Makefile it creates in this
directory doesn't feed them to the compiler.

Any suggestions?  Thanks!

Darren Dunham                                           ddunham at taos.com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

More information about the rrd-users mailing list