Subject: Re: CPPFLAGS not used in pkgtools/p5-pkgsrc-Dewey
To: None <reed@reedmedia.net>
From: Thomas Klausner <wiz@netbsd.org>
List: pkgsrc-users
Date: 07/27/2006 19:26:09
On Thu, Jul 27, 2006 at 10:55:59AM -0500, reed@reedmedia.net wrote:
> The pkgtools/p5-pkgsrc-Dewey/Makefile has:
> 
> 
> CPPFLAGS+=      -DHAVE_CTYPE_H -DHAVE_STDLIB_H -DHAVE_STRING_H
> 
> These don't seem to be used.
> 
> My system is NetBSD/i386 3.99.21.

AFAIR this is for the the files pulled in from pkg_install.

> size_t and NULL are not defined.

How can I see that?

Here's the output I get for NetBSD-i386-3.99.21:

=> Required installed package perl>=5.8.7: perl-5.8.8nb2 found
===> Overriding tools for p5-pkgsrc-Dewey-1.0nb1
===> Creating toolchain wrappers for p5-pkgsrc-Dewey-1.0nb1
===> Extracting for p5-pkgsrc-Dewey-1.0nb1
/bin/mkdir -p /usr/obj/pkgtools/p5-pkgsrc-Dewey/work.i386/p5-pkgsrc-Dewey-1.0
/bin/cp -r /disk/wd1a/archive/cvs/pkgsrc/pkgtools/p5-pkgsrc-Dewey/files/* /usr/obj/pkgtools/p5-pkgsrc-Dewey/work.i386/p5-pkgsrc-Dewey-1.0
for f in lib/dewey.c lib/dewey.h lib/defs.h; do  /bin/cp ../../pkgtools/pkg_install/files/$f /usr/obj/pkgtools/p5-pkgsrc-Dewey/work.i386/p5-pkgsrc-Dewey-1.0;  done
/bin/mv /usr/obj/pkgtools/p5-pkgsrc-Dewey/work.i386/p5-pkgsrc-Dewey-1.0/dewey.c /usr/obj/pkgtools/p5-pkgsrc-Dewey/work.i386/p5-pkgsrc-Dewey-1.0/lib_dewey.c
/usr/bin/touch /usr/obj/pkgtools/p5-pkgsrc-Dewey/work.i386/p5-pkgsrc-Dewey-1.0/nbcompat.h
===> Patching for p5-pkgsrc-Dewey-1.0nb1
===> Configuring for p5-pkgsrc-Dewey-1.0nb1
Checking if your kit is complete...
Looks good
Writing Makefile for pkgsrc::Dewey
===> Building for p5-pkgsrc-Dewey-1.0nb1
cp Dewey.pm blib/lib/pkgsrc/Dewey.pm
AutoSplitting blib/lib/pkgsrc/Dewey.pm (blib/lib/auto/pkgsrc/Dewey)
/usr/pkg/bin/perl /usr/pkg/lib/perl5/5.8.0/ExtUtils/xsubpp  -typemap /usr/pkg/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap  Dewey.xs > Dewey.xsc && mv Dewey.xsc Dewey.c
cc -c  -I.  -fno-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -I/usr/pkg/include -I/usr/include  -DHAVE_CTYPE_H -DHAVE_STDLIB_H -DHAVE_STRING_H  -I/usr/pkg/include -I/usr/include    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE"   Dewey.c
cc -c  -I.  -fno-strict-aliasing -pipe -Wdeclaration-after-statement -O2 -I/usr/pkg/include -I/usr/include  -DHAVE_CTYPE_H -DHAVE_STDLIB_H -DHAVE_STRING_H  -I/usr/pkg/include -I/usr/include    -DVERSION=\"1.0\"  -DXS_VERSION=\"1.0\" -DPIC -fPIC "-I/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE"   lib_dewey.c
Running Mkbootstrap for pkgsrc::Dewey ()
chmod 644 Dewey.bs
rm -f blib/arch/auto/pkgsrc/Dewey/Dewey.so
cc  -Wl,-R/usr/pkg/lib --whole-archive -shared Dewey.o  lib_dewey.o -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -o blib/arch/auto/pkgsrc/Dewey/Dewey.so            -L/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE -Wl,-R/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE -Wl,-R/usr/pkg/lib/perl5/5.8.0/i386-netbsd-thread-multi/CORE -lperl     
chmod 755 blib/arch/auto/pkgsrc/Dewey/Dewey.so
cp Dewey.bs blib/arch/auto/pkgsrc/Dewey/Dewey.bs
chmod 644 blib/arch/auto/pkgsrc/Dewey/Dewey.bs
Manifying blib/man3/pkgsrc::Dewey.3
=> Unwrapping files-to-be-installed.


Cheers,
 Thomas