From root@emr.itacs.to Wed Dec  1 10:20:00 1999
Return-Path: <root@emr.itacs.to>
Received: from emr.itacs.to (anc-du-1529.gci.net [209.165.134.5])
	by hub.freebsd.org (Postfix) with ESMTP id 8FE0214D0F
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Dec 1999 10:19:57 -0800 (PST)
	(envelope-from root@emr.itacs.to)
Received: (from root@localhost)
	by emr.itacs.to (8.9.3/8.9.3) id JAA57037;
	Wed, 1 Dec 1999 09:19:29 -0900 (AKST)
	(envelope-from root)
Message-Id: <199912011819.JAA57037@emr.itacs.to>
Date: Wed, 1 Dec 1999 09:19:29 -0900 (AKST)
From: Charlie Root <root@emr.itacs.to>
Reply-To: root@emr.itacs.to
To: FreeBSD-gnats-submit@freebsd.org
Subject: CFLAGS and CC not settable and one warning in siglist.c <Synopsis of the problem (one line)>
X-Send-Pr-Version: 3.2

>Number:         15211
>Category:       bin
>Synopsis:       CFLAGS and CC not settable and one warning in siglist.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec  1 10:20:01 PST 1999
>Closed-Date:    Mon Jun 26 03:00:17 PDT 2000
>Last-Modified:  Mon Jun 26 03:02:47 PDT 2000
>Originator:     James Andariese james@ja.ath.cx
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
>Environment:
FreeBSD emr.itacs.to 3.3-STABLE FreeBSD 3.3-STABLE #1: Wed Dec  1 00:25:15 AKST 1999     root@emr.itacs.to:/usr/src/sys/compile/SUPERFRIEND  i386
>Description:
CFLAGS and CC cannot be set by the builder without modifying the Makefile
after running make patch.
Also, there is a warning in siglist.c.
>How-To-Repeat:
>Fix:

diff -urN socket.bak/patches/patch-aa socket/patches/patch-aa
--- socket.bak/patches/patch-aa	Sat Aug 24 12:37:47 1996
+++ socket/patches/patch-aa	Tue Nov 30 20:35:42 1999
@@ -1,15 +1,3 @@
---- Makefile.orig	Thu Sep 10 16:59:31 1992
-+++ Makefile	Wed Aug 14 16:57:57 1996
-@@ -43,7 +43,8 @@
- ### CDC 4680 EP/IX: (I know it *has* setsid(2), but not with bsd43)
- # SWITCHES = -systype bsd43 -DNOSETSID
- 
--
-+# FreeBSD 2.x (4.4BSD)
-+SWITCHES=-DHAVE_SYS_PARAM_H -Wall
- 
- ### It should not be necessary to change anything below this line.
- ##################################################################
 --- README.orig	Wed Sep  9 16:45:16 1992
 +++ README	Wed Aug 14 16:57:58 1996
 @@ -166,4 +166,4 @@
@@ -61,35 +49,6 @@
  {
      fd_set readfds ;
      int fdset_width ;
---- siglist.c.orig	Sun Aug 30 15:50:48 1992
-+++ siglist.c	Wed Aug 14 16:57:58 1996
-@@ -32,12 +32,18 @@
- #  endif /* !_NSIG */
- #endif /* !NSIG */
- 
--char *sys_siglist[NSIG];
-+#if HAVE_SYS_PARAM_H
-+# include <sys/param.h>
-+#endif
- 
-+#if !(defined(BSD) && (BSD >=199306))
-+char *sys_siglist[NSIG];
-+#endif
- extern *malloc ();
- 
--initialize_siglist ()
-+void initialize_siglist ()
- {
-+#if !(defined(BSD) && (BSD >=199306))
-   register int i;
- 
-   for (i = 0; i < NSIG; i++)
-@@ -219,4 +225,5 @@
- 	  sprintf (sys_siglist[i], "Unknown Signal #%d", i);
- 	}
-     }
-+#endif /* !(defined(BSD) && (BSD >=199306)) */
- }
 --- socket.1.orig	Wed Sep  9 16:38:19 1992
 +++ socket.1	Wed Aug 14 16:57:58 1996
 @@ -158,4 +158,4 @@
@@ -216,3 +175,59 @@
  {
      int i ;
  #ifdef SIG_SETMASK		/* only with BSD signals */
+--- Makefile.orig	Thu Sep 10 06:59:31 1992
++++ Makefile	Tue Nov 30 20:30:50 1999
+@@ -13,9 +13,11 @@
+ INSTALLBINMODE = 755
+ INSTALLMANPATH = $(INSTALLBASE)/man
+ INSTALLMANMODE = 444
++.ifndef CC
+ CC = cc
+-CFLAGS  = $(SWITCHES) -O
+-LDFLAGS = $(SWITCHES) -s
++.endif
++CFLAGS  += $(SWITCHES)
++LDFLAGS += $(SWITCHES) -s
+ 
+ ### You may need to uncomment some lines below for your operating
+ ### system:
+@@ -43,7 +45,8 @@
+ ### CDC 4680 EP/IX: (I know it *has* setsid(2), but not with bsd43)
+ # SWITCHES = -systype bsd43 -DNOSETSID
+ 
+-
++# FreeBSD 2.x (4.4BSD)
++SWITCHES=-DHAVE_SYS_PARAM_H -Wall
+ 
+ ### It should not be necessary to change anything below this line.
+ ##################################################################
+--- siglist.c.orig	Sun Aug 30 05:50:48 1992
++++ siglist.c	Tue Nov 30 20:34:02 1999
+@@ -32,12 +32,18 @@
+ #  endif /* !_NSIG */
+ #endif /* !NSIG */
+ 
+-char *sys_siglist[NSIG];
++#if HAVE_SYS_PARAM_H
++# include <sys/param.h>
++#endif
+ 
+-extern *malloc ();
++#if !(defined(BSD) && (BSD >=199306))
++char *sys_siglist[NSIG];
++#endif
++extern void*malloc ();
+ 
+-initialize_siglist ()
++void initialize_siglist ()
+ {
++#if !(defined(BSD) && (BSD >=199306))
+   register int i;
+ 
+   for (i = 0; i < NSIG; i++)
+@@ -219,4 +225,5 @@
+ 	  sprintf (sys_siglist[i], "Unknown Signal #%d", i);
+ 	}
+     }
++#endif /* !(defined(BSD) && (BSD >=199306)) */
+ }

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: peter 
Responsible-Changed-When: Mon Dec 6 11:34:34 PST 1999 
Responsible-Changed-Why:  
misfiled 
State-Changed-From-To: open->closed 
State-Changed-By: nbm 
State-Changed-When: Mon Jun 26 03:00:17 PDT 2000 
State-Changed-Why:  
Behaviour is expected - environment variables should be constant 
throughout ports building.  The ports error should have been sent in a 
ports PR, but has been subsequently fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=15211 
>Unformatted:
