[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to