Subject: Re: pwlib doesn't build
To: None <tech-pkg@netbsd.org>
From: Berndt Josef Wulf <wulf@ping.net.au>
List: tech-pkg
Date: 09/01/2007 17:52:49
On Saturday 01 September 2007 14:47:35 Berndt Josef Wulf wrote:
> G'day,
>
> pkgsrc/devel/pwlib fails to build due to gcc4 complaining about missing
> type definition in header file, see below:
>
>
> c++ -D_REENTRANT -fno-exceptions -Wall
> -I/usr/pkgsrc/devel/pwlib/work/pwlib/include -Os -O2 -felide-constructors
> -x c++ -c ../../ptclib/asner.cxx  -fPIC -DPIC -o
> /usr/pkgsrc/devel/pwlib/work/pwlib/lib/obj_NetBSD_x86_r/.libs/asner.o
> /usr/pkgsrc/devel/pwlib/work/pwlib/include/ptlib/timer.h:363: error: ISO
> C++ forbids declaration of 'PTimerList' with no type
> /usr/pkgsrc/devel/pwlib/work/pwlib/include/ptlib/timer.h:363: error:
> expected ';' before '*' token
>
> This problem is highlighted in PR#35040 (12-Nov-2006) and PR#35988
> (12-Mar-2007). Although PR#35988 was assigned to solaris-pkg-people, this
> is a general problem thanks to gcc4.x and not platform related.
>
> Any thoughts on how to fix this?
>
> Perhaps upgrading it to a later version would help? Current release is
> 1.11.1
>
> cheerio Berndt


G'day,

I bit the bullett and tried myself and updated pwlib locally. The resulting 
pkgsrc file can be downloaded from here:

ftp://ftp.netbsd.org/pub/NetBSD/misc/wulf/pwlib-1.11.1-pkgsrc.tar.gz

The package built fine but I have yet to start test it against packages that I 
hoped to port to NetBSD. Anyone out there using applications linked against 
pwlib?

Please test and report back any problems discovered, perhaps including the 
fixes. Better, submit if happy.... :-)

cheerio Berndt