From owner-freebsd-ports@freebsd.org Sat Sep 23 21:59:55 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 52DB6E10490 for ; Sat, 23 Sep 2017 21:59:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) 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 379EFDFB for ; Sat, 23 Sep 2017 21:59:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 36DAEE1048F; Sat, 23 Sep 2017 21:59:55 +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 36647E1048E for ; Sat, 23 Sep 2017 21:59:55 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D8F48DFA; Sat, 23 Sep 2017 21:59:51 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [10.194.10.54] (unknown [185.93.6.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1F7CB452A8; Sat, 23 Sep 2017 23:59:47 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_95B432BA-BE3E-405A-BEBD-01E170B445E4"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: compler warnings in ports not supported in gcc 4.2.1 (stable/10) Date: Sat, 23 Sep 2017 23:58:45 +0200 In-Reply-To: <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org> Cc: "ports@FreeBSD.org" , Steve Wills To: Julian Elischer References: <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org> X-Mailer: Apple Mail (2.3273) 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: Sat, 23 Sep 2017 21:59:55 -0000 --Apple-Mail=_95B432BA-BE3E-405A-BEBD-01E170B445E4 Content-Type: multipart/mixed; boundary="Apple-Mail=_0869136C-8086-4DA3-8792-1E40D391F5C4" --Apple-Mail=_0869136C-8086-4DA3-8792-1E40D391F5C4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 23 Sep 2017, at 23:42, Julian Elischer wrote: >=20 > Trying to compile the emulators/open-vm-tools-nox11 port >=20 > but I end up dying with: >=20 > libtool: compile: cc -DPACKAGE_NAME=3D\"open-vm-tools\" = -DPACKAGE_TARNAME=3D\"open-vm-tools\" -DPACKAGE_VERSION=3D\"10.1.5\" = "-DPACKAGE_STRING=3D\"open-vm-tools 10.1.5\"" = -DPACKAGE_BUGREPORT=3D\"open-vm-tools-devel@lists.sourceforge.net\" = -DPACKAGE_URL=3D\"\" -DPACKAGE=3D\"open-vm-tools\" -DVERSION=3D\"10.1.5\" = -DSTDC_HEADERS=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=3D1 = -DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 = -DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 = -DHAVE_UNISTD_H=3D1 -DHAVE_DLFCN_H=3D1 -DLT_OBJDIR=3D\".libs/\" = -DX_DISPLAY_MISSING=3D1 -DHAVE_DLOPEN=3D1 -DNO_PROCPS=3D1 -DNO_DNET=3D1 = -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -DHAVE_STDLIB_H=3D1 = -DHAVE_WCHAR_H=3D1 -DHAVE_SYS_PARAM_H=3D1 -DHAVE_SYS_TYPES_H=3D1 = -DHAVE_SYS_USER_H=3D1 -DHAVE__BOOL=3D1 -DHAVE_STDBOOL_H=3D1 = -DHAVE_STRUCT_STAT_ST_RDEV=3D1 -DTIME_WITH_SYS_TIME=3D1 -DNO_XSM=3D1 = -DNO_XCOMPOSITE=3D1 -DNO_MULTIMON=3D1 -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=3D1 -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 >=20 >=20 > the system in question is compiled with gcc >=20 >=20 > is there a supported way of making the port not set those flags on = each cc1 command? This appears to have been broken by r444773. Try replacing emulators/open-vm-tools/files/patch-configure.ac with the attached file. -Dimitry --Apple-Mail=_0869136C-8086-4DA3-8792-1E40D391F5C4 Content-Disposition: attachment; filename=patch-configure.ac Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-configure.ac" Content-Transfer-Encoding: 7bit --- configure.ac.orig 2017-07-28 21:59:15 UTC +++ configure.ac @@ -1082,7 +1082,7 @@ AC_CHECK_HEADERS([sys/user.h], ]) AC_CHECK_HEADERS([sys/vfs.h]) AC_CHECK_HEADERS([syslimits.h]) -AC_CHECK_HEADERS([unwind.h]) +#AC_CHECK_HEADERS([unwind.h]) AC_CHECK_HEADER( [wchar.h], @@ -1145,7 +1145,8 @@ CFLAGS="$CFLAGS -Werror" # warnings for now (-Wno-deprecated-declarations). for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \ -Wno-unknown-pragmas -Wno-uninitialized -Wno-deprecated-declarations \ - -Wno-unused-const-variable; do + -Wno-unused-const-variable -Wno-unused-function \ + -Wno-address-of-packed-member -Wno-unknown-warning-option; do AC_MSG_CHECKING([for GCC flag $TEST_CFLAG]) ORIGINAL_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS $TEST_CFLAG" --Apple-Mail=_0869136C-8086-4DA3-8792-1E40D391F5C4-- --Apple-Mail=_95B432BA-BE3E-405A-BEBD-01E170B445E4 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWcbZFQAKCRCwXqMKLiCW o+krAKDxtZDPgOMdQrhH4yT263baAdcKoACfV1Wf95DqJnE+NXvTSTuRV4ZdXrE= =+Lkr -----END PGP SIGNATURE----- --Apple-Mail=_95B432BA-BE3E-405A-BEBD-01E170B445E4--