php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19003 cannot edit Makefile (post-configure) - line too long
Submitted: 2002-08-20 18:35 UTC Modified: 2002-08-20 20:20 UTC
From: vlb at cfcl dot com Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 4.2.2 OS: Tru64 Unix
Private report: No CVE-ID: None
 [2002-08-20 18:35 UTC] vlb at cfcl dot com
 In build snapshot php4-200208190900 the Makefile includes a definition of 
  PHP_GLOBAL_OBJS = ...

This line is > 2048 characters.

If any other part of the Makefile is edited post-configure (e.g. to add a local include file at the FRONT of the INCLUDES list), vi (OK, yes, I use vi) breaks the PHP_GLOBAL_OBJS line. This results in a Make error. Attempts to join the PHP_GLOBALS_OBJS paarts together again cause vi to complain

    The result of a line join would be greater than 2048 characters.

OK, I should be using nvi or emacs and certainky not Tru64Unix but it's not like I have a lot of choice. Please break up the PHP_GLOBAL_OBJS variable setting into more manageable pieces.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-20 18:45 UTC] vlb at cfcl dot com
ex doesn't like it either:
ex Makefile
"Makefile" Line(s) longer than 2048 characters were split. 644 lines, 76288 characters
 [2002-08-20 20:20 UTC] rasmus@php.net
You really shouldn't be editing the Makefile for any reason.  If you need to add an include, set it in your CFLAGS env variable.  Any settings in any of the tracked env vars listed at the end of ./configure --help will be recorded in your config.nice file so you can repeat the same configure later on.  Simply save your config.nice and re-use it instead of hacking the Makefile.  We may take a look at that particular line at some point, but overall this is a rather bogus bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 11:01:30 2024 UTC