pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/51164: open-vm-tools wont compile on NetBSD 6.x: compiler cannot create executables
The following reply was made to PR pkg/51164; it has been noted by GNATS.
From: Thomas Klausner <wiz%NetBSD.org@localhost>
To: NetBSD bugtracking <gnats-bugs%NetBSD.org@localhost>
Cc:
Subject: Re: pkg/51164: open-vm-tools wont compile on NetBSD 6.x: compiler
cannot create executables
Date: Wed, 25 May 2016 17:06:21 +0200
The relevant part is
configure:3791: gcc -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include -I/usr/include -DUSING_AUTOCONF=1 -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib conftest.c
>&5
cc1: error: -Werror=unused-local-typedefs: No option -Wunused-local-typedefs
cc1: error: -Werror=unused-but-set-variable: No option -Wunused-but-set-variable
configure:3795: $? = 1
configure:3833: result: no
The pkgsrc Makefile contains:
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mclang)
_WRAP_EXTRA_ARGS.CC+= -Wno-error=unused-local-typedef
CWRAPPERS_APPEND.cc+= -Wno-error=unused-local-typedef
.elif !empty(PKGSRC_COMPILER:Mgcc)
_WRAP_EXTRA_ARGS.CC+= -Wno-error=unused-local-typedefs -Wno-error=unused-but-set-variable
CWRAPPERS_APPEND.cc+= -Wno-error=unused-local-typedefs -Wno-error=unused-but-set-variable
.endif
So these should be filtered out when you use gcc.
What compiler are you using?
Thomas
Home |
Main Index |
Thread Index |
Old Index