Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2013 07:32:11 GMT
From:      Thomas Schweikle <tps@vr-web.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/182901: emulators/open-vm-tools-nox11 doesn't compile because of an allways false comparison
Message-ID:  <201310110732.r9B7WBBe017294@oldred.freebsd.org>
Resent-Message-ID: <201310110740.r9B7e1WH028836@freefall.freebsd.org>

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

>Number:         182901
>Category:       ports
>Synopsis:       emulators/open-vm-tools-nox11 doesn't compile because of an allways false comparison
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 11 07:40:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Schweikle
>Release:        10.0-ALPHA5
>Organization:
>Environment:
FreeBSD test-tps-fbsdc-muc.bfs.de 10.0-ALPHA5 FreeBSD 10.0-ALPHA5 #15 r256194: Wed Oct  9 21:04:05 CEST 2013     root@test-tps-fbsdc-muc.bfs.de:/usr/obj/usr/src/sys/TEST-TPS-FBSDC-MUC  amd64
>Description:
:/usr/ports/emulators/open-vm-tools-nox11 # make clean build deinstall install clean
[...]
SPLAY_MISSING=1 -DHAVE_DLOPEN=1 -DNO_PROCPS=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_MULTIMON=1 -I. -I/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib/include -I/usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib/include -Wno-deprecated-declarations -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS -I/usr/local/include -D_REENTRANT -DU_HAVE_TIMEZONE=0 -I/usr/local/include -DUSE_ICU -DVMX86_TOOLS -DNO_CORE_ICU -DVMTOOLS_USE_GLIB -I/usr/local/include/glib-2.0 -I/usr/local/include -O2 -pipe -fno-strict-aliasing -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -MT hgfsServer.lo -MD -MP -MF .deps/hgfsServer.Tpo -c hgfsServer.c  -fPIC -DPIC -o .libs/hgfsServer.o
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[3]: stopped in /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib/hgfsServer
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/emulators/open-vm-tools-nox11/work/open-vm-tools-8.6.0-425873/lib
*** Error code 1

Stop.
make[1]: 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
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20131011-79684-1eurhyu env UPGRADE_TOOL=portupgrade UPGRADE_PORT=open-vm-tools-nox11-425873_3,1 UPGRADE_PORT_VER=425873_3,1 make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! emulators/open-vm-tools-nox11 (open-vm-tools-nox11-425873_3,1)        (unknown build error)
:/usr/ports/emulators/open-vm-tools-nox11 #

This problem is seen on:
- FreeBSD 10-ALPHA
- FreeBSD 9-STABLE
- FreeBSD 8-STABLE
>How-To-Repeat:
cd /usr/ports/emulators/open-vm-tools-nox11
make clean configure build

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310110732.r9B7WBBe017294>