Subject: pkg/20226: pwlib's include files include themselves - buildlink2 ?
To: None <>
From: None <>
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
>Originator:     Jan Schaumann
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (BOCK) #15: Tue Nov 12 15:35:50 EST 2002 i386
Architecture: i386
Machine: i386
	When including ../../devel/pwlib/ 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.
	Create a package that uses ../../devel/pwlib/ 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.
	Set include directories correctly using buildlink2?