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

axis2_http_server.exe crashes in axis2_getopt

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.2.0
    • None
    • build system (Windows)
    • None
    • Windows XP

    Description

      Crashes on this line:

      if (optind >= __argc || *(pos = __argv[optind]) != '-')

      I changed the makefile and was able to get it to work. Changed to the following:

      !if "$(DEBUG)" == "1"
      CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /Z7
      LDFLAGS = $(LDFLAGS) /DEBUG /INCREMENTAL /NODEFAULTLIB:LIBCMTD.lib
      !else
      CFLAGS = $(CFLAGS) /D "NDEBUG" /O2 /MT
      LDFLAGS = $(LDFLAGS)
      !endif

      Basically for the DEBUG case, I removed the $(CRUNTIME)d from CFLAGS and added back the /NODEFAULTLIB:LIBCMTD.lib to LDFLAGS that was there in 1.1. Also changed $(CRUNTIME) to /MT for the release mode CFLAGS.

      In my configure.in, I had CRUNTIME=/MD

      Attachments

        Activity

          People

            senakafdo Senaka Fernando
            hoodoo99 Dave Meier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: