php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40835 "Incompatible with prototype" warnings
Submitted: 2007-03-16 14:56 UTC Modified: 2007-08-27 09:35 UTC
From: ian at onlineloop dot com Assigned: tony2001 (profile)
Status: Not a bug Package: Compile Warning
PHP Version: 5.2.1 OS: Solaris 10
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ian at onlineloop dot com
New email:
PHP Version: OS:

 

 [2007-03-16 14:56 UTC] ian at onlineloop dot com
Description:
------------
When compiling PHP 5.2.1 on Solaris 10, sparc, with Studio 10 compilers from Sun Microsystems, the build completes, however there are numerous warnings about the prototype declarations not matching their usage in the source code.

A number of external libraries, such as libxml2, openssl, openldap, and so on have been compiled from source on the same system with the same compiler.

Because of the large number of warnings and the resulting size of the output, a text file will be added to this report containing a complete history of the build, or failing that a link to a url.

If further information is needed, please tell me and I will provide it asap.

# uname -a
SunOS devel 5.10 Generic sun4u sparc SUNW,Sun-Fire-V440

# cc -V
cc: Sun C 5.7 2005/01/07

# ld -V
ild: Sun Incremental Linker 4.3 2005/01/07

# env | grep FLA
LDFLAGS=-L/opt/sfw/lib -L/usr/sfw/lib -L/usr/local/open-ldap/lib -L/usr/lib -L/usr/local/BerkeleyDB/lib -R/opt/sfw/lib -R/usr/sfw/lib -R/usr/local/open-ldap/lib -R/usr/local/BerkeleyDB/lib -R/usr/lib
CPPFLAGS=-I/opt/sfw/include -I/usr/sfw/include/openssl -I/usr/local/open-ldap/include -I/usr/local/BerkeleyDB/include/ -I/usr/include
CFLAGS=-I/opt/sfw/include -I/usr/sfw/include/openssl -I/usr/local/open-ldap/include -I/usr/local/BerkeleyDB/include -I/usr/include





Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-03-16 15:04 UTC] tony2001@php.net
It would be very good to have an access to a machine with Sun Compiler, just for tests. As far as I know at the moment none of  developers use Sun Compiler or test the builds using it.
 [2007-03-16 15:34 UTC] ian at onlineloop dot com
OK, so it seems no text file attachments are possible, as such a link to the build history.

http://www.meduniwien.ac.at/user/ib/php-5.2.1-solaris10_build.log.gz

As for access to a machine, I will try to arrange something in the next couple of weeks.
 [2007-03-16 15:52 UTC] tony2001@php.net
Most of these warnings can be safely ignored (and do not exist if you use less strict compiler).
 [2007-03-20 16:11 UTC] tony2001@php.net
Any news?
Btw, I've looked through the warnings and all of them are safe.
Actually, I believe your compiler should not even report most of them.
 [2007-05-15 15:35 UTC] ian at onlineloop dot com
I'm setting up a zone on an Enterprise 3500 for the PHP team.  Please contact me directly so we can arrange access and discuss your needs.
 [2007-08-27 09:35 UTC] tony2001@php.net
These warnings are sef to ignore, the compiler is just too verbose.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC