From:             erwthijs at hotmail dot com
Operating system: Linux Red Hat 8.0
PHP version:      4.3.1
PHP Bug Type:     MySQL related
Bug description:  Make fails: more undefined references to errno

Hi, 

i'm trying to install php-4.3.1 on my Red Hat 8 machine.
I've installed httpd-2.0.44 and Mysql-3.23.54a-4.

The configure script ran fine.

./configure --with-apxs2=/etc/httpd2/bin/apxs --prefix=/etc/httpd2/php
--with-mysql

This works fine.

But the 'make' fails. I get the following error.


ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/usr/src/php4-STABLE-200302210830/ext/mysql/libmysql/my_tempnam.c:103: the
use of `tempnam' is dangerous, better use `mkstemp'
ext/mysql/libmysql/my_lib.lo: In function `my_dir':
/usr/src/php4-STABLE-200302210830/ext/mysql/libmysql/my_lib.c:169:
undefined reference to `errno'
ext/mysql/libmysql/my_lib.lo: In function `my_stat':
/usr/src/php4-STABLE-200302210830/ext/mysql/libmysql/my_lib.c:588:
undefined reference to `errno'
ext/mysql/libmysql/my_malloc.lo: In function `my_malloc':
/usr/src/php4-STABLE-200302210830/ext/mysql/libmysql/my_malloc.c:24:
undefined reference to `errno'
ext/mysql/libmysql/my_realloc.lo: In function `my_realloc':
/usr/src/php4-STABLE-200302210830/ext/mysql/libmysql/my_realloc.c:44:
undefined reference to `errno'
ext/mysql/libmysql/my_delete.lo: In function `my_delete':
/usr/src/php4-STABLE-200302210830/ext/mysql/libmysql/my_delete.c:16:
undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.lo:/usr/src/php4-STABLE-200302210830/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

And then it stop.

I've tried downloading the latest stable php-*.tar.gz
(php4-STABLE-200302210830).


Is there anyone who can help me with this ?


Thanks in advance.


Kind Regards. 
-- 
Edit bug report at http://bugs.php.net/?id=22346&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22346&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22346&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22346&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22346&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22346&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22346&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22346&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22346&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22346&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22346&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22346&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22346&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22346&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22346&r=gnused

Reply via email to