[EMAIL PROTECTED] (Felix Natter) writes: > hi, > > I get these errors when trying to compile php 4.3.0 with the > included gd and freetype 2.1.3 (I also tried 2.0.2 and 2.1.2): > > /bin/sh libtool --silent --mode=compile gcc -I/root/php-4.3.0/ext/gd/libgd >-DHAVE_LIBPNG -DHAVE_LIBFREETYPE -Iext/gd/ -I/root/php-4.3.0/ext/gd/ -DPHP_ATOM_INC >-I/root/php-4.3.0/include -I/root/php-4.3.0/main -I/root/php-4.3.0 >-I/root/php-4.3.0/Zend -I/usr//include -I/usr/include/freetype2 -I/usr/include/mysql >-I/root/php-4.3.0/ext/xml/expat -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 >-DHARD_SERVER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208104 >-DEAPI -DUSE_EXPAT -I/root/php-4.3.0/TSRM -g -O2 -prefer-pic -c >/root/php-4.3.0/ext/gd/libgd/gdft.c -o ext/gd/libgd/gdft.lo > In file included from /root/php-4.3.0/ext/gd/libgd/gdft.c:50: > /usr/include/freetype2/freetype/ftglyph.h:86: parse error before `FT_Library'
I found the problem. FYI: I had a freetype 1.3 rpm lying around and I had to remove this (or rename /usr/include/freetype to /usr/include/_freetype while compiling php) but now I'm having this problem: [...] -lmysqlclient -lfreetype -lpng -lz -lz -lcrypt -lresolv -lm -ldl -lnsl -lcrypt -o sapi/cli/php ext/mysql/php_mysql.lo: In function `zif_mysql_client_encoding': /root/PHP4_3/php-4.3.1/ext/mysql/php_mysql.c:1077: undefined reference to `mysql_character_set_name' ext/mysql/php_mysql.lo: In function `zif_mysql_real_escape_string': /root/PHP4_3/php-4.3.1/ext/mysql/php_mysql.c:1671: undefined reference to `mysql_real_escape_string' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 -- Felix Natter -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php