#17312 [Com]: Build problem with GCC 3.1

From: Date: Tue, 22 Apr 2003 17:48:28 +0000
Subject: #17312 [Com]: Build problem with GCC 3.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38077@lists.php.net to get a copy of this message
ID: 17312 Comment by: lanttis at homeharmony dot fi Reported By: asautins at yahoo dot com Status: No Feedback Bug Type: MySQL related Operating System: Redhat 7.2 PHP Version: 4.2.1 New Comment: On Mandrake 9.1 none of the above methods seem to work. By installing libmysql12 and adding --with-mysql=/mysql_base_dir I just get "No header files in this location". However, when putting --with-mysql=/usr I get: ... ext/mysql/php_mysql.o(.text+0x1c74): In function `zif_mysql_create_db': /home/lanttis/php-4.3.1/ext/mysql/php_mysql.c:1118: undefined reference to `mysql_create_db' ext/mysql/php_mysql.o(.text+0x1e06): In function `zif_mysql_drop_db': /home/lanttis/php-4.3.1/ext/mysql/php_mysql.c:1160: undefined reference to `mysql_drop_db' collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 Any enlightment on the matter is deeply appreciated! Previous Comments: ------------------------------------------------------------------------ [2003-04-10 15:51:12] dpenezic at srce dot hr RedHat 9, standard instalation, PHP 4.3.1 Solution --with-mysql=/path_to_base_mysql_directory solve a problem ------------------------------------------------------------------------ [2003-03-17 14:17:15] mule at themule dot net also works for Red Hat 7.3 and PHP 4.3.1: install: mysql-3.23.54a-3.73.rpm mysql-devel-3.23.54a-3.73.rpm ./configure --with-mysql=/usr ------------------------------------------------------------------------ [2003-02-08 13:42:09] moriyoshi@php.net Be sure to use the latest version of binutils that matches the gcc version you are using. ------------------------------------------------------------------------ [2003-02-06 17:40:53] ecarter at uci dot edu /usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14. ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /local/src/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of tempnam' is dangerous, better use mkstemp' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 Here's the gcc ver: gcc-2.96-98 gcc3-g77-3.0.4-1 gcc-g77-2.96-98 libgcc-3.0.4-1 gcc-chill-2.96-98 gcc3-3.0.4-1 gcc3-objc-3.0.4-1 gcc-c++-2.96-98 gcc-objc-2.96-98 gcc3-java-3.0.4-1 gcc-java-2.96-98 gcc3-c++-3.0.4-1 -- I'm not sure what the problem is. It seems that I have no problems with another machine, here's the gcc ver on that: gcc-chill-2.96-98 libgcc-3.0.1-3 gcc-g77-2.96-98 gcc-c++-2.96-98 gcc3-g77-3.0.1-3 gcc-java-2.96-98 gcc-2.96-98 gcc3-objc-3.0.1-3 gcc3-c++-3.0.1-3 gcc-objc-2.96-98 gcc3-3.0.1-3 gcc3-java-3.0.1-3 Both are redhat linux, eric ------------------------------------------------------------------------ [2003-01-08 01:17:00] renjin at starhub dot net dot sg OS: linux mandrake 2.4.18 PHP: 4.3.0 i got the problem... again... my 4.2.3 make nicely. my 4.3.0 screw up with this error -------- ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam': /home/install/tmp/php-4.3.0/ext/mysql/libmysql/my_tempnam.c:103: the use of tempnam' is dangerous, better use mkstemp' -------- can anyone tell me which files in my php-4.3.0/ext/mysql/ should i replace to re-fix the problem, please? thanks ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/17312 -- Edit this bug report at http://bugs.php.net/?id=17312&edit=1

« previous php.bugs (#38077) next »