[Pkg-php-pecl] Bug#841250: php-facedetect: FTBFS: error with opencv 3.1

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Tue Oct 18 23:37:44 UTC 2016


Source: php-facedetect
Version: 1.1.0+git20160406-2
Severity: important
Justification: fails to build from source
Tags: patch

Dear Maintainer,

I am scheduled to transition of opencv.
This package is target to transition. I tested build with opencv 3.1.
As a result, this FTBFS with opencv 3.1.
Because libhighgui-dev and libcv-dev has been removed from opencv 3.1 package.
We need to use libopencv-dev instead of these package. And currenct
package disable
support of opencv 3 by patches/0002-Revert-opencv3-support.patch.

-----
make[1]: Entering directory '/build/php-facedetect-1.1.0+git20160406'
/bin/bash /build/php-facedetect-1.1.0+git20160406/libtool
--mode=compile cc  -I. -I/build/php-facedetect-1.1.0+git20160406
-DPHP_ATOM_INC -I/build/php-facedetect-1.1.0+git20160406/include
-I/build/php-facedetect-1.1.0+git20160406/main
-I/build/php-facedetect-1.1.0+git20160406 -I/usr/include/php/20151012
-I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM
-I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext
-I/usr/include/php/20151012/ext/date/lib  -Wdate-time
-D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H  -g -O2
-fdebug-prefix-map=/build/php-facedetect-1.1.0+git20160406=. -fPIE
-fstack-protector-strong -Wformat -Werror=format-security   -c
/build/php-facedetect-1.1.0+git20160406/facedetect.c -o facedetect.lo
libtool: compile:  cc -I. -I/build/php-facedetect-1.1.0+git20160406
-DPHP_ATOM_INC -I/build/php-facedetect-1.1.0+git20160406/include
-I/build/php-facedetect-1.1.0+git20160406/main
-I/build/php-facedetect-1.1.0+git20160406 -I/usr/include/php/20151012
-I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM
-I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext
-I/usr/include/php/20151012/ext/date/lib -Wdate-time
-D_FORTIFY_SOURCE=2 -DHAVE_CONFIG_H -g -O2
-fdebug-prefix-map=/build/php-facedetect-1.1.0+git20160406=.
-fstack-protector-strong -Wformat -Werror=format-security -c
/build/php-facedetect-1.1.0+git20160406/facedetect.c  -fPIC -DPIC -o
.libs/facedetect.o
/build/php-facedetect-1.1.0+git20160406/facedetect.c: In function
'zm_info_facedetect':
/build/php-facedetect-1.1.0+git20160406/facedetect.c:69:48: error:
'CV_VERSION' undeclared (first use in this function)
  php_info_print_table_row(2, "OpenCV version", CV_VERSION);
                                                ^~~~~~~~~~
/build/php-facedetect-1.1.0+git20160406/facedetect.c:69:48: note: each
undeclared identifier is reported only once for each function it
appears in
Makefile:194: recipe for target 'facedetect.lo' failed
-----

I attached a patch that revice this problem.
Could you check this patch and apply?

Best regards,
  Nobuhiro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: php-facedetect-1.1.0+git20160406.ocv31.patch
Type: text/x-diff
Size: 5475 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-php-pecl/attachments/20161019/1157b309/attachment.patch>


More information about the Pkg-php-pecl mailing list