GNU bug report logs - #8746
/usr/bin/sed on HP-UX truncates, but not always

Previous Next

Package: libtool;

Reported by: "Daniel Richard G." <skunk <at> iSKUNK.ORG>

Date: Fri, 27 May 2011 19:34:02 UTC

Severity: normal

To reply to this bug, email your comments to 8746 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-libtool <at> gnu.org:
bug#8746; Package libtool. (Fri, 27 May 2011 19:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Daniel Richard G." <skunk <at> iSKUNK.ORG>:
New bug report received and forwarded. Copy sent to bug-libtool <at> gnu.org. (Fri, 27 May 2011 19:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Daniel Richard G." <skunk <at> iSKUNK.ORG>
To: bug-libtool <at> gnu.org
Subject: /usr/bin/sed on HP-UX truncates, but not always
Date: Fri, 27 May 2011 15:28:10 -0400
I am using Libtool 2.4. Recently, I had a build fail on an HP-UX/Itanium
11.23 system, with the error

    libtool: eval: line 1088: syntax error: unexpected end of file

I traced this down to $SED truncating $relink_command. But I see that
Libtool has a configure-time check for this, and /usr/bin/sed passed, so
I dug a little deeper.

Sample test file:

    aaaaaaaaaaaaaa...(6000 a's in all)...aaaaaaaaaaaaaaa <at> foo@

% cat testfile | /usr/bin/sed s/a/b/ | wc -c
6006
% cat testfile | /usr/bin/sed 's/@foo@/bar/' | wc -c
4109

$SED acts on an @inst_prefix_dir@ placeholder at the end of
$relink_command, so this appears to be what was going on.


--Daniel


-- 
NAME = Daniel Richard G.     _\|/_    Remember, skunks
MAIL = skunk <at> iSKUNK.ORG     (/o|o\) _- don't smell bad---
MAIL+= skunk <at> alum.MIT.EDU   < (^),>     it's the people who
WWW  = (not there yet!)      /   \      annoy us that do!




This bug report was last modified 14 years and 26 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.