Re: #30873 [Opn->Bgs]: pear install pdflib fails
| From: | imacat | Date: | Tue, 05 Apr 2005 20:05:10 +0000 |
| Subject: | Re: #30873 [Opn->Bgs]: pear install pdflib fails | ||
| References: | 1 2 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-2243@lists.php.net to get a copy of this message | ||
autoconf 2.13
ftp://ftp.gnu.org/gnu/autoconf/
You *HAVE TO* use version 2.13. Versions > 2.5x will not work.
On Tue, 5 Apr 2005 21:58:20 +0200
tony2001@php.net wrote:
> ID: 30873
> Updated by: tony2001@php.net
> Reported By: Peter dot Albertsson at naturesown dot se
> -Status: Open
> +Status: Bogus
> Bug Type: PECL related
> Operating System: SuSE Linux 9.1 Personal
> PHP Version: 5CVS-2004-11-23 (dev)
> New Comment:
>
> You need to install autoconf, automake & libtool to be able build
> extensions from sources.
> Please report all further PECL issues to the PECL bugsystem:
> http://pecl.php.net/bugs/
>
>
>
> Previous Comments:
> ------------------------------------------------------------------------
>
> [2005-03-10 23:18:21] gabeki at dialpad dot com
>
> >pear install pdflib
> downloading pdflib-2.0.4.tar ...
> Starting to download pdflib-2.0.4.tar (-1 bytes)
> .........done: 303,104 bytes
> 7 source files, building
> running: phpize
> /usr/local/bin/phpize: aclocal: not found
> `phpize' failed
>
>
> Could someone tell me which package am I missing?
>
> ------------------------------------------------------------------------
>
> [2004-12-07 10:38:43] rjs@php.net
>
> make error:
>
> The problem is, that PHP does not have the GD headerfiles installed at
> the places where pear looks for them.
> PDFlib however tries to honour an configured GD and tries to add some
> additional functionality in this case.
>
> So the configuration tells there is GD (HAVE_LIBGD13 is set), but the
> headerfiles are not in place where PECL looks while compiling (i.e.
> -I/usr/local/include/php).
>
> Until PHP installs the missing headerfiles (gd.h and php_gd.h), you
> have to do this by hand.
>
> So you may fix the problem by copying the needed header files to the
> location where PEAR normally looks for PHP related headerfiles (in your
> case /usr/local/include/php).
>
>
> ------------------------------------------------------------------------
>
> [2004-11-23 14:55:52] Peter dot Albertsson at naturesown dot se
>
> Description:
> ------------
> automake warnings and make error
>
> I've tried various ways to install the pdflib extension but I always
> get the same error when pdflib is compiled.
>
> Reproduce code:
> ---------------
> pear install pdflib
>
> Actual result:
> --------------
> www2:/usr/local/src/php5-STABLE-200411231130 # pear install pdflib
> downloading pdflib-2.0.2.tgz ...
> Starting to download pdflib-2.0.2.tgz (23,053 bytes)
> ........done: 23,053 bytes
> 5 source files, building
> running: phpize
> Configuring for:
> PHP Api Version: 20031224
> Zend Module Api No: 20041030
> Zend Extension Api No: 220041030
> configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
> run info '(automake)Extending aclocal'
> or see
>
> http://sources.redhat.com/automake/automake.html#Extending%20aclocal
> configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
> configure.in:33: warning: underquoted definition of PHP_EXT_DIR
> configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
> configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
> acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C
> acinclude.m4:1903: warning: underquoted definition of PHP_TEST_BUILD
> path to pdflib installation? [autodetect] :
> building in /var/tmp/pear-build-root/pdflib-2.0.2
> running: /tmp/tmpdlYFbI/pdflib-2.0.2/configure --with-pdflib
> checking build system type... i686-suse-linux
> checking host system type... i686-suse-linux
> checking for gcc... gcc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ANSI C... none needed
> checking whether gcc and cc understand -c and -o together... yes
> checking if compiler supports -R... no
> checking if compiler supports -Wl,-rpath,... yes
> checking for PHP prefix... /usr/local
> checking for PHP includes... -I/usr/local/include/php
> -I/usr/local/include/php/main -I/usr/local/include/php/Zend
> -I/usr/local/include/php/TSRM
> checking for PHP extension directory...
> /usr/local/lib/php/extensions/no-debug-non-zts-20041030
> checking for re2c... exit 0;
> checking for gawk... gawk
> checking for PDFlib support... yes, shared
> checking for PDF_open_pdi in -lpdf... yes
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for egrep... grep -E
> checking for ld used by gcc... /usr/i586-suse-linux/bin/ld
> checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
> checking for /usr/i586-suse-linux/bin/ld option to reload object
> files... -r
> checking for BSD-compatible nm... /usr/bin/nm -B
> checking whether ln -s works... yes
> checking how to recognise dependent libraries... pass_all
> checking how to run the C preprocessor... gcc -E
> 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 for g++... g++
> checking whether we are using the GNU C++ compiler... yes
> checking whether g++ accepts -g... yes
> checking how to run the C++ preprocessor... g++ -E
> checking for g77... no
> checking for f77... no
> checking for xlf... no
> checking for frt... no
> checking for pgf77... no
> checking for fort77... no
> checking for fl32... no
> checking for af77... no
> checking for f90... no
> checking for xlf90... no
> checking for pgf90... no
> checking for epcf90... no
> checking for f95... no
> checking for fort... no
> checking for xlf95... no
> checking for ifc... no
> checking for efc... no
> checking for pgf95... no
> checking for lf95... no
> checking for gfortran... no
> checking whether we are using the GNU Fortran 77 compiler... no
> checking whether accepts -g... no
> checking the maximum length of command line arguments... 32768
> checking command to parse /usr/bin/nm -B output from gcc object... ok
> checking for objdir... .libs
> checking for ar... ar
> checking for ranlib... ranlib
> checking for strip... strip
> checking if gcc static flag works... yes
> checking if gcc supports -fno-rtti -fno-exceptions... no
> checking for gcc option to produce PIC... -fPIC
> checking if gcc PIC flag -fPIC works... yes
> checking if gcc supports -c -o file.o... yes
> checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports
> shared libraries... yes
> checking whether -lc should be explicitly linked in... no
> checking dynamic linker characteristics... GNU/Linux 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
> configure: creating libtool
> appending configuration tag "CXX" to libtool
> checking for ld used by g++... /usr/i586-suse-linux/bin/ld
> checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes
> checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports
> shared libraries... yes
> checking for g++ option to produce PIC... -fPIC
> checking if g++ PIC flag -fPIC works... yes
> checking if g++ supports -c -o file.o... yes
> checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports
> shared libraries... yes
> checking dynamic linker characteristics... GNU/Linux ld.so
> checking how to hardcode library paths into programs... immediate
> checking whether stripping libraries is possible... yes
> appending configuration tag "F77" to libtool
> configure: creating ./config.status
> config.status: creating config.h
> running: make
> /bin/sh /var/tmp/pear-build-root/pdflib-2.0.2/libtool --mode=compile
> gcc -I. -I/tmp/tmpdlYFbI/pdflib-2.0.2 -DPHP_ATOM_INC
> -I/var/tmp/pear-build-root/pdflib-2.0.2/include
> -I/var/tmp/pear-build-root/pdflib-2.0.2/main
> -I/tmp/tmpdlYFbI/pdflib-2.0.2 -I/usr/local/include/php
> -I/usr/local/include/php/main -I/usr/local/include/php/Zend
> -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -prefer-pic -c
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c -o pdf.lo
> mkdir .libs
> gcc -I. -I/tmp/tmpdlYFbI/pdflib-2.0.2 -DPHP_ATOM_INC
> -I/var/tmp/pear-build-root/pdflib-2.0.2/include
> -I/var/tmp/pear-build-root/pdflib-2.0.2/main
> -I/tmp/tmpdlYFbI/pdflib-2.0.2 -I/usr/local/include/php
> -I/usr/local/include/php/main -I/usr/local/include/php/Zend
> -I/usr/local/include/php/TSRM -DHAVE_CONFIG_H -g -O2 -c
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c -fPIC -DPIC -o .libs/pdf.o
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:87:28: ext/gd/php_gd.h: No such file
> or directory
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:89:31: ext/gd/libgd/gd.h: No such
> file or directory
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c: In function
> `zif_pdf_open_memory_image':
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:7081: error: `gdImagePtr' undeclared
> (first use in this function)
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:7081: error: (Each undeclared
> identifier is reported only once
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:7081: error: for each function it
> appears in.)
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:7081: error: parse error before "im"
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:7099: error: `im' undeclared (first
> use in this function)
> /tmp/tmpdlYFbI/pdflib-2.0.2/pdf.c:7099: error: parse error before
> "zend_fetch_resource"
> make: *** [pdf.lo] Error 1
> `make' failed
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> Edit this bug report at
> http://bugs.php.net/?id=30873&edit=1
>
> --
> PECL development discussion Mailing List (http://pecl.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Best regards,
imacat ^_*' <imacat@mail.imacat.idv.tw>
PGP Key: http://www.imacat.idv.tw/me/pgpkey.txt
<<Woman's Voice>> News: http://www.wov.idv.tw/
Tavern IMACAT's: http://www.imacat.idv.tw/
TLUG List Manager: http://www.linux.org.tw/mailman/listinfo/tlug
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]