Subject: pkg/20226: pwlib's include files include themselves - buildlink2 ?
To: None <email@example.com>
From: None <firstname.lastname@example.org>
Date: 02/06/2003 16:25:51
>Synopsis: pwlib's include files include themselves - buildlink2 ?
>Arrival-Date: Thu Feb 06 13:26:00 PST 2003
>Originator: Jan Schaumann
>Release: NetBSD 1.6
System: NetBSD st-paulie.cs.stevens-tech.edu 1.6 NetBSD 1.6 (BOCK) #15: Tue Nov 12 15:35:50 EST 2002 email@example.com:/usr/src/sys/arch/i386/compile/BOCK i386
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
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/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.
Set include directories correctly using buildlink2?