From hunt@wopr.ml.org  Sun Apr 13 10:28:33 1997
Received: from wopr.ml.org (MPH124.rh.psu.edu [128.118.21.27])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA15072
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 13 Apr 1997 10:28:32 -0700 (PDT)
Received: (from hunt@localhost)
	by wopr.ml.org (8.8.5/8.8.5) id NAA09743;
	Sun, 13 Apr 1997 13:28:31 -0400 (EDT)
Message-Id: <199704131728.NAA09743@wopr.ml.org>
Date: Sun, 13 Apr 1997 13:28:31 -0400 (EDT)
From: Matthew Hunt <mph@pobox.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: mars fails to build if "." not in PATH
X-Send-Pr-Version: 3.2

>Number:         3274
>Category:       ports
>Synopsis:       mars fails to build if "." not in PATH
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 13 10:30:01 PDT 1997
>Closed-Date:    Fri Apr 25 14:55:45 PDT 1997
>Last-Modified:  Fri Apr 25 14:56:48 PDT 1997
>Originator:     Matthew Hunt
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
Very little.
>Environment:

FreeBSD 2.2-STABLE, building with X11R6 but without Motif.

PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/usr/local/teTeX/bin

>Description:

ar: creating archive .././lib/libMaRSComps.a
ranlib .././lib/libMaRSComps.a
make_stat_headers gcc gcc -O  -DBSD -DMEMPOOL -DINLINE -I./include -I/usr/X11R6/include > ../include/stat.h
make_stat_headers: not found
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.


>How-To-Repeat:

cd /usr/ports/cad/mars
make

>Fix:

Flog developers who work with "." in $PATH?  Besides that, apply
the following additional Makefile patch, relative to cad/mars/work:
	
--- sim/Makefile.orig	Sun Apr 13 13:24:49 1997
+++ sim/Makefile	Sun Apr 13 13:24:59 1997
@@ -19,7 +19,7 @@
 	ranlib $(MARSDIR)/lib/libMaRSSim.a
 
 stat: 
-	make_stat_headers $(CC) $(CC) $(CFLAGS) > ../include/stat.h
+	./make_stat_headers $(CC) $(CC) $(CFLAGS) > ../include/stat.h
 	$(CC) $(CFLAGS) -c stat.c
 
 lint:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: max 
State-Changed-When: Fri Apr 25 14:55:45 PDT 1997 
State-Changed-Why:  
Suggested patch is intagrated in patch-03 (in rev.1.2) 
>Unformatted:
