[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

1.5.22 fails to configure on AIX 5.1

From: Howard Chu
Subject: 1.5.22 fails to configure on AIX 5.1
Date: Thu, 12 Jan 2006 22:04:51 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060111 SeaMonkey/1.5a Mnenhy/

Something in AIX's /bin/sh is misbehaving; the output from setting -xv on the shell shows chunks of the script are actually missing. If bash is used to invoke the top-level configure script, that seems to run OK but then the libltdl directory also fails unless you set CONFIG_SHELL to bash as well. (In other words, using bash exclusively seems to work.)

I guess the first noticable failure is in trying to detect the maximum length of a command line:

+ echo 'configure:5515: checking the maximum length of command line arguments'
+ echo -n 'checking the maximum length of command line arguments... '
checking the maximum length of command line arguments... if test "${lt_cv_sys_ma
x_cmd_len+set}" = set; then
  echo $ECHO_N "(cached) $ECHO_C" >&6
[I've omitted the rest of the script body here]
    # If test is not a shell built-in, we'll probably end up computing a
    # maximum length that is only half of the actual maximum length, but
    # we can't tell.
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
               = "XX$teststring") >/dev/null 2>&1 &&
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
            lt_cv_sys_max_cmd_len=$new_result &&
            test $i != 17 # 1/2 MB should be enough
      i=`expr $i + 1`
# Add a significant safety factor because C++ compilers can tack on massive
    # amounts of additional arguments before passing them to the linker.
    # It appears as though 1/2 is a usable value.
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`

+ test '' = set
+ i=0
+ teststring=ABCD
+ case $build_os in
+ SHELL=/bin/sh
+ teststring=
expr $lt_cv_sys_max_cmd_len \/ 2
++ expr / 2
expr: syntax error
+ lt_cv_sys_max_cmd_len=

It appears to completely ignore the "while" clause.

  -- Howard Chu
  Chief Architect, Symas Corp.
  Director, Highland Sun
  OpenLDAP Core Team  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]