php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68642 warning: "MAXCOMLEN" redefined
Submitted: 2014-12-23 21:02 UTC Modified: 2014-12-28 18:54 UTC
From: php at wesha dot name Assigned: kalle (profile)
Status: Closed Package: Zip Related
PHP Version: 5.6.4 OS: FreeBSD 8.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
32 + 10 = ?
Subscribe to this entry?

 
 [2014-12-23 21:02 UTC] php at wesha dot name
Description:
------------
/root/_build/php/php-5.6.4/ext/zip/lib/zipint.h:145:1: warning: "MAXCOMLEN" redefined
In file included from /root/_build/php/php-5.6.4/main/php.h:210,
                 from /root/_build/php/php-5.6.4/ext/zip/lib/zip.h:39,
                 from /root/_build/php/php-5.6.4/ext/zip/lib/zipint.h:52,
                 from /root/_build/php/php-5.6.4/ext/zip/lib/zip_string.c:39:
/usr/include/sys/param.h:76:1: warning: this is the location of the previous definition

/root/_build/php/php-5.6.4/ext/zip/lib/zipint.h:
-------------------------------
#define MAXCOMLEN        65536
-------------------------------

/usr/include/sys/param.h:
-------------------------------
/*
 * Machine-independent constants (some used in following include files).
 * Redefined constants are from POSIX 1003.1 limits file.
 *
 * MAXCOMLEN should be >= sizeof(ac_comm) (see <acct.h>)
 * MAXLOGNAME should be == UT_NAMESIZE+1 (see <utmp.h>)
 */
#include <sys/syslimits.h>

#define MAXCOMLEN       19              /* max command name remembered */
-------------------------------


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-28 18:54 UTC] kalle@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: kalle
 [2014-12-28 18:54 UTC] kalle@php.net
To me this looks like it comes from libzip, not actually PHP and I think you are better off reporting such upstream even as much as I hate sending you elsewhere and not having a warning free build, but this seems to be where this origins from.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 00:01:28 2024 UTC