Bug 236837 - 'perl -e' multiline expression invoked from a Makefile syntax error
'perl -e' multiline expression invoked from a Makefile syntax error
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: perl (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Robin Norwood
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2007-04-17 17:08 EDT by Kevin J. McCarthy
Modified: 2014-08-11 01:37 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-04-23 19:40:58 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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

  None (edit)
Description Kevin J. McCarthy 2007-04-17 17:08:38 EDT
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 17:08:41 EDT
Created attachment 152860 [details]
Makefile to generate error.
Comment 2 Kevin J. McCarthy 2007-04-23 19:40:58 EDT
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.