PHP/Cairo-0.2.0 Build Bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Gentle People:

When I try to build the PHP/Cairo Extension (version cairo-0.2.0) with the following command:
pecl install channel://pecl.php.net/cairo-0.2.0

on Solaris 10 Intel, I get the following errors:
"/tmp/pear/temp/Cairo/cairo_surface.c", line 706: undefined symbol: CAIRO_SURFACE_TYPE_WIN32_PRINTING "/tmp/pear/temp/Cairo/cairo_surface.c", line 707: undefined symbol: CAIRO_SURFACE_TYPE_QUARTZ_IMAGE
cc: acomp failed for /tmp/pear/temp/Cairo/cairo_surface.c
make: *** [cairo_surface.lo] Error 1
ERROR: `make' failed

Note that all the build work seems to occur in the directory:
/tmp/pear/temp/Cairo
which is empty when examined after the script errors off.
Thus preventing further study!

Note also that I downloaded the cairo-0.2.0 tar distribution
and it did NOT include configure or make files thus preventing
manual builds.

Please help
Thomas Dineen

- The entire transcript is shown below:

root@Sun# pecl install channel://pecl.php.net/cairo-0.2.0
downloading Cairo-0.2.0.tgz ...
Starting to download Cairo-0.2.0.tgz (164,022 bytes)
....................................done: 164,022 bytes
20 source files, building
WARNING: php_bin /usr/local/php/bin/php appears to have a suffix /bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
Please provide the prefix of Cairo installation [autodetect] : /usr
building in /var/tmp/pear-build-tdineen/Cairo-0.2.0
running: /tmp/pear/temp/Cairo/configure --with-cairo=/usr
checking for grep that handles long lines and -e... /usr/sfw/bin/ggrep
checking for egrep... /usr/sfw/bin/ggrep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... yes
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... i386-pc-solaris2.10
checking host system type... i386-pc-solaris2.10
checking target system type... i386-pc-solaris2.10
checking for PHP prefix... /usr/local/php
checking for PHP includes... -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib checking for PHP extension directory... /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/php/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for Cairo graphics library support... yes, shared
checking PHP version... ok
checking for pkg-config... found
checking for cairo... found 1.4.10
checking for Freetype... found 9.8.3
checking for non-GNU ld... /usr/ucb/ld
checking if the linker (/usr/ucb/ld) is GNU ld... no
checking for /usr/ucb/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/local/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... 786240
checking command to parse /usr/local/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking for cc option to produce PIC... -KPIC
checking if cc PIC flag -KPIC works... yes
checking if cc static flag -Bstatic works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/ucb/ld) supports shared libraries... yes
checking dynamic linker characteristics... solaris2.10 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/bash /var/tmp/pear-build-tdineen/Cairo-0.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo.c -o cairo.lo
mkdir .libs
cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo.c -KPIC -DPIC -o .libs/cairo.o "/usr/sfw/include/freetype2/freetype/config/ftconfig.h", line 65: warning: macro redefined: SIZEOF_LONG /bin/bash /var/tmp/pear-build-tdineen/Cairo-0.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_error.c -o cairo_error.lo cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_error.c -KPIC -DPIC -o .libs/cairo_error.o "/usr/sfw/include/freetype2/freetype/config/ftconfig.h", line 65: warning: macro redefined: SIZEOF_LONG /bin/bash /var/tmp/pear-build-tdineen/Cairo-0.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_context.c -o cairo_context.lo cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_context.c -KPIC -DPIC -o .libs/cairo_context.o "/usr/sfw/include/freetype2/freetype/config/ftconfig.h", line 65: warning: macro redefined: SIZEOF_LONG /bin/bash /var/tmp/pear-build-tdineen/Cairo-0.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_pattern.c -o cairo_pattern.lo cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_pattern.c -KPIC -DPIC -o .libs/cairo_pattern.o "/usr/sfw/include/freetype2/freetype/config/ftconfig.h", line 65: warning: macro redefined: SIZEOF_LONG /bin/bash /var/tmp/pear-build-tdineen/Cairo-0.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_matrix.c -o cairo_matrix.lo cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_matrix.c -KPIC -DPIC -o .libs/cairo_matrix.o "/usr/sfw/include/freetype2/freetype/config/ftconfig.h", line 65: warning: macro redefined: SIZEOF_LONG /bin/bash /var/tmp/pear-build-tdineen/Cairo-0.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_path.c -o cairo_path.lo cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_path.c -KPIC -DPIC -o .libs/cairo_path.o "/usr/sfw/include/freetype2/freetype/config/ftconfig.h", line 65: warning: macro redefined: SIZEOF_LONG "/tmp/pear/temp/Cairo/cairo_path.c", line 88: warning: newline not last character in file /bin/bash /var/tmp/pear-build-tdineen/Cairo-0.2.0/libtool --mode=compile cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_surface.c -o cairo_surface.lo cc -I. -I/tmp/pear/temp/Cairo -DPHP_ATOM_INC -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/include -I/var/tmp/pear-build-tdineen/Cairo-0.2.0/main -I/tmp/pear/temp/Cairo -I/usr/local/php/include/php -I/usr/local/php/include/php/main -I/usr/local/php/include/php/TSRM -I/usr/local/php/include/php/Zend -I/usr/local/php/include/php/ext -I/usr/local/php/include/php/ext/date/lib -I/usr/include/cairo -I/usr/sfw/include -I/usr/sfw/include/freetype2 -I/usr/include/libpng12 -DHAVE_CONFIG_H -O -xs -xstrconst -zlazyload -c /tmp/pear/temp/Cairo/cairo_surface.c -KPIC -DPIC -o .libs/cairo_surface.o "/usr/sfw/include/freetype2/freetype/config/ftconfig.h", line 65: warning: macro redefined: SIZEOF_LONG "/tmp/pear/temp/Cairo/cairo_surface.c", line 470: warning: statement not reached "/tmp/pear/temp/Cairo/cairo_surface.c", line 585: warning: argument #2 is incompatible with prototype: prototype: pointer to const char : "/usr/local/php/include/php/main/php_streams.h", line 291
        argument : pointer to const unsigned char
"/tmp/pear/temp/Cairo/cairo_surface.c", line 706: undefined symbol: CAIRO_SURFACE_TYPE_WIN32_PRINTING "/tmp/pear/temp/Cairo/cairo_surface.c", line 707: undefined symbol: CAIRO_SURFACE_TYPE_QUARTZ_IMAGE
cc: acomp failed for /tmp/pear/temp/Cairo/cairo_surface.c
make: *** [cairo_surface.lo] Error 1
ERROR: `make' failed
root@Sun#



[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux