[Top][All Lists]

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

$max_cmd_len unset in libtool-1.5

From: Martin MOKREJŠ
Subject: $max_cmd_len unset in libtool-1.5
Date: Thu, 22 May 2003 01:39:58 +0200 (CEST)

  I found there's a bug in libtool-1.5. When compiling glib-2.2.1 on
Tru64Unix 5.1A, I got errors from test(1) program "integer expression
expected". That lead to:

$ /bin/bash -x ../libtool --mode=relink cc -O2 -arch ev56 -pthread -o 
libgthread-2.0.la -rpath /software/@sys/usr/lib -version-info 200:1:200 
-export-dyynamic gthread-impl.lo -Wc,-pthread -lrt ../glib/libglib-2.0.la 
-lintl -L/usr/local/lib -L/software/@sys/usr/lib -L/usr/local/openssl/lib 
+ len=2554
+ test 2554 -le ''
../libtool: test: : integer expression expected
+ test '' -le -1
../libtool: test: : integer expression expected
+ echo 'creating reloadable object files...'
creating reloadable object files...
+ test -z ''
+ save_libobjs= .libs/gthread-impl.o
+ save_output=libgthread-2.0.la

This points to the following part in generated libtool:

grep max_cmd_len /afs/gsf.de/alpha_dux51/usr/share/libtool/ltmain.sh
               test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; 
           test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
                 test "$len" -le "$max_cmd_len"; }; then
             test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
               test "$len" -le "$max_cmd_len"; then

Where is the value of $max_cmd_len being set? When I set manually
max_cmd_len to some number(255), I don't get this message. But what should
be the size?

Martin Mokrejs <address@hidden>, <address@hidden>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585

reply via email to

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