delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/11/10:39:03

Date: Fri, 11 Jun 1999 16:38:35 +0200
From: Teun Burgers <burgers AT ecn DOT nl>
Subject: bug in libtool-1.3.2 for DJGPP
Sender: burgers AT ecn DOT nl
To: libtool AT gnu DOT org
Cc: mdruiter AT cs DOT vu DOT nl, djgpp AT delorie DOT com
Message-id: <37611F6B.9166DE2@ecn.nl>
Organization: Netherlands Energy Research Foundation ECN
X-Envelope-to: djgpp AT delorie DOT com
MIME-version: 1.0
X-Mailer: Mozilla 4.5 [en] (X11; I; OSF1 V4.0 alpha)
X-Accept-Language: nl
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
--------------AD914BDE0382C87CD797AD2C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hello all,

These problems have been found and fixed by Michiel de Ruiter
(mdruiter AT cs DOT vu DOT nl) and later by me again and 
have been reported to the automake
mailing list but apparantly not to the libtool mailing list.

1) PROBLEM: libtool script generated by ltconfig contains mixed
            <CR><LF> and <CR> line endings and won't work.

   libtool is written in ltconfig{.in}:

        cat <<HERE > "$ofile"
        echo "tekst" > "$ofile"

   gives <cr><lf> on $ofile

        cat ltmain.sh >> "$ofile"

   gives <lf> on $ofile

   FIX: sed -e "" ltmain.sh >> "$ofile"

2) PROBLEM: configure thinks ln -s works for DJGPP.
   This is a problem with djgpp ln that does not make the
   softlink for ordinary files, but still returns a 0 exit code.

   This problem can be fixed in autoconf in the AC_PROG_LN_S macro.

   Under djgpp soft links work only for .exe files. ln (hard link)
   simply does a copy with is sufficient to make libtool work.

3) libtool with problems 1 and 2 fixed still doesn't work.
   due to NL2SP problem in ltmain

   use \015\012 \040\040 instead of \012 \040

libtool thus fixed passes all tests except cdemo-make.test

The diffs for ltmain.in and ltconfig.in are attached

Teun Burgers


-- 
Drs A.R. Burgers        Netherlands Energy Research Foundation ECN
Phone: +31-224-564703   Solar & Wind Energy, PV Cells & Modules
Fax  : +31-224-563214   P.O. Box 1
email: burgers AT ecn DOT nl   1755 ZG Petten, The Netherlands
--------------AD914BDE0382C87CD797AD2C
Content-Type: text/plain; charset=us-ascii;
 name="ltmain.df"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ltmain.df"

72c72
< NL2SP='tr \015\012 \040\040'
---
> NL2SP='tr \012 \040'

--------------AD914BDE0382C87CD797AD2C
Content-Type: text/plain; charset=us-ascii;
 name="ltconfig.df"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ltconfig.df"

2900c2900
<   sed -e "" "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
---
>   cat "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)

--------------AD914BDE0382C87CD797AD2C--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019