Bug #17312: Build problem with GCC 3.1
From: asautins@yahoo.com
Operating system: Redhat 7.2
PHP version: 4.2.1
PHP Bug Type: MySQL related
Bug description: Build problem with GCC 3.1
Building php 4.2.1 ( ./configure with no options ) using GCC 3.1 causes
the following error:
/usr/bin/ld: Dwarf Error: Invalid or unhandled FORM value: 14.
ext/mysql/libmysql/my_tempnam.o: In function `my_tempnam':
/home/asautins/php4/ext/mysql/libmysql/my_tempnam.c:86: the use of
tempnam' is dangerous, better use mkstemp'
collect2: ld returned 1 exit status
It looks like a warning, but php will not link. If I comment out the
call to tempnam in my_temnam.c, it links correctly.
Given that GCC 3.1 does not come as part of the standard distribution
and I built it from source, that could be the problem, but I was able to
reproduce on two separate instances.
It would be nice to use php_open_temporary_file
(main/php_open_temporary_file.c ) to avoid duplicating the effort, but it
does not seem to be intended for use by modules.
--
Edit bug report at http://bugs.php.net/?id=17312&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17312&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17312&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17312&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17312&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17312&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17312&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17312&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17312&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17312&r=globals
Thread (15 messages)
- asautins at yahoo dot com
- asautins@php.netBug #17312 Updated: Build problem with GCC 3.1
- mfischer@php.netBug #17312 Updated: Build problem with GCC 3.1
- asautins@php.netBug #17312 Updated: Build problem with GCC 3.1
- mfischer@php.netBug #17312 Updated: Build problem with GCC 3.1
- mfischer@php.netBug #17312 Updated: Build problem with GCC 3.1
- asautins@php.netBug #17312 Updated: Build problem with GCC 3.1
- sniper@php.netBug #17312 Updated: Build problem with GCC 3.1
- php-bugs at lists dot php dot net#17312 [Fbk->NoF]: Build problem with GCC 3.1
- renjin at starhub dot net dot sg#17312 [Com]: Build problem with GCC 3.1
- ecarter at uci dot edu#17312 [Com]: Build problem with GCC 3.1
- moriyoshi@php.net#17312 [NoF]: Build problem with GCC 3.1
- mule at themule dot net#17312 [Com]: Build problem with GCC 3.1
- dpenezic at srce dot hr#17312 [Com]: Build problem with GCC 3.1
- lanttis at homeharmony dot fi#17312 [Com]: Build problem with GCC 3.1