Bug 236837 - 'perl -e' multiline expression invoked from a Makefile syntax error
Summary: 'perl -e' multiline expression invoked from a Makefile syntax error
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: perl
Version: 5.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Robin Norwood
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-04-17 21:08 UTC by Kevin J. McCarthy
Modified: 2014-08-11 05:37 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-04-23 23:40:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Makefile to generate error. (60 bytes, application/octet-stream)
2007-04-17 21:08 UTC, Kevin J. McCarthy
no flags Details

Description Kevin J. McCarthy 2007-04-17 21:08:38 UTC
Description of problem:

On RHEL5, perl 5.8.8, the attached Makefile generates a Perl syntax error.  On
RHEL4, perl 5.8.5 (and other platforms), it runs correctly.

How reproducible:

Install make and perl, and run 'make' against the attached Makefile

Actual results:

syntax error at -e line 3, near "while"
Execution of -e aborted due to compilation errors.
make: *** [all] Error 255


Expected results:

prints "hi" and then enters an infinite loop.

Additional info:

This is a simplication of a bug that's occurring while trying to compile JSS
<http://www.mozilla.org/projects/security/pki/jss/> on RHEL5

The behaviour of Perl seems a bit wacky.  Two "print()" calls on multiple lines
will run, but the moment you try to put in a while loop, the syntax error occurs.

Comment 1 Kevin J. McCarthy 2007-04-17 21:08:41 UTC
Created attachment 152860 [details]
Makefile to generate error.

Comment 2 Kevin J. McCarthy 2007-04-23 23:40:58 UTC
This turns out to be a (well known) gmake issue. I've located a patch from
upstream for JSS.
For more details see: http://lists.debian.org/debian-devel/2005/12/msg00988.html

Closing bug report.


Note You need to log in before you can comment on or make changes to this bug.