From nobody  Tue Aug 11 08:17:47 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id IAA17113;
          Tue, 11 Aug 1998 08:17:47 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199808111517.IAA17113@hub.freebsd.org>
Date: Tue, 11 Aug 1998 08:17:47 -0700 (PDT)
From: moro@remus.dti.ne.jp
To: freebsd-gnats-submit@freebsd.org
Subject: flex has inconsistency in the location of FlexLexer.h.
X-Send-Pr-Version: www-1.0

>Number:         7575
>Category:       bin
>Synopsis:       flex has inconsistency in the location of FlexLexer.h.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 11 08:20:00 PDT 1998
>Closed-Date:    Thu Aug 13 23:35:44 PDT 1998
>Last-Modified:  Wed Sep 30 13:40:01 PDT 1998
>Originator:     MOROHOSHI Akihiko
>Release:        2.2-stable, but current has the same problem.
>Organization:
>Environment:
FreeBSD coco.moro.arakawa.tokyo.jp 2.2.7-STABLE FreeBSD 2.2.7-STABLE #0: Mon Jul 27 09:34:09 JST 1998     moro@coco.moro.arakawa.tokyo.jp:/data/stable/src/sys/compile/COCO  i386
>Description:
/usr/src/usr.bin/lex/Makefile puts FlexLexer.h into /usr/include/g++, but flex still generates "#include <FlexLexer.h".
As a result, C++ sources flex generates failed to be compiled.

>How-To-Repeat:
cd /usr/src/usr.bin/lex
grep FlexLexer.h *

>Fix:
replace all <FlexLexer.h> with <g++/FlexLexer.h> in /usr/src/usr.bin/lex/* (or revert the location of FlexLexer.h to /usr/include.)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: phk 
State-Changed-When: Thu Aug 13 23:35:44 PDT 1998 
State-Changed-Why:  
committed, thanks  

From: Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
To: moro@remus.dti.ne.jp
Cc: freebsd-gnats-submit@FreeBSD.ORG, phk@FreeBSD.ORG
Subject: Re: bin/7575: flex has inconsistency in the location of FlexLexer.h. 
Date: Thu, 01 Oct 1998 00:31:33 +0400

 > /usr/src/usr.bin/lex/Makefile puts FlexLexer.h into /usr/include/g++, but 
 > flex still generates "#include <FlexLexer.h>".
 > As a result, C++ sources flex generates failed to be compiled.
 
 Why /usr/include/g++ exists in the first place? To make it hard for C programs 
 to include C++ headers. A C++ compiler should have /usr/include/g++ in its 
 standard search path. Our standard C++ compiler do. So, this is pilot error ;-)
 
 > >Fix:
 > replace all <FlexLexer.h> with <g++/FlexLexer.h> in /usr/src/usr.bin/lex/* 
 
 This is very bogus for other reasons too, and I may explain them if somebody 
 want. So, I plan to back out these changes. Does someone object?
 
 > (or revert the location of FlexLexer.h to /usr/include.)
 
 (This might be a good idea though, but I don't think so now.)
 
 Dima
 
 
>Unformatted:
