FreeBSD make PHP dies - pls help.
| From: | Steve Jones | Date: | Fri, 06 Sep 2002 22:57:49 +0000 |
| Subject: | FreeBSD make PHP dies - pls help. | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8356@lists.php.net to get a copy of this message | ||
Relative newbie here: My host (pair.com) runs FreeBSD 4.1.1. Based on my
poking around in /usr/local, I think they have Mysql 3.22.32 installed
on the machine I use. I am trying to install PHP 4.2.2 with
XSLT/sablotron in my /usr/home/USERNAME directory because pair's standard install of PHP does not include sablotron. I have compiled and installed expat and sablotron. Using the instructions at http://www.vttrains.com/phphelp/ I have gotten past step 6 (configure PHP) but step 7 (make) dies with:
/usr/local/lib/mysql/libmysqlclient.so: warning: tempnam() possibly used
unsafely; consider using mkstemp()
*** Error code 1
Stop in /usr/home/USERNAME/phpsrc/php-4.2.2.
*** Error code 1
I assume make doesn't care for something in pair's installation of mysql
(/usr/local/lib/mysql/libmysqlclient.so). According to mysql.com at
http://www.mysql.com/doc/en/News-3.23.26.html, they "Changed to use
mkstemp() instead of tempnam()". mysql_version.h in
/usr/local/include/mysql says it is version 3.22.32 (presumably before
the change). Now I'm really confused. I have not done anything with
mysql. Ideas? Thanks.
Steve
Steps leading to this point:
cd EXPAT_SRC_DIRECTORY
nice ./configure --prefix=/usr/home/USERNAME/usr/local; nice make; nice
make install
cd SABLOTRON_SRC_DIRECTORY
setenv LD_LIBRARY_PATH /usr/home/USERNAME/usr/local/lib
setenv LIBRARY_PATH /usr/home/USERNAME/usr/local/include
setenv LD_RUN_PATH /usr/home/USERNAME/usr/local/
setenv CPLUS_INCLUDE_PATH /usr/home/USERNAME/usr/local/include
setenv LIBS -L/usr/home/USERNAME/usr/local/lib
setenv CPPFLAGS -I/usr/home/USERNAME/usr/local/include
nice ./configure --prefix=/usr/home/USERNAME/usr/local; nice make; nice
make install
cd PHP_SRC_DIRECTORY
nice ./configure --with-gd=/usr/local --with-mysql=/usr/local \
--with-config-file-path=/usr/home/USERNAME/phpini \
--with-xslt-sablot=/usr/home/USERNAME/usr/local \
--enable-debug=no --enable-track-vars=yes \
--enable-force-cgi-redirect=yes --enable-xslt=yes