misc/180920: open-vm-tools-nox11 does not compile because of unsigned signed compares
Thomas Schweikle
tps at vr-web.de
Mon Jul 29 07:20:01 UTC 2013
>Number: 180920
>Category: misc
>Synopsis: open-vm-tools-nox11 does not compile because of unsigned signed compares
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Jul 29 07:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Thomas Schweikle
>Release: FreeBSD 10.0-CURRENT
>Organization:
n.a.
>Environment:
FreeBSD test-tps-fbsdc-muc.bfs.de 10.0-CURRENT FreeBSD 10.0-CURRENT #10: Fri Jul 26 18:22:07 CEST 2013 root at test-tps-fbsdc-muc.bfs.de:/usr/obj/usr/src/sys/TEST-TPS-FBSDC-MUC amd64
>Description:
hgfsServer.c:3560:19: error: comparison of unsigned expression < 0 is always false [-Werror,-Wtautological-compare]
if (pathLength < 0 || pathLength >= sizeof p.mountPoint) {
~~~~~~~~~~ ^ ~
hgfsServer.c:4559:30: error: comparison of constant 255 with expression of type 'HgfsOp' is always false
[-Werror,-Wtautological-constant-out-of-range-compare]
if (HGFS_V4_LEGACY_OPCODE == request->op) {
~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~
2 errors generated.
*** Error code 1
Stop.
make: stopped in /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib/hgfsServer
*** Error code 1
Stop.
make: stopped in /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib
*** Error code 1
Stop.
make: stopped in /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873
*** Error code 1
Stop.
make: stopped in /usr/ports/emulators/open-vm-tools-nox11
>How-To-Repeat:
On all active FreeBSD versions (8,9, CURRENT): go to /usr/ports/emulators/open-vm-tools-nox11, then execute "make clean build". Build step will fail due to the above compiler error.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list