From: ciano at borgosatollo dot it Operating system: Linux 2.4.19 PHP version: 4.3.1 PHP Bug Type: Compile Failure Bug description: Error compiling with mysql support (gcc-3.2.2)
I'm compiling with this configure: "./configure --enable-calendar --with-zlib --with-bz2 --enable-ftp --with-ttf --with-mysql --with-mysql-sock --with-pgsql --enable-sockets --with-apxs2=/usr/local/apache2/bin/apxs" but I'm getting this error: "ext/mysql/libmysql/my_tempnam.lo(.text+0x4c): In function `my_tempnam': /home/lucio/php/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/lucio/php/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/lucio/php/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/lucio/php/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/lucio/php/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/lucio/php/php-4.3.1/ext/mysql/libmysql/my_delete.c:16: undefined reference to `errno' ext/mysql/libmysql/my_tempnam.lo(.text+0x85):/home/lucio/php/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" this happens even with the 4.3.0 and looks trange because I've already compiled the 4.3.0 version on the same machine without haveing problems and It's now running pretty well. Any suggestion?? -- Edit bug report at http://bugs.php.net/?id=22813&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22813&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22813&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22813&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22813&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22813&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22813&r=support Expected behavior: http://bugs.php.net/fix.php?id=22813&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22813&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22813&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22813&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22813&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22813&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22813&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22813&r=gnused