Bug#652770: cimg: FTBFS: dist.h:82:7: error: expected identifier before numeric constant

Lucas Nussbaum lucas at lucas-nussbaum.net
Tue Dec 20 14:48:47 UTC 2011


Source: cimg
Version: 1.4.9-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20111220 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> g++ -o CImg_demo CImg_demo.cpp -I.. -Wall -W -lm -lpthread -lHalf -O3 -fno-tree-pre -Dcimg_use_vt100 -I/usr/X11R6/include -Dcimg_use_xshm -Dcimg_use_xrandr -Dcimg_use_tiff -Dcimg_use_minc2 -Dcimg_use_openexr -I/usr/include/OpenEXR -Dcimg_use_png -Dcimg_use_jpeg -Dcimg_use_zlib -Dcimg_use_opencv -I/usr/include/opencv -Dcimg_use_magick -I/usr/include/ImageMagick -g -O2 -pthread -Dcimg_use_fftw3 -L/usr/X11R6/lib -lpthread -lX11 -lXext -lXrandr -ltiff -lminc2 -lIlmImf -lHalf -lpng -lz -ljpeg -lz -lcv -lhighgui -L/usr/lib -L/usr/lib/X11 -L/usr/lib -lMagick++ -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -llqr-1 -lglib-2.0 -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl -lfftw3
> In file included from /usr/include/opencv2/flann/dynamic_bitset.h:46:0,
>                  from /usr/include/opencv2/flann/kdtree_index.h:41,
>                  from /usr/include/opencv2/flann/all_indices.h:36,
>                  from /usr/include/opencv2/flann/flann_base.hpp:44,
>                  from /usr/include/opencv2/flann/flann.hpp:50,
>                  from /usr/include/opencv/cv.h:69,
>                  from ../CImg.h:237,
>                  from CImg_demo.cpp:48:
> /usr/include/opencv2/flann/dist.h:82:7: error: expected identifier before numeric constant
> /usr/include/opencv2/flann/dist.h:82:7: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:86:7: error: expected identifier before numeric constant
> /usr/include/opencv2/flann/dist.h:86:7: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:100:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:101:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:133:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:134:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:198:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:199:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:255:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:256:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:319:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:320:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:376:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:377:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:478:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:479:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:540:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:541:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:599:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:600:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:652:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:653:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:700:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:701:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:754:13: error: expected unqualified-id before numeric constant
> /usr/include/opencv2/flann/dist.h:755:13: error: expected unqualified-id before numeric constant
> In file included from /usr/include/opencv2/flann/flann_base.hpp:44:0,
>                  from /usr/include/opencv2/flann/flann.hpp:50,
>                  from /usr/include/opencv/cv.h:69,
>                  from ../CImg.h:237,
>                  from CImg_demo.cpp:48:
> /usr/include/opencv2/flann/all_indices.h:91:48: error: type/value mismatch at argument 1 in template parameter list for 'template<class KDTreeCapability, class VectorSpace, class Distance> struct cvflann::index_creator'
> /usr/include/opencv2/flann/all_indices.h:91:48: error:   expected a type, got '0'
> /usr/include/opencv2/flann/all_indices.h:120:42: error: type/value mismatch at argument 1 in template parameter list for 'template<class KDTreeCapability, class VectorSpace, class Distance> struct cvflann::index_creator'
> /usr/include/opencv2/flann/all_indices.h:120:42: error:   expected a type, got '0'
> /usr/include/opencv2/flann/all_indices.h:120:42: error: type/value mismatch at argument 2 in template parameter list for 'template<class KDTreeCapability, class VectorSpace, class Distance> struct cvflann::index_creator'
> /usr/include/opencv2/flann/all_indices.h:120:42: error:   expected a type, got '0'
> In file included from CImg_demo.cpp:48:0:
> ../CImg.h: In member function 'cimg_library::CImg<T>& cimg_library::CImg<T>::draw_text(int, int, const char*, const tc*, int, float, unsigned int, ...) [with tc = unsigned char, T = unsigned char]':
> CImg_demo.cpp:88:68:   instantiated from here
> ../CImg.h:30198:103: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> ../CImg.h: In member function 'cimg_library::CImg<T>& cimg_library::CImg<T>::draw_text(int, int, const char*, const tc*, int, float, unsigned int, ...) [with tc = float, T = float]':
> CImg_demo.cpp:435:100:   instantiated from here
> ../CImg.h:30198:103: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> ../CImg.h: In member function 'cimg_library::CImg<T>& cimg_library::CImg<T>::draw_text(int, int, const char*, const tc*, int, float, unsigned int, ...) [with tc = int, T = int]':
> CImg_demo.cpp:504:85:   instantiated from here
> ../CImg.h:30198:103: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> ../CImg.h: In member function 'cimg_library::CImg<T>& cimg_library::CImg<T>::draw_text(int, int, const char*, const tc*, int, float, unsigned int, ...) [with tc = unsigned int, T = unsigned int]':
> CImg_demo.cpp:858:27:   instantiated from here
> ../CImg.h:30198:103: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> make[3]: *** [CImg_demo] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/12/20/cimg_1.4.9-1_lsid64.buildlog

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.





More information about the debian-science-maintainers mailing list