Matthias Drochner writes:
> 
> joerg%britannica.bec.de@localhost said:
> > This is simply a broken test case.
> 
> Yes, maybe, but there are likely many more in pkgsrc
> which go unnoticed because it just works in the
> common cases.
> 
> I'd really prefer to understand what causes Greg's problem
> before drawing any conclusions.
> 
> oster%cs.usask.ca@localhost said:
> > My compiler is: 
> > [...]
> 
> So can you try to compile some little test program which
> throws a warning with -Werror and see whether it gets
> the hard error?
# cat foo.c
int foo()
{
        some_function("hello\n");
}
# gcc -Wall -Werror -c foo.c
cc1: warnings being treated as errors
foo.c: In function 'foo':
foo.c:4: warning: implicit declaration of function 'some_function'
foo.c:5: warning: control reaches end of non-void function
# echo $?
1
# 
 
And testing with the program used by ./configure, I get:
# gcc -Wall -Werror -I/usr/pkg/include/python2.5/ -c test.c
cc1: warnings being treated as errors
test.c: In function 'main':
test.c:5: warning: implicit declaration of function 'PySignal_SetWakeupFd'
# echo $?
1
# 
So I'm really confused as to why this isn't working... 
> I don't assume that the compiler as
> such is broken but we should rule it out first.
> I'd rather suspect something in the buildlink wrappers.
> What's in mk.conf? 
See attached.
>  Where does the "-pipe" come from?
It's from mk.conf... and I've had those lines in there for eons...
> Is there anything helpful in ${WRKDIR}/.work.log or
> the other wrapper and log files around there?
work.log enclosed...
> oster%cs.usask.ca@localhost said:
> > The enclosed change gets py-gobject building
> 
> I'm afraid the check does always fail now because
> it doesn't have a library to link against.
> We can have the same effect easier, eg with a
> CONFIGURE_ENV setting... (That's not necessarily
> bad because we don't have a Python version in
> the tree for which the check would succeed.)
As I said before, I'm not sure what the correct solution is here... 
Later...
Greg Oster
Attachment:
work.log.gz
Description: work.log.gz
# For the cmpt330 build. #EXPORTABLE_SYSTEM=1 #BSDSRCDIR = /quantum/current/19981205/src #BSDOBJDIR = /usr/obj #DESTDIR = /current/dest .ifndef ONLY_ONE_PIPE CFLAGS += -pipe ONLY_ONE_PIPE=1 .endif #UPDATE=1 #BSDSRCDIR=/u2/i386/usr/src #DESTDIR=/u2/i386/install #RELEASEDIR=/u2/i386/release ACCEPTABLE_LICENSES=fee-based-commercial-use ACCEPTABLE_LICENSES+=no-commercial-use ACCEPTABLE_LICENSES+=shareware ACCEPTABLE_LICENSES+=jdk13-license USE_RSAREF2=NO ACCEPTABLE_LICENSES+=palmos-sdk-license ACCEPTABLE_LICENSES+=jdk-license ACCEPTABLE_LICENSES+=pine-license ACCEPTABLE_LICENSES+=majordomo-license X11_TYPE=modular #USE_XF86_4=1 #CFLAGS+=-g #USETOOLS=NO PAPERSIZE=Letter ACCEPTABLE_LICENSES+=adobe-acrobat-license EMACS_USE_X=1 ACCEPTABLE_LICENSES+=povray-license # X11SRCDIR=/path/to/xsrc # Defaults to "/usr/xsrc" # MKX11=yes ACCEPTABLE_LICENSES+=no-profit MPLAYER_ENABLE_RUNTIME_CPU_DETECTION = NO ACCEPTABLE_LICENSES+=kermit-license USE_XPKGWEDGE=YES ACCEPTABLE_LICENSES+=unrar-license OBJHOSTNAME=gonzo PKGSRC_LOCKTYPE=sleep ACCEPTABLE_LICENSES+=ms-ttf-license UPDATE_TARGET=package ACCEPTABLE_LICENSES+=lame-license #PKG_OPTIONS.php=ssl #PKG_DEBUG_LEVEL=2 ACCEPTABLE_LICENSES+=xv-license ALLOW_VULNERABLE_PACKAGES=yes ACCEPTABLE_LICENSES+=opera-license PKG_OPTIONS.mplayer=-mplayer-runtime-cpudetection PKG_OPTIONS.gld=pgsql PKG_OPTIONS.kdebase+=pam PKG_APACHE_DEFAULT=apache13 ACCEPTABLE_LICENSES+=openmotif-license ACCEPTABLE_LICENSES+=mplayer-codec-license BUILDLINK_TRANSFORM+= rm:-Werror ACCEPTABLE_LICENSES+=flash-license ACCEPTABLE_LICENSES+=tin-license ACCEPTABLE_LICENSES+=generic-nonlicense ACCEPTABLE_LICENSES+=mpg123-license PKG_OPTIONS.emacs+=x11 PKG_OPTIONS.sysbench=mysql PKG_OPTIONS.MesaLib+=dri ACCEPTABLE_LICENSES+=generic-nonlicense PKG_OPTIONS.openoffice3+=firefox3