Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Sep 2017 23:58:45 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Julian Elischer <julian@FreeBSD.ORG>
Cc:        "ports@FreeBSD.org" <ports@freebsd.org>, Steve Wills <swills@FreeBSD.org>
Subject:   Re: compler warnings in ports not supported in gcc 4.2.1 (stable/10)
Message-ID:  <B45E9CCB-4EB9-44EA-9D06-C61C27987891@FreeBSD.org>
In-Reply-To: <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org>
References:  <94cf6bd4-87ec-c405-7f5c-2347219aa928@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <julian@FreeBSD.ORG> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?B45E9CCB-4EB9-44EA-9D06-C61C27987891>