bug-groff
[Top][All Lists]
Advanced

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

Current CVS: problem with setenv


From: Andrej Borsenkow
Subject: Current CVS: problem with setenv
Date: Tue, 10 Oct 2000 11:17:54 +0400

gmake[2]: Entering directory `/u3/u1/build/groff/src/devices/grops'
CC -I. -I/u3/u1/src/groff/src/devices/grops -I/u3/u1/build/groff/src/include -
I/u3/u1/src/groff/src/include -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DIREN
T_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_DIR_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=
1 -DHAVE_MATH_H=1 -DRET_TYPE_SRAND_IS_VOID=1 -DNEED_DECLARATION_STRNCASECMP=1 
-DHAVE_CC_LIMITS_H=1 -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1 -DHAVE_UNISTD
_H=1 -DHAVE_MMAP=1 -DHAVE_FMOD=1 -DHAVE_STRTOL=1 -DHAVE_GETCWD=1 -DHAVE_STRERR
OR=1 -DHAVE_PUTENV=1 -DHAVE_RENAME=1 -DHAVE_STRCASECMP=1 -DHAVE_STRNCASECMP=1 
-DHAVE_STRDUP=1  -g  -c /u3/u1/src/groff/src/devices/grops/ps.cc
/u3/u1/src/groff/src/devices/grops/ps.cc   895: [warning]:   CFE1995 flow into
case label
    case 'c':
    ^

/u3/u1/src/groff/src/devices/grops/ps.cc   928: [warning]:   CFE1995 flow into
case label
    case 'e':
    ^

/u3/u1/src/groff/src/devices/grops/ps.cc   949: [warning]:   CFE1995 flow into
case label
    case 'p':
    ^

/u3/u1/src/groff/src/devices/grops/ps.cc  1506: [error]:   CFE1020 identifier
"setenv" is undefined
        setenv("GROPS_PROLOGUE", optarg, 1);
        ^

gmake[2]: *** [ps.o] Error 1
gmake[2]: Leaving directory `/u3/u1/build/groff/src/devices/grops'
gmake[1]: *** [src/devices/grops] Error 2
gmake[1]: Leaving directory `/u3/u1/build/groff'
gmake: *** [all] Error 2

I do not provide a fix because the correct fix is to check for both
setenv/putenv and there declaration. But semantic of setnev/putenv is very
different - setenv() copies it's argument, but putenv() does not (for this
reason I hate setenv - it is asking for memory leaks :-). So, it is not
possible to just replace one with another.

Our system lacks setenv, BTW.

-andrej

Have a nice DOS!
B >>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]