# FYI: minor include issue with older systems - strcasecmp not always in string.h

- Thread: https://externals.io/message/49931
- Original archive: https://news-web.php.net/php.internals/49931
- Started by Michael Felt on 2010-10-19T15:21:37+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #49931 — Michael Felt — 2010-10-19T15:21:37+00:00

URL: https://externals.io/message/49931#49931

While performing a build on AIX433 I get the following error.

/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

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

---

## #49932 — Pierre Joye — 2010-10-19T15:56:43+00:00

URL: https://externals.io/message/49931#49932 · In reply to: #49931

hi,

Can you open a bug report and attach a patch to it pls?

Thanks!



> While performing a build on AIX433 I get the following error.
>
> /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
>
> 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
>



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
