Subject: pkg/20226: pwlib's include files include themselves - buildlink2 ?
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jschauma@netmeister.org>
List: netbsd-bugs
Date: 02/06/2003 16:25:51
>Number:         20226
>Category:       pkg
>Synopsis:       pwlib's include files include themselves - buildlink2 ?
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 06 13:26:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Jan Schaumann
>Release:        NetBSD 1.6
>Organization:
	
>Environment:
	
	
System: NetBSD st-paulie.cs.stevens-tech.edu 1.6 NetBSD 1.6 (BOCK) #15: Tue Nov 12 15:35:50 EST 2002 jschauma@amstel.cs.stevens-tech.edu:/usr/src/sys/arch/i386/compile/BOCK i386
Architecture: i386
Machine: i386
>Description:
	When including ../../devel/pwlib/buildlink2.mk in a Makefile of another
	package and attempting to compile, I get a lot of errors:

/usr/pkgobj/net/gnomemeeting/work.i386/.buildlink/include/ptlib/semaphor.h:121: macro or `#include' recursion too deep

	Looking at the files (the above is one of the examples), I notice that
	they all include 'themselves':

// Include platform dependent part of class
#include <ptlib/semaphor.h>

	I assume, this is ment to include /usr/pkg/include/ptlib/unix/ptlib/semaphor.h,
	but only includes itself.

	I assume some buildlink2 magic may be able to fix this.
>How-To-Repeat:
	Create a package that uses ../../devel/pwlib/buildlink2.mk and requires
	ptlib, including one of pwlib's files.  Currently, the only package using
	pwlib seesm to be openh323, which works fine - I observed the problem
	when building a new package for gnomemeeting.
>Fix:
	*shrug*
	Set include directories correctly using buildlink2?
>Release-Note:
>Audit-Trail:
>Unformatted: