[ 
https://issues.apache.org/jira/browse/AXIS2C-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dinesh Premalal reassigned AXIS2C-1106:
---------------------------------------

    Assignee: Dinesh Premalal

> Build failures with --enable-tests on 64 bit linux with GCC
> -----------------------------------------------------------
>
>                 Key: AXIS2C-1106
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1106
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: Current (Nightly)
>         Environment: CentOS 4.6 64 bit, gcc 3.4.6
>            Reporter: Steve Nairn
>            Assignee: Dinesh Premalal
>            Priority: Minor
>         Attachments: axis2c.patch
>
>
> There's a problem compiling some of the test modules on 64 bit linux with GCC 
> when configured with --enable-tests.
> In all cases the problems are because some function declarations are not 
> visible in the test module so the functions are implicitly declared as 
> returning "int". This value os then cast to a pointer so generates a warning 
> about "cast to pointer from integer of different size". Because the 
> configuration script adds "-Werror" to CFLAGS if compiling with GCC this is 
> counted as an error.
> The problem modules are all in util:
>       util/test/utils/utils_test.c
>       util/test/string_util/string_util_test.c
>       util/test/properties/property_test.c
> The problems utils_test.c and string_util_test.c are easily solved by 
> "#include"ing the appropriate header.
> The problem with property_test.c is not as simple as the offending function 
> (axutil_properties_read) does not appear in a header file. In this case it's 
> probably safest to just declare it in property_test.c (as I see it it can't 
> just be added to util/include/axutil_properties.h as it would need to be 
> marked AXIS2_EXTERN which would change the ABI of the axutil DSO).
> The attached patch fixes the problem.
> Cheers,
> Steve Nairn

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to