php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22754 Compile exits with during MySQL section on my_tempnam.c
Submitted: 2003-03-17 18:48 UTC Modified: 2003-03-24 04:18 UTC
From: unix-guy at pacbell dot net Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.3.2RC1 OS: HP-UX 11.11
Private report: No CVE-ID: None
 [2003-03-17 18:48 UTC] unix-guy at pacbell dot net
Using the bundled mysql and php4-STABLE-200303131630 with HP's ANSI C compiler, I get the following error, which exits the compile:

        /bin/sh /users/global/cokm/build/php4-STABLE-200303131630/libtool --silent --preserve-dup-deps --mode=compile cc -I/users/global/cokm/build/php4-STABLE-200303131630/ext/mysql/libmysql -Iext/mysql/ -I/users/global/cokm/build/php4-STABLE-200303131630/ext/mysql/ -DPHP_ATOM_INC -I/users/global/cokm/build/php4-STABLE-200303131630/include -I/users/global/cokm/build/php4-STABLE-200303131630/main -I/users/global/cokm/build/php4-STABLE-200303131630 -I/users/global/cokm/build/php4-STABLE-200303131630/Zend -I/util/bin/libs/HP11.11/zlib-1.1.4/include -I/util/bin/libs/HP11.11/jpeg-6b/include -I/util/bin/libs/HP11.11/libpng-1.2.4/include -I/util/bin/libs/HP11.11/freetype-2.1.2/include -I/util/bin/libs/HP11.11/freetype-2.1.2/include/freetype2 -I/util/bin/libs/HP11.11/gd-1.8.4/include -I/oracle/v8174p/rdbms/public -I/oracle/v8174p/rdbms/demo -I/users/global/cokm/build/php4-STABLE-200303131630/ext/xml/expat  -I/users/global/cokm/build/php4-STABLE-200303131630/TSRM  -g  -prefer-pic -c /users/global/cokm/build/php4-STABLE-200303131630/ext/mysql/libmysql/my_tempnam.c -o ext/mysql/libmysql/my_tempnam.lo 
cc: "/users/global/cokm/build/php4-STABLE-200303131630/ext/mysql/libmysql/my_tempnam.c", line 99: warning 524: Cast (non-lvalue) appears on left-hand side of assignment.
cc: "/users/global/cokm/build/php4-STABLE-200303131630/ext/mysql/libmysql/my_tempnam.c", line 99: error 1549: Modifiable lvalue required for assignment operator.
cc: "/users/global/cokm/build/php4-STABLE-200303131630/ext/mysql/libmysql/my_tempnam.c", line 105: warning 524: Cast (non-lvalue) appears on left-hand side of assignment.
cc: "/users/global/cokm/build/php4-STABLE-200303131630/ext/mysql/libmysql/my_tempnam.c", line 105: error 1549: Modifiable lvalue required for assignment operator.
*** Error exit code 1

Stop.


I have looked for other bugs related to this problem and don't see any (I did see many refering to a security issue), although maybe I've missed something. 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-17 19:47 UTC] sniper@php.net
Does this happen when you compile mysql 3.23.55 ?
(It looks like it's fixed there..)

We propably should upgrade our bundled mysql client library,
but please let us know that this doesn't happen with the 3.23.55 first.

 [2003-03-18 00:47 UTC] georg@php.net
MySQL 4.0.12 becomes stable within the next days (currently they have to build and check the packages for various platforms). So I prefer to wait and add 4.0.12 lib then.
 [2003-03-18 12:04 UTC] unix-guy at pacbell dot net
I wanted to try this out for you, but was having problems getting past the "configure" stage of compiling MySQL (3.23.56 since I couldn't get 3.23.55). 

In trying to resolve the problem, I was looking at their configure script and found this (by accident):


  if test "$ac_cv_type_char" = yes; then
  # The cast to unsigned long works around a bug in the HP C Compiler
  # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  # This bug is HP SR number 8606223364.
  if test "$cross_compiling" = yes; then
  # Depending upon the size, compute the lo and hi bounds.


I am wondering if this might not be the same problem I am seeing? I am using a version of the compiler compiler that predates the mentioned bug-fix.
 [2003-03-18 20:03 UTC] sniper@php.net
So maybe you could install the fixed version of the compiler
then? And make sure we don't waste time on fixing something
that isn't broken.. :)


 [2003-03-18 20:25 UTC] unix-guy at pacbell dot net
Yes, assuming I can get the proper version, I plan on doing that. However, its a commercial product so I can't just go download it :)
 [2003-03-19 02:33 UTC] sniper@php.net
Are you saying HP asks money for fixes too????
And keep this report at 'feedback' status, until
you give the feedback we're actually waiting for..

 [2003-03-24 04:18 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2021-04-06 10:40 UTC] git@php.net
Automatic comment on behalf of roojs
Revision: https://github.com/php/pecl-tools-svn/commit/6e0d93cfc052f931d57f8ed6a6d362802c99b535
Log: fix #22754 - add support for svn_delete
 [2021-04-06 10:40 UTC] git@php.net
-Status: No Feedback +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC