From:             [EMAIL PROTECTED]
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

Reply via email to