Hallo. I'm trying to compile PHP 4.2.1 on a SuSE 7.2 server and can't go on because of the following error:
checking for MySQL support... yes checking size of char... 1 checking size of int... (cached) 4 checking size of long... (cached) 4 checking size of long long... 8 checking for size_t... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking for uid_t in sys/types.h... (cached) yes checking for type ulong... yes checking for type uchar... no checking for type uint... yes checking for type ushort... yes checking for int8... no checking base type of last arg to accept... socklen_t checking return type of qsort... void configure: error: Cannot find header files under /usr/include/mysql Bad exit status from /home/askwar/RPM/tmp/rpm-tmp.64223 (%build) config.log has these last lines: configure:39891: checking base type of last arg to accept configure:39919: g++ -c -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERV ER_LIMIT=2048 -DDYNAMIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208103 -DEAPI -DUSE_EXPAT co nftest.C 1>&5 configure:39968: checking return type of qsort configure:39985: gcc -c -O2 -m486 -fno-strength-reduce -fPIC -DHAVE_LIBDL=1 -I/usr/includ e/gd -DEAPI_MM -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHARD_SERVER_LIMIT=2048 -DDYNA MIC_MODULE_LIMIT=128 -DLINUX=22 -DMOD_SSL=208103 -DEAPI -DUSE_EXPAT conftest.c 1>&5 configure:39975: warning: garbage at end of `#ifdef' argument I called configure with these parameters: CFLAGS="-O2 -m486 -fno-strength-reduce -fPIC -DHAVE_LIBDL=1 \ -I/usr/include/gd" \ LDFLAGS= \ EXTRA_LIBS="-L/usr/X11R6/lib/ -lpng -lXpm -lssl -lncurses" \ ./configure i386-suse-linux --prefix=/usr/share --datadir=/usr/share/php --bindir=/usr/bin --libdir=/usr/share --includedir=/usr/include --with-config-file-path=/etc --with-exec-dir=/usr/lib/php/bin --with-mm --with-apxs=/usr/sbin/apxs --enable-versioning --enable-yp --enable-bcmath --enable-trans-sid --enable-inline-optimization --enable-track-vars --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-shmop --enable-calendar --enable-mbstring --enable-mbstr-enc-trans --enable-exif --enable-memory-limit --enable-wddx --enable-filepro --enable-dbase --enable-ctype --disable-debug --enable-force-cgi-redirect --enable-discard-path --enable-sigchild --with-pear=/usr/share/php/pear --with-pgsql=/usr --with-mysql=/usr/include/mysql --with-imap=yes --with-imap --with-imap-ssl --with-curl --enable-cli --with-mhash --with-ming --with-recode --with-iconv --with-dom --with-dom-xslt --with-dom-exslt --with-gd=yes --enable-gd-native-ttf --enable-gd-imgstrttf --with-tiff-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-ttf --with-freetype --with-freetype-dir=/usr/include/freetype2 --with-t1lib --with-zlib=yes --with-bz2 --with-gmp --with-mcal=/usr --with-sablot --with-ftp --enable-ftp --with-gdbm --with-ndbm --with-qtdom=/usr/lib/qt --with-openssl --with-snmp --enable-ucd-snmp-hack --with-gettext --with-mcrypt --with-ncurses --enable-dbx --enable-mbregex When I use --with-mysql instead of --with-mysql=/usr/include/mysql, I can compile PHP with no errors. /usr/include/mysql contains: host:/S.u.S.E. # ls -la /usr/include/mysql total 256 drwxr-xr-x 2 root root 4096 Jun 25 16:10 . drwxr-xr-x 57 root root 8192 Jul 7 22:02 .. -rw-r--r-- 1 root root 3864 Jun 18 2001 chardefs.h -rw-r--r-- 1 root root 3437 Jun 18 2001 dbug.h -rw-r--r-- 1 root root 1979 Jun 18 2001 errmsg.h -rw-r--r-- 1 root root 9263 Jun 18 2001 history.h -rw-r--r-- 1 root root 3449 Jun 18 2001 keymaps.h -rw-r--r-- 1 root root 5846 Jun 18 2001 m_ctype.h -rw-r--r-- 1 root root 7452 Jun 18 2001 m_string.h -rw-r--r-- 1 root root 19072 Jun 18 2001 my_config.h -rw-r--r-- 1 root root 30141 Jun 18 2001 my_global.h -rw-r--r-- 1 root root 1579 Jun 18 2001 my_list.h -rw-r--r-- 1 root root 1324 Jun 18 2001 my_net.h -rw-r--r-- 1 root root 1206 Jun 18 2001 my_no_pthread.h -rw-r--r-- 1 root root 21161 Jun 18 2001 my_pthread.h -rw-r--r-- 1 root root 24248 Jun 18 2001 my_sys.h -rw-r--r-- 1 root root 10562 Jun 18 2001 mysql.h -rw-r--r-- 1 root root 8598 Jun 18 2001 mysql_com.h -rw-r--r-- 1 root root 558 Jun 18 2001 mysql_version.h -rw-r--r-- 1 root root 6959 Jun 18 2001 mysqld_error.h -rw-r--r-- 1 root root 5836 Jun 18 2001 raid.h -rw-r--r-- 1 root root 24120 Jun 18 2001 readline.h -rw-r--r-- 1 root root 1605 Jun 18 2001 sslopt-case.h -rw-r--r-- 1 root root 1296 Jun 18 2001 slopt-longopts.h -rw-r--r-- 1 root root 1235 Jun 18 2001 sslopt-usage.h -rw-r--r-- 1 root root 1013 Jun 18 2001 sslopt-vars.h -rw-r--r-- 1 root root 2724 Jun 18 2001 tilde.h These files belong to the SuSE mysql-devel-3.23.37-24 RPM. Does anyone have an idea about why this error happens? Thanks a lot, Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (en) Homepage: http://www.iso-top.de | Jabber: [EMAIL PROTECTED] iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 13 hours 9 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php