problems compiling php-4.3.1

Harold Shanafield yellowdog-general@lists.terrasoftsolutions.com
Mon May 19 09:25:01 2003


I am trying to compile php 4.3.1 as a requirement for
another package.  The configure step goes smoothly
after adding a few packages, but I get this error when
I try and  make:

make: *** Waiting for unfinished jobs....
ext/mysql/libmysql/my_tempnam.o: In function
`my_tempnam':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103:
the use of `tempnam' is dangerous, better use
`mkstemp'
ext/mysql/libmysql/my_lib.o: In function `my_dir':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:169:
undefined reference to `errno'
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:169:
undefined reference to `errno'
ext/mysql/libmysql/my_lib.o: In function `my_stat':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:588:
undefined reference to `errno'
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_lib.c:588:
undefined reference to `errno'
ext/mysql/libmysql/my_malloc.o: In function
`my_malloc':
/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24:
undefined reference to `errno'
ext/mysql/libmysql/my_malloc.o:/usr/local/src/php-4.3.1/ext/mysql/libmysql/my_malloc.c:24:
more undefined references to `errno' follow
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1

can anybody help me out?  Should I try editing that
file to mkstemp?  

TIA,
Harold

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com