Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 2013 10:21:20 -0400 (EDT)
From:      gtodd@bellanet.org
To:        trhodes@freebsd.org
Cc:        ports@freebsd.org
Subject:   sysutils/fsc (fbsd service monitor) broken build w/ clang-devel-3.4.r181598_3
Message-ID:  <alpine.BSF.2.00.1305281021120.44621@ninga.iciti.internal>

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

Hi and thanks for your work on fsc service monitoring tool.

I have been using it for a while but haven't tried to rebuild it very 
often until today.  It may have worked with earlier versions of clang.

PR filed. Here is the error message.

Warning: Object directory not changed from original 
/usr/ports/sysutils/fsc/work/fsc/fscd
clang -O2 -pipe -fno-strict-aliasing  -std=c99 -std=gnu99 
-Qunused-arguments -fstack-protector -Wsystem-headers -Werror -Wall 
-Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual 
-Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align 
-Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls 
-Wold-style-definition -Wno-pointer-sign -c fscd.c
fscd.c:977:13: error: variable 'sendstr' is used uninitialized whenever 
'if' condition is false
       [-Werror,-Wsometimes-uninitialized]
         } else if (strcmp(arglst[0], "status") == 0) {
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fscd.c:984:16: note: uninitialized use occurs here
         send(sock_fd, sendstr, strlen(sendstr), 0);
                       ^~~~~~~
fscd.c:977:9: note: remove the 'if' if its condition is always true
         } else if (strcmp(arglst[0], "status") == 0) {
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fscd.c:934:15: note: initialize the variable 'sendstr' to silence this 
warning
         char *sendstr;
                      ^
                       = NULL
1 error generated.
*** [fscd.o] Error code 1

Stop in /usr/ports/sysutils/fsc/work/fsc/fscd.
*** [all] Error code 1

Stop in /usr/ports/sysutils/fsc/work/fsc.
*** [do-build] Error code 1

Stop in /usr/ports/sysutils/fsc.

:w




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