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

axis2/c does not build on Mac OS X

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6.0
    • None
    • core/transport, util
    • None
    • Mac OS X

    Description

      1) dir_handler.c : struct dirent * should not be const on mac

      extern int AXIS2_ALPHASORT(
      );
      #ifdef IS_MACOSX
      int dir_select(
      struct dirent *entry);
      int file_select(
      < const struct dirent *entry);
      > struct dirent *entry); //removed const to make it build on mac
      #else
      int dir_select(
      const struct dirent *entry);
      int file_select(
      const struct dirent *entry);
      #endif

      < int
      < file_select(
      < const struct dirent *entry)
      < {
      <
      < #ifdef IS_MACOSX
      < int file_select(struct dirent *entry);
      < #else
      < int file_select(const struct dirent *entry);
      < #endif

      > #ifdef IS_MACOSX
      > int
      > file_select( struct dirent *entry ); //removed const to make it build on mac
      > #else
      > int
      > file_select( const struct dirent *entry );
      > #endif
      > {

      2) axutil_unix.h : conflicting declaration of usleep

      #ifdef HAVE_UNISTD_H
      #include <unistd.h>
      < extern int usleep (__useconds_t __useconds);
      #endif /*HAVE_UNISTD_H */

      3) axis2_libcurl.c : missing initialization of variable in axis2_libcurl_send

      unsigned int buffer_size = 0;
      int content_length = -1;
      < axis2_char_t *content_type;
      > axis2_char_t *content_type = NULL;
      axis2_char_t *content_len = AXIS2_HTTP_HEADER_CONTENT_LENGTH_;
      const axis2_char_t *char_set_enc = NULL;
      axis2_char_t *content = AXIS2_HTTP_HEADER_CONTENT_TYPE_;

      Attachments

        Activity

          People

            Unassigned Unassigned
            halewijng Halewijn Geerts
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: