undefined reference on 4.3.1
| From: | Robert Khachikyan | Date: | Mon, 21 Apr 2003 18:47:16 +0000 |
| Subject: | undefined reference on 4.3.1 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10687@lists.php.net to get a copy of this message | ||
Hi,
I had a RedHat 6.2 with Apache 2.0.40, PHP 4.2.2, MySQL 3.23.49a.
& They worked w/o a glitch.
I repartitioned my disk & freshly installed RedHat 9. It currently
has Apache 2.0.45 with the same MySQL(untouched).
I run into problems
makeing PHP 4.3.1. I tried numerous times and
still ended up with the error(below). Because this error originates
from the /path/to/php/mysql/libmysql dir, I thought turning on MySQL
would help...and it didn't....so I turn to you... This is the error
make complains:
[root@masis php-4.3.1] ./configure --with-apxs2=/path/to/apache/bin/apxs
[root@masis php-4.3.1] make
...
(print's bunch of status info here)
...
ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam':
/mnt/ibm/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.lo(.text+0x3d1): In function `my_dir':
/mnt/ibm/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':
/mnt/ibm/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':
/mnt/ibm/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':
/mnt/ibm/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':
/mnt/ibm/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.lo(.text+0x89):/mnt/ibm/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
UPDATE!!!
Huh, I just read an old archive of php.net and someone said to
configure php with a --disable-cli. I did and it worked!
I opened up http://masis/index.php and it worked! I have a php
bulletin
board with MySQL functionality and I tested it and it worked!
Perhaps this would help someone else?
As Always,
...Robert