Problems installing fribidi with pecl
| From: | Stephen Woodbridge | Date: | Thu, 19 Nov 2009 05:27:04 +0000 |
| Subject: | Problems installing fribidi with pecl | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-6795@lists.php.net to get a copy of this message | ||
Hi all,
I am not able to get fribidi 0.10.x or 0.19.x to build using PECL.
I have tried this on both Debian Lenny and CentOS 5.2.
Do anyone have any in sight to this problem? and How to work
around it?
On Debian:
apt-get install php5
apt-get install php-pear
apt-get install libfribidi0 libfribidi-dev
pecl install fribidi
this fails to find fribidi-config if I have fribidi-0.19.1 because this version use pkg-config. I installed fribidi-0.19.1 and hand created fribidi-config and got the result below. I have also tried with fribidi-0.10.9 and got the same results.
There appear to be two separate problems:
1) the undefined constants
2) Line 218, seems to have the wrong number of arguments
Thanks,
-Steve
woodbri@mappy:/u/www/html$ sudo pecl install fribidi
[sudo] password for woodbri:
downloading fribidi-1.0.tgz ...
Starting to download fribidi-1.0.tgz (5,241 bytes)
.....done: 5,241 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
building in /var/tmp/pear-build-root/fribidi-1.0
running: /tmp/pear/download/fribidi-1.0/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
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 ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib
checking for PHP extension directory... /usr/lib/php5/20060613
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for FriBidi support... yes, shared
checking for fribidi-config... /usr/local/bin/fribidi-config
checking for FriBidi version... 0.19.1
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 recognize 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 g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... 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... 98304
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 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 static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
running: make
/bin/sh /var/tmp/pear-build-root/fribidi-1.0/libtool --mode=compile gcc
-I. -I/tmp/pear/download/fribidi-1.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/fribidi-1.0/include
-I/var/tmp/pear-build-root/fribidi-1.0/main
-I/tmp/pear/download/fribidi-1.0 -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H
-g -O2 -c /tmp/pear/download/fribidi-1.0/fribidi.c -o fribidi.lo
mkdir .libs
gcc -I. -I/tmp/pear/download/fribidi-1.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/fribidi-1.0/include
-I/var/tmp/pear-build-root/fribidi-1.0/main
-I/tmp/pear/download/fribidi-1.0 -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g
-O2 -c /tmp/pear/download/fribidi-1.0/fribidi.c -fPIC -DPIC -o
.libs/fribidi.o
/tmp/pear/download/fribidi-1.0/fribidi.c: In function âzm_startup_fribidiâ:
/tmp/pear/download/fribidi-1.0/fribidi.c:74: error:
âFRIBIDI_CHARSET_UTF8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:74: error: (Each undeclared
identifier is reported only once
/tmp/pear/download/fribidi-1.0/fribidi.c:74: error: for each function it
appears in.)
/tmp/pear/download/fribidi-1.0/fribidi.c:75: error:
âFRIBIDI_CHARSET_ISO8859_6â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:76: error:
âFRIBIDI_CHARSET_ISO8859_8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:77: error:
âFRIBIDI_CHARSET_CP1255â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:78: error:
âFRIBIDI_CHARSET_CP1256â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:79: error:
âFRIBIDI_CHARSET_ISIRI_3342â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:80: error:
âFRIBIDI_CHARSET_CAP_RTLâ undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c: In function
âzif_fribidi_log2visâ:
/tmp/pear/download/fribidi-1.0/fribidi.c:191: error:
âFRIBIDI_CHARSET_UTF8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:192: error:
âFRIBIDI_CHARSET_ISO8859_6â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:193: error:
âFRIBIDI_CHARSET_ISO8859_8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:194: error:
âFRIBIDI_CHARSET_CP1255â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:195: error:
âFRIBIDI_CHARSET_CP1256â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:196: error:
âFRIBIDI_CHARSET_ISIRI_3342â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:197: error:
âFRIBIDI_CHARSET_CAP_RTLâ undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:218: warning: passing argument
2 of âfribidi_log2visâ makes integer from pointer without a cast
/tmp/pear/download/fribidi-1.0/fribidi.c:218: warning: passing argument
3 of âfribidi_log2visâ makes pointer from integer without a cast
/tmp/pear/download/fribidi-1.0/fribidi.c:218: warning: passing argument
7 of âfribidi_log2visâ from incompatible pointer type
/tmp/pear/download/fribidi-1.0/fribidi.c:218: error: too many arguments
to function âfribidi_log2visâ
/tmp/pear/download/fribidi-1.0/fribidi.c: In function
âzif_fribidi_charset_infoâ:
/tmp/pear/download/fribidi-1.0/fribidi.c:268: error:
âFRIBIDI_CHARSET_UTF8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:269: error:
âFRIBIDI_CHARSET_ISO8859_6â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:270: error:
âFRIBIDI_CHARSET_ISO8859_8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:271: error:
âFRIBIDI_CHARSET_CP1255â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:272: error:
âFRIBIDI_CHARSET_CP1256â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:273: error:
âFRIBIDI_CHARSET_ISIRI_3342â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:274: error:
âFRIBIDI_CHARSET_CAP_RTLâ undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:277: warning: assignment
discards qualifiers from pointer target type
/tmp/pear/download/fribidi-1.0/fribidi.c:278: warning: assignment
discards qualifiers from pointer target type
/tmp/pear/download/fribidi-1.0/fribidi.c:279: warning: assignment
discards qualifiers from pointer target type
/tmp/pear/download/fribidi-1.0/fribidi.c: In function
âzif_fribidi_get_charsetsâ:
/tmp/pear/download/fribidi-1.0/fribidi.c:305: error:
âFRIBIDI_CHARSET_UTF8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:306: error:
âFRIBIDI_CHARSET_CAP_RTLâ undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:307: error:
âFRIBIDI_CHARSET_ISO8859_6â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:308: error:
âFRIBIDI_CHARSET_ISO8859_8â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:309: error:
âFRIBIDI_CHARSET_CP1255â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:310: error:
âFRIBIDI_CHARSET_CP1256â undeclared (first use in this function)
/tmp/pear/download/fribidi-1.0/fribidi.c:311: error:
âFRIBIDI_CHARSET_ISIRI_3342â undeclared (first use in this function)
make: *** [fribidi.lo] Error 1
ERROR: `make' failed