You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2007/11/13 17:14:30 UTC
DO NOT REPLY [Bug 43851] New: - apr_pools.h warning when building on Solaris 10 (64 bit x86)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
Summary: apr_pools.h warning when building on Solaris 10 (64 bit
x86)
Product: APR
Version: 1.2.9
Platform: Other
OS/Version: other
Status: NEW
Severity: minor
Priority: P2
Component: APR
AssignedTo: bugs@apr.apache.org
ReportedBy: Joe.Mudd@sas.com
The apr_pool_create() macro needs to cast the abort_fn to an apr_abortfunc_t.
Without this cast, the following warning appears:
warning: argument #3 is incompatible with prototype:
prototype: pointer to function(int) returning
int : "/wire/develop/apr/1.2/solaris-x64/include/apr-1/apr_pools.h", line 186
argument : pointer to void
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 43851] - apr_pools.h warning when building on Solaris 10 (64 bit x86)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
wrowe@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |INVALID
------- Additional Comments From wrowe@apache.org 2007-11-13 23:37 -------
Ok - thanks to you both for the extra research - it sure didn't make sense
to me, and I'm glad the modern compiler agrees.
The 'default' system compiler on sol/hp/aix is almost always too ancient to
get "good" results from building apr - although every modern compiler works
just fine. (So does every ancient gcc ;-)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 43851] - apr_pools.h warning when building on Solaris 10 (64 bit x86)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
------- Additional Comments From henryjen@ztune.net 2007-11-13 18:07 -------
Works fine on SolarisExpress on x86 with Sun Studio 12 with following sample
code with just cc.
#include "apr_pools.h"
int main(int argc, const char ** argv)
{
apr_pool_t *pool; // Our APR needs context
apr_status_t aStatus;
aStatus = apr_pool_create_ex(&pool, NULL, NULL, NULL);
}
$ cc -V
cc: Sun C 5.9 SunOS_i386 2007/05/03
usage: cc [ options] files. Use 'cc -flags' for details
Would you try above sample code and report the warnings if any and the version
of your C compiler?
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 43851] - apr_pools.h warning when building on Solaris 10 (64 bit x86)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
------- Additional Comments From Joe.Mudd@sas.com 2007-11-13 18:21 -------
Looks like our machine is way behind the curve...
$ cc -V
cc: Sun C 5.8 2005/10/13
I apologize for the noise.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 43851] - apr_pools.h warning when building on Solaris 10 (64 bit x86)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
------- Additional Comments From Joe.Mudd@sas.com 2007-11-13 08:15 -------
Created an attachment (id=21122)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21122&action=view)
apr_pools.h patch
Cast the NULL abort_fn argument in terms of apr_abortfunc_t.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 43851] - apr_pools.h warning when building on Solaris 10 (64 bit x86)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
wrowe@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From wrowe@apache.org 2007-11-13 09:21 -------
This appears to be a compiler quirk, or an odd choice of compile flags.
Since this is a deprecated API, I don't see much point in touching/"improving"
the old stub if it's a byproduct of a compiler quirk/bug?
Can you be a little more detailed with the warning results you see (what you
were compiling, what the compile line was, etc?) Is this mixed model large
data/short code pointers?
None the less NULL is always a valid pointer value.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 43851] - apr_pools.h warning when building on Solaris 10 (64 bit x86)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
------- Additional Comments From Joe.Mudd@sas.com 2007-11-13 10:05 -------
The code that received the warning is:
apr_pool_t *pool; // Our APR needs context
apr_status_t aStatus;
aStatus = apr_pool_create(&sort->pool, NULL);
The compiler setting is:
cc -xarch=amd64 -O
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 43851] - apr_pools.h warning when building on Solaris 10 (64 bit x86)
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43851
------- Additional Comments From Joe.Mudd@sas.com 2007-11-13 18:24 -------
Sorry, meant to also mention that the warning shown in the original comment did
not show up w/the sample code given in comment 4.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org