Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1158

Can't compile without specifying -D_GNU_SOURCE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Fedora Core 9. GCC - 4.3.0

    Description

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

      Attachments

        1. adding_gnu_source.patch
          0.6 kB
          Chintana Wilamuna

        Activity

          People

            pini Sanjaya Ratnaweera
            chintana Chintana Wilamuna
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: