Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 97241 invoked from network); 17 Apr 2008 11:30:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Apr 2008 11:30:30 -0000 Received: (qmail 46614 invoked by uid 500); 17 Apr 2008 11:30:30 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 46598 invoked by uid 500); 17 Apr 2008 11:30:30 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 46587 invoked by uid 99); 17 Apr 2008 11:30:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 04:30:30 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2008 11:29:55 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AD560234C0D7 for ; Thu, 17 Apr 2008 04:27:21 -0700 (PDT) Message-ID: <2081123685.1208431641708.JavaMail.jira@brutus> Date: Thu, 17 Apr 2008 04:27:21 -0700 (PDT) From: "Dinesh Premalal (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Assigned: (AXIS2C-1106) Build failures with --enable-tests on 64 bit linux with GCC In-Reply-To: <1354018672.1208275025072.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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: axis-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org