Subject: pth build error under -current
To: None <current-users@netbsd.org>
From: Rui-Xiang Guo <rxg@myrealbox.com>
List: tech-pkg
Date: 02/23/2005 13:10:58
Hi, all.
The error message as below -
===> Checking for vulnerabilities in pth-2.0.0nb2
===> Building for pth-2.0.0nb2
../libtool --mode=compile --quiet cc -c -DFD_SETSIZE=1024 -I. -O2 -pipe pth_lib.c
pth_lib.c: In function `pth__init':
pth_lib.c:90: error: `pth_scheduler' undeclared (first use in this function)
pth_lib.c:90: error: (Each undeclared identifier is reported only once
pth_lib.c:90: error: for each function it appears in.)
pth_lib.c: In function `pth_spawn':
pth_lib.c:332: error: `pth_scheduler' undeclared (first use in this function)
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/devel/pth/work/pth-2.0.0
*** Error code 1

Then I took a look inside, I found 'pth_scheduler' appeared in pth_sched.c but
not be generated in pth_p.h. I think the error occured from this line
in Makefile -

pth_p.h: $(S)pth_p.h.in
        $(SHTOOL) scpp -o pth_p.h -t $(S)pth_p.h.in -Dcpp -Cintern -M '==#==' $(
HSRCS

Any idea to fix it?