Bug#625108: cimg: FTBFS: cxcore.hpp:177:13: error: 'ptrdiff_t' does not name a type

Lucas Nussbaum lucas at lucas-nussbaum.net
Mon May 2 12:30:14 UTC 2011


Source: cimg
Version: 1.4.8-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20110502 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 image2ascii image2ascii.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 -Wall -W -pthread -Dcimg_use_fftw3 -L/usr/X11R6/lib -lpthread -lX11 -lXext -lXrandr -ltiff -lminc2 -lIlmImf -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/opencv/cxcore.h:1826:0,
>                  from /usr/include/opencv/cv.h:58,
>                  from ../CImg.h:233,
>                  from image2ascii.cpp:47:
> /usr/include/opencv/cxcore.hpp:177:13: error: 'ptrdiff_t' does not name a type
> In file included from /usr/include/opencv/cxcore.hpp:2307:0,
>                  from /usr/include/opencv/cxcore.h:1826,
>                  from /usr/include/opencv/cv.h:58,
>                  from ../CImg.h:233,
>                  from image2ascii.cpp:47:
> /usr/include/opencv/cxoperations.hpp:2043:15: error: 'ptrdiff_t' does not name a type
> /usr/include/opencv/cxoperations.hpp:2591:31: error: 'ptrdiff_t' does not name a type
> In file included from /usr/include/opencv/cxcore.hpp:2308:0,
>                  from /usr/include/opencv/cxcore.h:1826,
>                  from /usr/include/opencv/cv.h:58,
>                  from ../CImg.h:233,
>                  from image2ascii.cpp:47:
> /usr/include/opencv/cxmat.hpp: In member function 'void cv::Mat::locateROI(cv::Size&, cv::Point&) const':
> /usr/include/opencv/cxmat.hpp:387:5: error: 'ptrdiff_t' was not declared in this scope
> /usr/include/opencv/cxmat.hpp:387:5: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/opencv/cxmat.hpp:387:15: error: expected ';' before 'delta1'
> /usr/include/opencv/cxmat.hpp:389:9: error: 'delta1' was not declared in this scope
> /usr/include/opencv/cxmat.hpp:398:31: error: 'delta2' was not declared in this scope
> /usr/include/opencv/cxmat.hpp: In member function 'cv::Point cv::MatConstIterator_<_Tp>::pos() const':
> /usr/include/opencv/cxmat.hpp:3459:9: error: 'ptrdiff_t' was not declared in this scope
> /usr/include/opencv/cxmat.hpp:3459:9: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/opencv/cxmat.hpp:3459:19: error: expected ';' before 'ofs'
> /usr/include/opencv/cxmat.hpp:3460:23: error: 'ofs' was not declared in this scope
> /usr/include/opencv/cxmat.hpp:3460:66: error: expected ')' before 'y'
> /usr/include/opencv/cxmat.hpp:3465:9: error: 'ptrdiff_t' was not declared in this scope
> /usr/include/opencv/cxmat.hpp:3465:9: note: suggested alternatives:
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/c++/4.6/x86_64-linux-gnu/bits/c++config.h:156:28: note:   'std::ptrdiff_t'
> /usr/include/opencv/cxmat.hpp:3465:19: error: expected ';' before 'ofs'
> /usr/include/opencv/cxmat.hpp:3466:23: error: 'ofs' was not declared in this scope
> In file included from image2ascii.cpp:47: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 = float, T = float]':
> image2ascii.cpp:124:101:   instantiated from here
> ../CImg.h:28029:103: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
> make[3]: *** [image2ascii] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2011/05/02/cimg_1.4.8-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.

-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |





More information about the debian-science-maintainers mailing list