Uploaded image for project: 'mod_python'
  1. mod_python
  2. MODPYTHON-228

Awk command line options behaviour on Solaris 10 changes.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.3.1
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      Configure script uses:

      AC_MSG_CHECKING(flex version)
      FlexVERSION=`$LEX --version | sed 's/version//g' | awk '/flex/

      {print $2}'`
      Flex_MAJOR=`echo $FlexVERSION| awk -F . '{print $1}'`
      Flex_MINOR=`echo $FlexVERSION| awk -F . '{print $2}

      '`
      Flex_PATCH=`echo $FlexVERSION| awk -F . '

      {print $3}

      '`

      Problem is that on Solaris 10 the awk program was changed so as not to accept a space after the -F option.

      Ie., on Solaris 9 the manual page says:

      /usr/bin/awk [-f progfile] [-F c] [ ' prog '] [parameters] [filename...]

      But on Solaris 10 it says:

      /usr/bin/awk [-f progfile] [-Fc] [ ' prog '] [parameters] [filename...]

      This means that if flex version check performed on Solaris 10 the awk command will fail.

      checking flex version... awk: syntax error near line 1
      awk: bailing out near line 1
      awk: syntax error near line 1
      awk: bailing out near line 1
      awk: syntax error near line 1
      awk: bailing out near line 1
      ./configure: line 3187: test: : integer expression expected

      For further details see:

      http://www.modpython.org/pipermail/mod_python/2007-March/023230.html

      Configure script should perhaps search for presence of 'gawk', 'nawk' and 'awk' in that order. That way it will give preference to BSD awk variants rather than SYSV variant which can be different in other respects as well.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              grahamd Graham Phillip Dumpleton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: