php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56336 make error
Submitted: 2005-03-02 11:10 UTC Modified: 2005-04-05 11:10 UTC
From: c dot menssen at web dot de Assigned:
Status: Closed Package: Fileinfo (PECL)
PHP Version: 4.3.10 OS: Linux 2.6.8-1-686
Private report: No CVE-ID: None
 [2005-03-02 11:10 UTC] c dot menssen at web dot de
Description:
------------
Hi!

When i try to build FileInfo, there comes an make-error.

Regards,
Chris

Reproduce code:
---------------
phpize
./configure
make

Expected result:
----------------
All, but no errors :-)

Actual result:
--------------
pc-server:/home/chris/pecl/Fileinfo-0.2# make
/bin/sh /home/chris/pecl/Fileinfo-0.2/libtool --mode=compile gcc  -I. -I/home/chris/pecl/Fileinfo-0.2 -DPHP_ATOM_INC -I/home/chris/pecl/Fileinfo-0.2/include -I/home/chris/pecl/Fileinfo-0.2/main -I/home/chris/pecl/Fileinfo-0.2 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM  -DHAVE_CONFIG_H  -g -O2   -c /home/chris/pecl/Fileinfo-0.2/fileinfo.c -o fileinfo.lo
mkdir .libs
 gcc -I. -I/home/chris/pecl/Fileinfo-0.2 -DPHP_ATOM_INC -I/home/chris/pecl/Fileinfo-0.2/include -I/home/chris/pecl/Fileinfo-0.2/main -I/home/chris/pecl/Fileinfo-0.2 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -DHAVE_CONFIG_H -g -O2 -c /home/chris/pecl/Fileinfo-0.2/fileinfo.c  -fPIC -DPIC -o .libs/fileinfo.o
/home/chris/pecl/Fileinfo-0.2/fileinfo.c: In function `_php_finfo_get_type':
/home/chris/pecl/Fileinfo-0.2/fileinfo.c:360: error: parse error before "void"
make: *** [fileinfo.lo] Fehler 1


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 10:55 UTC] sylvain dot david at etranges-libellules dot fr
Same problem :
On my Debian Sarge, I try to install horde3, and the command line "pear install fileinfo" return this :

downloading Fileinfo-0.2.tgz ...
Starting to download Fileinfo-0.2.tgz (5,491 bytes)
.....done: 5,491 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20020918
Zend Module Api No:      20020429
Zend Extension Api No:   20021010
building in /var/tmp/pear-build-root/Fileinfo-0.2
running: /tmp/tmpW3WHPu/Fileinfo-0.2/configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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
checking for PHP includes... -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM
checking for PHP extension directory... /usr/lib/php4/20020429-zts
checking for re2c... exit 0;
checking for gawk... gawk
checking for fileinfo support... yes, shared
checking for magic files in default path... found in /usr
checking for magic_open in -lmagic... yes
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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/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/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/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/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/Fileinfo-0.2/libtool --mode=compile gcc  -I. -I/tmp/tmpW3WHPu/Fileinfo-0.2 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/Fileinfo-0.2/include -I/var/tmp/pear-build-root/Fileinfo-0.2/main -I/tmp/tmpW3WHPu/Fileinfo-0.2 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM  -DHAVE_CONFIG_H  -g -O2   -c /tmp/tmpW3WHPu/Fileinfo-0.2/fileinfo.c -o fileinfo.lo
mkdir .libs
 gcc -I. -I/tmp/tmpW3WHPu/Fileinfo-0.2 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/Fileinfo-0.2/include -I/var/tmp/pear-build-root/Fileinfo-0.2/main -I/tmp/tmpW3WHPu/Fileinfo-0.2 -I/usr/include/php4 -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/TSRM -DHAVE_CONFIG_H -g -O2 -c /tmp/tmpW3WHPu/Fileinfo-0.2/fileinfo.c  -fPIC -DPIC -o .libs/fileinfo.o
/tmp/tmpW3WHPu/Fileinfo-0.2/fileinfo.c: In function `_php_finfo_get_type':
/tmp/tmpW3WHPu/Fileinfo-0.2/fileinfo.c:360: error: parse error before "void"
make: *** [fileinfo.lo] Erreur 1
`make' failed
 [2005-03-14 05:56 UTC] c dot steffens at gmx dot net
Hi there!
The same problem for me :-( It's impossible to install Fileinfo. Always the same make error.

My system:
Debian Woody
PHP 4.3.10

Hope, there would be a solution as soon as possible...

Thanks for your help!
 [2005-03-15 11:28 UTC] c dot steffens at gmx dot net
You can find the solution here: http://pecl.php.net/bugs/bug.php?id=3597

Greetings,
Christoph
 [2005-04-05 11:10 UTC] ilia at prohost dot org
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 13:01:30 2024 UTC