Subject: Re: Re: "`popen' undeclared" on new pkgsrc ; Was: get "SIGWINCH undefined"
To: None <joel@carnat.net>
From: Jaromir Dolecek <jdolecek@NetBSD.org>
List: tech-pkg
Date: 10/23/2004 09:01:32
Joel CARNAT wrote:
[ Charset ISO-8859-15 unsupported, converting... ]
> On Fri, Oct 22 2004 - 07:30, Jaromir Dolecek wrote:
> > > any other clue/idea ?
> >
> > Does the package define _POSIX_C_SOURCE or _XOPEN_SOURCE?
> >
> > Jaromir
>
> yes, it looks like :
OK - convince it to use -D_XOPEN_SOURCE=2 and the prototype should
be visible then. Alternatively, convince it to drop -D_XOPEN_SOURCE,
it is not necessary on NetBSD and should be superfluous on Linux
due to _GNU_SOURCE.
Jaromir
> here's some entries found by "find ./ -type f -exec egrep -H "_POSIX_C_SOURCE|_XOPEN_SOURCE" {} \;" :
> .//work/rxvt-unicode-4.0/autoconf/configure.in:CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
> .//work/rxvt-unicode-4.0/autoconf/Make.common:CPPFLAGS = -D_GNU_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -DXTHREADS -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
> .//work/rxvt-unicode-4.0/configure:CPPFLAGS="-D_GNU_SOURCE -D_XOPEN_SOURCE"
> .//work/rxvt-unicode-4.0/W11/Makefile:CPPFLAGS = -D_GNU_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -DXTHREADS -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
> .//work/rxvt-unicode-4.0/doc/Makefile:CPPFLAGS = -D_GNU_SOURCE -D_XOPEN_SOURCE -I/usr/X11R6/include -DXTHREADS -I/usr/pkg/include -I/usr/X11R6/include -I/usr/X11R6/include/freetype2
> <snip>
> .//work/rxvt-unicode-4.0/config.log:configure:3334: g++ -E -D_GNU_SOURCE -D_XOPEN_SOURCE conftest.cc
> .//work/rxvt-unicode-4.0/config.log:configure:3372: g++ -E -D_GNU_SOURCE -D_XOPEN_SOURCE conftest.cc
> .//work/rxvt-unicode-4.0/config.log:configure:3441: g++ -E -D_GNU_SOURCE -D_XOPEN_SOURCE conftest.cc
> <snip>
> .//work/.work.log:[*] /usr/pkgsrc/x11/rxvt-unicode/work/.wrapper/bin/g++ -E -D_GNU_SOURCE -D_XOPEN_SOURCE conftest.cc
> .//work/.work.log: (arg-source) push: -D_XOPEN_SOURCE
> .//work/.work.log: (logic) pop: -D_XOPEN_SOURCE
> .//work/.work.log: (logic) to: -D_XOPEN_SOURCE
> .//work/.work.log: (logic) push: -D_XOPEN_SOURCE
> .//work/.work.log: (cmd-sink) pop: -D_XOPEN_SOURCE
> .//work/.work.log:<.> /usr/pkgsrc/x11/rxvt-unicode/work/.gcc/bin/g++ -E -D_GNU_SOURCE -D_XOPEN_SOURCE conftest.cc -I/usr/pkgsrc/x11/rxvt-unicode/work/.buildlink/include -L/usr/pkgsrc/x11/rxvt-unicode/work/.buildlink/lib
>
> I guess, there's something to tweak so ? :)
>
> TIA,
> Jo
>
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.NetBSD.cz/
-=- We should be mindful of the potential goal, but as the Buddhist -=-
-=- masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow. Do not let this distract you.'' -=-