[cairo] disable compiling of cairo test suite

RAVI NANJUNDAPPA nravi.n at samsung.com
Sun Jul 20 22:59:58 PDT 2014


hi Pranav,

I haven't seen this '--disable-test-suite' configure option. 
Can you please share where did you get this option from ?

And also, 

`_cairo_getopt' is defined in boilerplate/cairo-boilerplate-getopt.c and lpyramid_XXXX() function definitions are available in test/pdiff/lpyramid.c
Please cross check if these files are built properly or not.

Thanks and Best Regards, 
N Ravi
------- Original Message -------
Sender : Pranav Ganorkar<pranavg189 at gmail.com>
Date : Jul 21, 2014 11:01 (GMT+05:30)
Title : [cairo] disable compiling of cairo test suite

Hi , I am trying to build latest cairo from git in archlinux but i get the following error.....


make[5]: Leaving directory '/home/pranav/jhbuild/checkout/cairo/boilerplate'
  CC       any2ppm-any2ppm.o
  CCLD     any2ppm
  CCLD     cairo-test-suite
cairo_test_suite-cairo-test-runner.o: In function `_parse_cmdline':
/home/pranav/jhbuild/checkout/cairo/test/cairo-test-runner.c:355: undefined reference to `_cairo_getopt'
../test/pdiff/.libs/libpdiff.a(pdiff.o): In function `pdiff_compare':
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:321: undefined reference to `lpyramid_create'
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:322: undefined reference to `lpyramid_create'
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:353: undefined reference to `lpyramid_get_value'
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:353: undefined reference to `lpyramid_get_value'
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:354: undefined reference to `lpyramid_get_value'
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:354: undefined reference to `lpyramid_get_value'
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:356: undefined reference to `lpyramid_get_value'
../test/pdiff/.libs/libpdiff.a(pdiff.o):/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:357: more undefined references to `lpyramid_get_value' follow
../test/pdiff/.libs/libpdiff.a(pdiff.o): In function `pdiff_compare':
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:412: undefined reference to `lpyramid_destroy'
/home/pranav/jhbuild/checkout/cairo/test/pdiff/pdiff.c:413: undefined reference to `lpyramid_destroy'
collect2: error: ld returned 1 exit status
Makefile:1750: recipe for target 'cairo-test-suite' failed
make[4]: *** [cairo-test-suite] Error 1
make[4]: Leaving directory '/home/pranav/jhbuild/checkout/cairo/test'
Makefile:8121: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/pranav/jhbuild/checkout/cairo/test'
Makefile:1691: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pranav/jhbuild/checkout/cairo/test'
Makefile:897: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pranav/jhbuild/checkout/cairo'
Makefile:747: recipe for target 'all' failed
make: *** [all] Error 2


i have added the following the flags to configure ....
--disable-static --disable-lto --disable-cairo-spinx --disable-trace --disable-test-suite

I dont know why but it still builds the cairo test suite and gives me the above compile error.
I am using gcc 4.9.0.
can anyone guide me.


More information about the cairo mailing list