axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanjaya Ratnaweera (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (AXIS2C-1158) Can't compile without specifying -D_GNU_SOURCE
Date Thu, 12 Jun 2008 15:46:46 GMT

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

Sanjaya Ratnaweera reassigned AXIS2C-1158:
------------------------------------------

    Assignee: Sanjaya Ratnaweera

> Can't compile without specifying -D_GNU_SOURCE
> ----------------------------------------------
>
>                 Key: AXIS2C-1158
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1158
>             Project: Axis2-C
>          Issue Type: Bug
>         Environment: Fedora Core 9. GCC - 4.3.0
>            Reporter: Chintana Wilamuna
>            Assignee: Sanjaya Ratnaweera
>         Attachments: adding_gnu_source.patch
>
>
> In util/src/network_handler.c in function axutil_network_handler_open_socket,
> ...
>         if (lphost)
> 	{
>             sock_addr.sin_addr.s_addr =
>                 ((struct in_addr *) lphost->h_addr)->s_addr;
>         }
> ...
> Here, according to /usr/include/netdb.h you have to compile with -D_GNU_SOURCE otherwise
h_addr will not be available.  It's provided for backward compatibility and if -D_GNU_SOURCE
is not specified you have to get it from h_addr_list[0].

-- 
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


Mime
View raw message