Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php7版本make报错,请问如何处理? error ? please help ,how to fix? #36

Open
yxqa123 opened this issue Aug 22, 2018 · 1 comment

Comments

@yxqa123
Copy link

yxqa123 commented Aug 22, 2018

cc -I. -I/opt/php-7.0.14/ext/cairo-php7 -DPHP_ATOM_INC -I/opt/php-7.0.14/ext/cairo-php7/include -I/opt/php-7.0.14/ext/cairo-php7/main -I/opt/php-7.0.14/ext/cairo-php7 -I/usr/local/php70/include/php -I/usr/local/php70/include/php/main -I/usr/local/php70/include/php/TSRM -I/usr/local/php70/include/php/Zend -I/usr/local/php70/include/php/ext -I/usr/local/php70/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -g -O2 -c /opt/php-7.0.14/ext/cairo-php7/src/cairo.c -fPIC -DPIC -o src/.libs/cairo.o
/opt/php-7.0.14/ext/cairo-php7/src/cairo.c: In function ‘php_cairo_get_ft_error’:
/opt/php-7.0.14/ext/cairo-php7/src/cairo.c:35: warning: initialization discards qualifiers from pointer target type
/bin/sh /opt/php-7.0.14/ext/cairo-php7/libtool --mode=compile cc -I. -I/opt/php-7.0.14/ext/cairo-php7 -DPHP_ATOM_INC -I/opt/php-7.0.14/ext/cairo-php7/include -I/opt/php-7.0.14/ext/cairo-php7/main -I/opt/php-7.0.14/ext/cairo-php7 -I/usr/local/php70/include/php -I/usr/local/php70/include/php/main -I/usr/local/php70/include/php/TSRM -I/usr/local/php70/include/php/Zend -I/usr/local/php70/include/php/ext -I/usr/local/php70/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -g -O2 -c /opt/php-7.0.14/ext/cairo-php7/src/pattern.c -o src/pattern.lo
cc -I. -I/opt/php-7.0.14/ext/cairo-php7 -DPHP_ATOM_INC -I/opt/php-7.0.14/ext/cairo-php7/include -I/opt/php-7.0.14/ext/cairo-php7/main -I/opt/php-7.0.14/ext/cairo-php7 -I/usr/local/php70/include/php -I/usr/local/php70/include/php/main -I/usr/local/php70/include/php/TSRM -I/usr/local/php70/include/php/Zend -I/usr/local/php70/include/php/ext -I/usr/local/php70/include/php/ext/date/lib -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -g -O2 -c /opt/php-7.0.14/ext/cairo-php7/src/pattern.c -fPIC -DPIC -o src/.libs/pattern.o
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c: In function ‘php_cairo_get_pattern_ce’:
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:98: error: ‘CAIRO_PATTERN_TYPE_MESH’ undeclared (first use in this function)
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:98: error: (Each undeclared identifier is reported only once
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:98: error: for each function it appears in.)
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:101: error: ‘CAIRO_PATTERN_TYPE_RASTER_SOURCE’ undeclared (first use in this function)
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c: In function ‘zim_CairoPatternMesh___construct’:
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:778: warning: assignment makes pointer from integer without a cast
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c: In function ‘zim_CairoPatternMesh_getPath’:
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:1048: warning: assignment makes pointer from integer without a cast
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c: In function ‘zm_startup_cairo_pattern’:
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:1387: error: ‘CAIRO_PATTERN_TYPE_MESH’ undeclared (first use in this function)
/opt/php-7.0.14/ext/cairo-php7/src/pattern.c:1388: error: ‘CAIRO_PATTERN_TYPE_RASTER_SOURCE’ undeclared (first use in this function)
make: *** [src/pattern.lo] Error 1

@swen100
Copy link

swen100 commented Aug 22, 2018

Do you have cairo_devel installed on your system? I meen not only cairo! You need the header-files served by the development-version of cairo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants