From owner-freebsd-ports@freebsd.org Sun Sep 24 01:02:03 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C806AE16443 for ; Sun, 24 Sep 2017 01:02:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9FCFA646B9 for ; Sun, 24 Sep 2017 01:02:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 9F1A1E16442; Sun, 24 Sep 2017 01:02:03 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9EBD2E1643F for ; Sun, 24 Sep 2017 01:02:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pf0-x22f.google.com (mail-pf0-x22f.google.com [IPv6:2607:f8b0:400e:c00::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A31D646B8; Sun, 24 Sep 2017 01:02:03 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by mail-pf0-x22f.google.com with SMTP id r71so2174605pfe.12; Sat, 23 Sep 2017 18:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:reply-to:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=B5N9j8a1sg/1EJeW3VQlLHARqqC3U2LJfem938/KWeY=; b=j6wLzuIlg7hHbXLIEB9R8vZeH1IXmxpz290FpVcI6BrJuty+MkWkrTMb0kf2xjKvqn hx5DOrIKuOI0VxgOtwJLCErXULO8TC68nta2YCrmxkcIQjWguHfJz62GfJ+tzD0vgs4X tPDi5v7QOwmNBVmowfi1roMoCJYMtbPP1O05hh9RvJMdT0+l7ym/0w9FR+BBMb5CMVFo l1XEzvD+MbB/XHNEQOWeWskMq0SHk0eR1TjrZQQzWndc6rlwETCMQ7RKFSlBjbMvWM+Z LsB8dvr4dnkiIjVbOo447nQ1bqd/8Iemd8CA5gW7Pd4Dje6Dpi0sqBz++3F+t3hwtJer BJ5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:reply-to:subject:to:references:from :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=B5N9j8a1sg/1EJeW3VQlLHARqqC3U2LJfem938/KWeY=; b=hszHAIYeqF1tiL/fmHsjs1lUnShDqvUutUgCkkxV/HsT+Nt4qIVg9sAcYWJ5AI874D BFF0z+R/1qeoEjfR736ViyPSamsXn64r9wZcRn2twlr702KdLKdANg6KX65iAMvNdvB0 aY63F7S8pJ7XtYCIR2I97KBWxuXD8o/EyEZLOBwsNy+oTZTEdF8wwvdzedAjqjh5K0dz 1wICpS4NJ+MOVGRXh5dk85fAFaf2hjxi7sFwDuTC1MF4W3uCeD4txVTXYflJmXtlFrwy 7bfKvoBTwoJz1JwTvkhnXYqqkIC4Bs0V03he3fBPDJNeA5sy+yr0116Vh7L/zULI/uq7 9k/A== X-Gm-Message-State: AHPjjUinradj0LAQljkcN25sLPd7fEfmX0Jem5zr41CMZhENqlVvlqTE ZWWJCOiwrQb0RKDKqOODjbq/uWxE X-Google-Smtp-Source: AOwi7QC55NxGx91S3usO4gXp/65etZcnjiKwy8B3yKHW0x9RdwTVr1Q2kdUJ8YrqosLNvX/ukXkK/Q== X-Received: by 10.101.66.205 with SMTP id l13mr3421032pgp.278.1506214922190; Sat, 23 Sep 2017 18:02:02 -0700 (PDT) Received: from ?IPv6:2001:44b8:31ae:7b01:9442:79f1:c7c:81a3? (2001-44b8-31ae-7b01-9442-79f1-0c7c-81a3.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01:9442:79f1:c7c:81a3]) by smtp.gmail.com with ESMTPSA id n2sm5604001pgq.30.2017.09.23.18.02.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Sep 2017 18:02:01 -0700 (PDT) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: compler warnings in ports not supported in gcc 4.2.1 (stable/10) To: Julian Elischer , "ports@FreeBSD.org" References: <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org> From: Kubilay Kocak Message-ID: Date: Sun, 24 Sep 2017 10:55:48 +1000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Thunderbird/54.0a2 MIME-Version: 1.0 In-Reply-To: <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-AU Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Sep 2017 01:02:03 -0000 On 9/24/17 7:42 AM, Julian Elischer wrote: > Trying to compile the emulators/open-vm-tools-nox11 port > > but I end up dying with: > > libtool: compile: cc -DPACKAGE_NAME=\"open-vm-tools\" > -DPACKAGE_TARNAME=\"open-vm-tools\" -DPACKAGE_VERSION=\"10.1.5\" > "-DPACKAGE_STRING=\"open-vm-tools 10.1.5\"" > -DPACKAGE_BUGREPORT=\"open-vm-tools-devel@lists.sourceforge.net\" > -DPACKAGE_URL=\"\" -DPACKAGE=\"open-vm-tools\" -DVERSION=\"10.1.5\" > -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 > -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 > -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 > -DLT_OBJDIR=\".libs/\" -DX_DISPLAY_MISSING=1 -DHAVE_DLOPEN=1 > -DNO_PROCPS=1 -DNO_DNET=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 > -DHAVE_STDLIB_H=1 -DHAVE_WCHAR_H=1 -DHAVE_SYS_PARAM_H=1 > -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_USER_H=1 -DHAVE__BOOL=1 > -DHAVE_STDBOOL_H=1 -DHAVE_STRUCT_STAT_ST_RDEV=1 -DTIME_WITH_SYS_TIME=1 > -DNO_XSM=1 -DNO_XCOMPOSITE=1 -DNO_MULTIMON=1 -I. > -I/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-stable-10.1.5/open-vm-tools/lib/include > -I/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-stable-10.1.5/open-vm-tools/lib/include > -Wno-deprecated-declarations -isystem /usr/local/include > -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -DNO_ICU -DVMX86_TOOLS -O2 -pipe > -DPANZURA_DEV -DPZ_FBSD_10 -isystem /usr/local/include > -fno-strict-aliasing -Wall -Werror -Wno-unused-function > -Wno-address-of-packed-member -Wno-unknown-warning-option -Wno-unused > -MT nicinfo_xdr.lo -MD -MP -MF .deps/nicinfo_xdr.Tpo -c nicinfo_xdr.c > -fPIC -DPIC -o .libs/nicinfo_xdr.o > cc1: error: unrecognized command line option > "-Wno-address-of-packed-member" > cc1: error: unrecognized command line option "-Wno-unknown-warning-option" > *** [nicinfo_xdr.lo] Error code 1 > > > the system in question is compiled with gcc > > > is there a supported way of making the port not set those flags on each > cc1 command? The port (all ports) should patch out -Werror. Upstream should not include it (as a default flag) in distribution sources. In the mean time, one can always: CFLAGS=-Wno-error (user or port set, += if the latter)