Re: Problems with installing PHP 4.3.1

From: Date: Thu, 01 May 2003 06:24:33 +0000
Subject: Re: Problems with installing PHP 4.3.1
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-10774@lists.php.net to get a copy of this message
Yes, I'm a noob. Please ignore my email now. I've located the mailing list archives and found out if I used --with-mysql=/usr it would work. I also found out that --disable-cti would assist as well. I did the disable one first and got it working. I then cleaned my source and redid a compile with --with-mysql=/usr and that worked, too. I didn't know I could just do /usr for the MySQL install. ;) Btw, from my plays in the archives, this seems to come up alot. Think it's about time to update the PHP 4.3.1 install instructions to possibly reflect this? Something to at least hint at it. Philip Gabbert wrote:
I'm getting the an error trying to install PHP 4.3.1 with MySQL support: ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam': /src/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of `tempnam' is dange rous, better use `mkstemp' ext/mysql/libmysql/my_lib.lo(.text+0x3d1): In function `my_dir': /src/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': /src/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': /src/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': /src/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': /src/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno' ext/mysql/libmysql/my_tempnam.lo(.text+0x89):/src/php-4.3.1/ext/mysql/libmysql/my _tempnam.c:108: more undefined references to `errno' follow collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 CMD line I'm using on Config: ./configure --prefix=/wwwroot/php --with-apxs2=/wwwroot/bin/apxs --with-config-file-patch=/wwwroot/php --with-mysql MySQL installed is version 4.0 using RPMs from the MySQL site. Anybody have any idea why this happens and how to fix it? I'm at a lost here. It looks to me it's chocking on it's own MySQL library files.


« previous php.install (#10774) next »