DragonFly BSD
DragonFly users List (threaded) for 2009-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

tcsh-6 compilation error with gcc44 (buildworld)


From: Saifi Khan <saifi.khan@xxxxxxxxxxxxxxx>
Date: Sat, 7 Nov 2009 21:49:50 +0530 (IST)

Hi:

On a AMD64X2 system running DragonFly v2.5.1.187.gc1543-DEV

i'm trying to 'buildworld' with 'gcc44' as

# CCVER=gcc44 make buildworld

. ..
. ..
===> bin/csh
grep '[FV]_' /usr/src/bin/csh/../../contrib/tcsh-6/ed.defns.c | grep '^#define' >> ed.defns.h
grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh-6/sh.err.c | grep '^#define' >> sh.err.h
cc -E -O -pipe  -I. -I/usr/src/bin/csh -I/usr/src/bin/csh/../../contrib/tcsh-6 -D_PATH_TCSHELL='"/bin/csh"'   -Wsystem-headers -Werror -Wall -Wno-uninitialized /usr/src/bin/csh/../../contrib/tcsh-6/tc.const.c /usr/src/bin/csh/../../contrib/tcsh-6/sh.char.h /usr/src/bin/csh/config.h /usr/src/bin/csh/../../contrib/tcsh-6/config_f.h /usr/src/bin/csh/../../contrib/tcsh-6/sh.types.h sh.err.h -D_h_tc_const | grep 'Char STR' |  sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' |  sort >> tc.c
onst.h
CCVER=gcc44 BINUTILSVER=binutils217 OBJFORMAT_PATH=/ PATH=/usr/bin:/bin:/usr/sbin:/sbin cc  -O -pipe -I. -I/usr/src/bin/csh -I/usr/src/bin/csh/../../contrib/tcsh-6 -D_PATH_TCSHELL='"/bin/csh"' -Wsystem-headers -Werror -Wall -Wno-uninitialized -static  -static /usr/src/bin/csh/../../contrib/tcsh-6/gethost.c   -o gethost.nx
cc1: warnings being treated as errors
/usr/src/bin/csh/../../contrib/tcsh-6/gethost.c: In function 'main':
/usr/src/bin/csh/../../contrib/tcsh-6/gethost.c:234: error: the address of 'defs' will always evaluate as 'true'
*** Error code 1

Stop in /usr/src/bin/csh.
*** Error code 1

Stop in /usr/src/bin.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

--
In the code as can be see here,
http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/contrib/tcsh-6/gethost.c

. ..
 char defs[INBUFSIZE];
. ..
. ..

 case T_NONE:
    if (state != S_CODE && defs && *defs != '\0') {
    ...
    }
. ..

The expression seems fine to me. 
Any workaround for this ?


thanks
Saifi.




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]