You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Rob Saccoccio <ro...@InfiniteTechnology.com> on 1998/05/27 00:06:02 UTC

config/2289: TestCompile fails because make assumes its running in the Makefile directory

>Number:         2289
>Category:       config
>Synopsis:       TestCompile fails because make assumes its running in the Makefile directory
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Tue May 26 15:10:06 PDT 1998
>Last-Modified:
>Originator:     robs@InfiniteTechnology.com
>Organization:
apache
>Release:        1.3b7
>Environment:
> uname -a
QNX 23 G 424 PCI 32

Watcom compiler
>Description:
TestCompile cd into the helpers directory, creates the Makefile, executes
make, but the Makefile changes directory back up to src.  Theres really no
reason to do this and it breaks make's default rule.
>How-To-Repeat:

>Fix:
*** TestCompile.orig	Sat Apr 11 11:45:59 1998
--- TestCompile	Tue May 26 17:52:36 1998
***************
*** 111,120 ****
  LDFLAGS=\$(LDFLAGS1) \$(EXTRA_LDFLAGS)
  
  dummy:
! 	cd ..; \$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) helpers/dummy.c -o helpers/dummy $TLIB \$(LIBS)
  
  testfunc:
! 	cd ..; \$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) helpers/testfunc.c -o helpers/testfunc $TLIB \$(LIBS)
  EOF
  
  # Now run that Makefile
--- 111,120 ----
  LDFLAGS=\$(LDFLAGS1) \$(EXTRA_LDFLAGS)
  
  dummy:
! 	\$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) dummy.c -o dummy $TLIB \$(LIBS)
  
  testfunc:
! 	\$(CC) \$(CFLAGS) \$(INCLUDES) \$(LDFLAGS) testfunc.c -o testfunc $TLIB \$(LIBS)
  EOF
  
  # Now run that Makefile
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <ap...@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]