php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23329 cannot compile
Submitted: 2003-04-24 09:05 UTC Modified: 2003-04-24 10:42 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: dbarth at gmx dot net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.1 OS: Mandrake 9.1
Private report: No CVE-ID: None
 [2003-04-24 09:05 UTC] dbarth at gmx dot net
Hello there,

i have some problems compiling php under my new mandrake 9.1 release.

using the same options and packages under suse 8.0 worked fine.

so here are the informations:

configure string:
'./configure' '--with-mysql' '--with-prefix=/usr/local/php' '--with-imap-ssl' '--enable-track-vars' '--enable-trans-sid' '--enable-sockets' '--with-apxs=/usr/local/apache/bin/apxs

as i run make, it terminates with:

[...]
li/getopt.lo main/internal_functions_cli.lo -lcrypt -lresolv -lm -ldl -lnsl -lcrypt  -o sapi/cli/php
ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam':
/home/snooze/install/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+0x41c): In function `my_dir':
/home/snooze/install/php-4.3.1/ext/mysql/libmysql/my_lib.c:169: undefined reference to `errno'
ext/mysql/libmysql/my_lib.lo(.text+0x658): In function `my_stat':
/home/snooze/install/php-4.3.1/ext/mysql/libmysql/my_lib.c:588: undefined reference to `errno'
ext/mysql/libmysql/my_malloc.lo(.text+0xe2): In function `my_malloc':
/home/snooze/install/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':
/home/snooze/install/php-4.3.1/ext/mysql/libmysql/my_realloc.c:44: undefined reference to `errno'
ext/mysql/libmysql/my_delete.lo(.text+0x8a): In function `my_delete':
/home/snooze/install/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno'
ext/mysql/libmysql/my_tempnam.lo(.text+0x85):/home/snooze/install/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] Fehler 1

so whats the hell is going wrong?
im using mysl in version 4.0.11a-gamma, could this be the reason?

any help would be greatly apreaciated

thanks in advance



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-24 10:42 UTC] jay@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

This looks like a duplicate of 22346   
(http://bugs.php.net/bug.php?id=22346), and it appears to  
be fixed.   
  
J  
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 23:00:01 2026 UTC