RE: [PHP-INST] Problems to get PHP 4.3.0 compiled (MySQL?)

From: Date: Thu, 24 Apr 2003 02:36:25 +0000
Subject: RE: [PHP-INST] Problems to get PHP 4.3.0 compiled (MySQL?)
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-10704@lists.php.net to get a copy of this message
I had the same exact problem. I ended up downloading the Linux binary, NOT RPM, from mysql.com (http://www.mysql.com/downloads/download.php?file=Downloads%2FMySQL-4.0% 2Fmysql-standard-4.0.12-pc-linux-i686.tar.gz&mirror=http%3A%2F%2Fmysql.s ecsup.org%2F). This gave me the necessary source headers to compile PHP using --with-mysql=/path/to/mysql. I also compiled Apache 1.3.27 from source. I used these instructions: http://www.php.net/manual/en/install.apache.php It works great! I am running a RH9 box with the 2.4.20-9 kernel. -----Original Message----- From: Ville Mattila [mailto:ville.mattila@pilotmedia.fi] Sent: Wednesday, April 23, 2003 5:03 PM To: php-install@lists.php.net Subject: [PHP-INST] Problems to get PHP 4.3.0 compiled (MySQL?) Hello everyone, I tried to compile PHP 4.3.0 with following configure string: --with-pear --with-zlib-dir=/usr/include/ --enable-mailparse --enable-trans- sid --enable-shared --enable-static --with-apxs=/usr/local/apache/bin/apxs - -with-curlwrappers --enable-ftp --enable-exif --with-gd --with-jpeg-dir=/usr /lib --with-png-dir=/usr/lib --with-zlib-dir=/usr/include --with-freetype=/u sr/lib --enable-gd-native-ttf --with-mysql --with-pdflib=/usr/local --with-r egex --with-zlib --with-config-file-path=/etc --enable-track-vars Everything went fine until "make" command gives following errors: ext/mysql/libmysql/my_lib.lo(.text+0x3d1): In function `my_dir': /root/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno' ext/mysql/libmysql/my_lib.lo(.text+0x5ef): In function `my_stat': /root/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno' ext/mysql/libmysql/my_malloc.lo(.text+0xde): In function `my_malloc': /root/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24: undefined reference to `errno' ext/mysql/libmysql/my_realloc.lo(.text+0xd5): In function `my_realloc': /root/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno' ext/mysql/libmysql/my_delete.lo(.text+0x86): In function `my_delete': /root/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno' ext/mysql/libmysql/my_tempnam.lo(.text+0x85):/root/php-4.3.1/ext/mysql/l ibmy sql/my_tempnam.c:108: more undefined references to `errno' follow collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 [root@server php-4.3.1]# Any ideas what's up? MySQL was installed from RPM to my RH9 box, does it have some effect? Thanks for any clue, Ville -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.install (#10704) next »