NetBSD Problem Report #414

From gnats  Mon Aug 15 05:43:33 1994
Received: from connie.de.convex.com (connie.de.convex.com [130.168.115.1]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id FAA01565 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Mon, 15 Aug 1994 05:43:21 -0700
Message-Id: <199408151242.OAA01742@sniffer.de.convex.com>
Date: Mon, 15 Aug 1994 14:42:48 +0200
From: grefen@convex.com
Reply-To: grefen@convex.com
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: mkdep fails because of cpp-problem
X-Send-Pr-Version: 3.2

>Number:         414
>Category:       bin
>Synopsis:       mkdep with macro-substitution in #include statement
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 15 06:05:06 +0000 1994
>Closed-Date:    Mon Sep 19 02:49:23 +0000 1994
>Last-Modified:  Fri Aug 13 13:28:00 +0000 2004
>Originator:     Stefan Grefen
>Release:        
>Organization:
Stefan Grefen                          Convex Computer GmbH, Frankfurt, Germany
grefen@convex.com		       Phone: +49-69-665270

>Environment:

System: NetBSD sniffer 1.0_BETA NetBSD 1.0_BETA (TUAREG) #10: Wed Aug 3 18:01:47 MET DST 1994 grefen@sniffer:/usr/src/sys/arch/i386/compile/TUAREG i386


>Description:
    mkdep failes with file.c:x: `"#include' expects "FILENAME" or <FILENAME>
    for programs that compile without error if macro-functions are used as
    parameter to an #include statement
>How-To-Repeat:
    cat <<EOF > t.c
    #define incfile hh.c
    #define _mkstr(a) #a
    #define mkstr(a) _mkstr(a)
    #include mkstr(incfile)
    main(){}
    EOF
    cc t.c
    mkdep t.c
>Fix:
*** cpp	Mon Aug 15 14:26:55 1994
--- /usr/bin/cpp	Tue Aug  2 17:03:06 1994
***************
*** 1,4 ****
! #!/bin/sh -
  #
  # Copyright (c) 1990 The Regents of the University of California.
  # All rights reserved.
--- 1,4 ----
! #!/bin/sh
  #
  # Copyright (c) 1990 The Regents of the University of California.
  # All rights reserved.
***************
*** 48,54 ****
  OPTS=""
  INCS="-nostdinc"
  FOUNDFILES=no
- TRAD=unkwn

  for A
  do
--- 48,53 ----
***************
*** 57,72 ****
  		NSI=yes
  		;;
  	-traditional)
- 		if [ $TRAD = "no" ] ; then
- 		    ALST="-traditional $ALST"
- 		fi
- 		TRAD="yes"
- 		;;
- 	-M*)
- 		if [ $TRAD != "yes" ] ; then
- 		    ALST=`echo $ALST | sed -e 's/-traditional//'`
- 		    TRAD="no"
- 		fi
  		;;
  	-I*)
  		INCS="$INCS $A"
--- 56,61 ----
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Sun Sep 18 19:49:23 PDT 1994 
State-Changed-Why:  
Fixed, by changing mkdep to use `gcc'. 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/414 CVS commit: pkgsrc/devel/automake
Date: Fri, 13 Aug 2004 13:27:06 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Fri Aug 13 13:27:06 UTC 2004

 Modified Files:
 	pkgsrc/devel/automake: Makefile PLIST distinfo

 Log Message:
 Update to 1.9.1:

 Bugs fixed in 1.9.1:

 This release fixes three longstanding bugs.

 * Adjust #line directives in `parser.h' (when ylwrap is not used).
   (PR/432)

 * Fix definition of YLWRAP when ylwrap is installed in a default
   aux directory found in a parent package.

 * Properly recognize AC_CANONICAL_BUILD and AC_CANONICAL_TARGET.

 New in 1.9:

 * Makefile.in bloat reduction:

   - Inference rules are used to compile sources in subdirectories when
     the `subdir-objects' option is used and no per-target flags are
     used.  This should reduce the size of some projects a lot, because
     Automake used to output an explicit rule for each such object in
     the past.

   - Automake no longer outputs three rules (.o, .obj, .lo) for each
     object that must be built with explicit rules.  It just outputs
     the rules required to build the kind of object considered: either
     the two .o and .obj rules for usual objects, or the .lo rule for
     libtool objects.

 * Change to Libtool support:

   - Libtool tags are used with libtool versions that support them.
     (I.e., with Libtool 1.5 or greater.)

   - Automake is now able to handle setups where a libtool library is
     conditionally installed in different directories, as in

       if COND
         lib_LTLIBRARIES = liba.la
       else
         pkglib_LTLIBRARIES = liba.la
       endif
       liba_la_SOURCES = ...

 * Changes to aclocal:

   - aclocal now ensures that AC_DEFUNs and AU_DEFUNs it discovers are
     really evaluated, before it decides to include them in aclocal.m4.
     This solves nasty problems with conditional redefinitions of
     Autoconf macros in /usr/share/aclocal/*.m4 files causing extraneous
     *.m4 files to be included in any project using these macros.
     (Calls to AC_PROG_EGREP causing libtool.m4 to be included is the
     most famous instance of this bug.)

   - Do not complain about missing conditionally AC_REQUIREd macros
     that are not actually used.  In 1.8.x aclocal would correctly
     determine which of these macros were really needed (and include
     only these in the package); unfortunately it would also require
     all of them to be present in order to run.  This created
     situations were aclocal would not work on a tarball distributing
     all the macros it uses.  For instance running aclocal on a project
     containing only the subset of the Gettext macros in use by the
     project did not work, because gettext conditionally requires other
     macros.

 * Portability improvements:

   - Tar format can be chosen with the new options tar-v7, tar-ustar, and
     tar-pax.  The new option filename-length-max=99 helps diagnosing
     filenames that are too long for tar-v7.  (PR/414)

   - Variables aumented with `+=' are now automatically flattened (i.e.,
     trailing backslashes removed) and then wrapped around 80 colummns
     (adding trailing backslashes).  In previous versions, a long series
     of
       VAR += value1
       VAR += value2
       VAR += value3
       ...
     would result in a single-line definition of VAR that could possibly
     exceed the maximum line length of some make implementations.

     Non-augmented variables are still output as they are defined in
     the Makefile.am.

 * Miscellaneous:

   - Support Fortran 90/95 with the new "fc" and "ppfc" languages.
     Works the same as the old Fortran 77 implementation; just replace
     F77 with FC everywhere (exception: FFLAGS becomes FCFLAGS).
     Requires a version of autoconf which provides AC_PROG_FC (>=2.59).

   - Support for conditional _LISP.

   - Support for conditional -hook and -local rules (PR/428).

   - Diagnose AC_CONFIG_AUX_DIR calls following AM_INIT_AUTOMAKE. (PR/49)

   - Automake will not write any Makefile.ins after the first error it
     encounters.  The previous Makefile.ins (if any) will be left in
     place.  (Warnings will not prevent output, but remember they can
     be turned into errors with -Werror.)

   - The restriction that SUBDIRS must contain direct children is gone.
     Do not abuse.

   - The manual tells more about SUBDIRS vs. DIST_SUBDIRS.
     It also gives an example of nested packages using AC_CONFIG_SUBDIRS.


 To generate a diff of this commit:
 cvs rdiff -r1.54 -r1.55 pkgsrc/devel/automake/Makefile
 cvs rdiff -r1.9 -r1.10 pkgsrc/devel/automake/PLIST
 cvs rdiff -r1.19 -r1.20 pkgsrc/devel/automake/distinfo

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.