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

Build failure when enabling curl support

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.0
    • transport/http
    • None
    • Debian Lenny, gcc 4.3.2. SVN trunk checkout rev 1056550

    Description

      Building with --enable-libcurl fails with the following errors (warnings really, but -Werror is enabled):

      http_sender.c:3183: error: 'axis2_http_sender_connection_map_create' defined but not used
      http_sender.c:3288: error: 'axis2_http_sender_connection_map_get' defined but not used

      Both functions are used in axis2_http_sender_send, which is only defined when not using libcurl.

      adding #ifndef statements for those two functions produces one more "defined but not used" warning about axis2_http_sender_connection_map_free.

      In addition to those issues, there is also

      libcurl/axis2_libcurl.c:121: error: unused variable 'content_len'

      which appears to be caused by code that exists but is commented out.

      I have added the #ifndefs as necessary, and also commented out content_len.

      Also, I have included the error buffer change from Robert Schweikert's patch for AXIS2C-1522.

      At present, I get a clean compile with those changes.

      Attachments

        1. AXIS2C-1524_patch.diff
          3 kB
          Bill Blough

        Activity

          People

            nandika Korale Gamaralalage Nandika Chandrasiri Jayawardana
            billblough Bill Blough
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: