bug-libtool
[Top][All Lists]
Advanced

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

More multi-language libtool problems on 4.3 BSD UNIX


From: Michael Sokolov
Subject: More multi-language libtool problems on 4.3 BSD UNIX
Date: Thu, 25 Jan 01 20:46:06 PST

Hi there,

Here is one more apparent bug in libtool I hit when trying to build
libstdc++-v3 on 4.3 BSD UNIX. Using the current multi-language libtool, it dies
in configure with a cryptic error message from sh:

../../../gcc/libstdc++-v3/../ltconfig: illegal io

I have traced it to the eval $ac_compile in ltcf-cxx.sh. Now everything that
happens inside Autoconf-generated configure scripts is complete black magic and
occult to me, but everywhere else I see eval $ac_compile surrounded with
parentheses. Adding parentheses around eval $ac_compile in ltcf-cxx.sh fixes
the problem for me. The patch is below.

Now while diagnosing this problem, I've found one other thing in ltcf-cxx.sh
that bothers me a little. It has the following in it:

# It is not enough to reset these cached values, they must be unset.
unset ac_cv_prog_cc_pic_works
unset ac_cv_prog_cc_static_works

The original Bourne shell that UNIX uses doesn't have unset. Right now the
libtoolized configure script runs through for me, albeit with messages from sh
about unset not being found, but I don't know if something gets misconfigured
because of the lack of unset.

-- 
Michael Sokolov
Public Service Agent
International Engineering and Science Task Force

1351 VINE AVE APT 27            Phone: +1-714-738-5409
FULLERTON CA 92833-4291 USA     (home office)

E-mail: address@hidden (ARPA TCP/SMTP)

P.S. I don't subscribe to the libtool lists (only the Sourceware and GCC ones),
so please Cc: me.

2001-01-25  Michael Sokolov  <address@hidden>

        * ltcf-cxx.sh: Use parentheses around eval $ac_compile.

Index: ltcf-cxx.sh
===================================================================
RCS file: /home/cvs/libtool/Attic/ltcf-cxx.sh,v
retrieving revision 1.1.2.26
diff -p -r1.1.2.26 ltcf-cxx.sh
*** ltcf-cxx.sh 2000/12/22 23:49:02     1.1.2.26
--- ltcf-cxx.sh 2001/01/26 04:34:03
*************** private:
*** 794,800 ****
  EOF
  
  
! if eval $ac_compile 2>&5; then
    # Parse the compiler output and extract the necessary
    # objects, libraries and library flags.
  
--- 794,800 ----
  EOF
  
  
! if (eval $ac_compile) 2>&5; then
    # Parse the compiler output and extract the necessary
    # objects, libraries and library flags.
  



reply via email to

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