Bug #53107 [NEW]: undeclared identifer: strcasecmp not always in string.h
| From: | mamfelt at gmail dot com | Date: | Tue, 19 Oct 2010 20:50:09 +0000 |
| Subject: | Bug #53107 [NEW]: undeclared identifer: strcasecmp not always in string.h | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-155348@lists.php.net to get a copy of this message | ||
From:
Operating system: AIX 4.3.3
PHP version: 5.2.14
Package: Compile Failure
Bug Type: Bug
Bug description:undeclared identifer: strcasecmp not always in string.h
Description:
------------
# ./configure ... --enable-zip ...
# make
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c: In function
`_zip_name_locate':
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: `strcasecmp'
undeclared (first use in this function)
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: (Each
undeclared identifier is reported only once
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: for each
function it appears in.)
make: *** [ext/zip/lib/zip_name_locate.lo] Error 1
Test script:
---------------
PATCH? or TEST?
This is only with AIX433. AIX 5.1 and beyond has strcasecmp defined in
<string.h>. I do not know if ./configure would add an AIX433 somewhere to
make it automatic to add strings.h.
I am able to fix it with:
File: ext/zip/lib/zip_name_locate.c
+34 ^L
+35
+36 #include <string.h>
+37 #ifdef _AIX
+38 /* for AIX433 actually! */
+39 #include <strings.h>
+40 #endif
+41
+42 #include "zipint.h"
+43
+44 ^L
Expected result:
----------------
successful build.
Actual result:
--------------
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c: In function
`_zip_name_locate':
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: `strcasecmp'
undeclared (first use in this function)
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: (Each
undeclared identifier is reported only once
/data/prj/php-5.2.14/ext/zip/lib/zip_name_locate.c:67: error: for each
function it appears in.)
make: *** [ext/zip/lib/zip_name_locate.lo] Error 1
--
Edit bug report at http://bugs.php.net/bug.php?id=53107&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53107&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53107&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53107&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53107&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53107&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53107&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53107&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53107&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53107&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53107&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53107&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53107&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53107&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53107&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53107&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53107&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53107&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53107&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53107&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53107&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53107&r=mysqlcfg