[illumos-Advocates] RTI for bug 844: m4 should say something useful...

Gary Mills mills at cc.umanitoba.ca
Sun May 1 07:39:03 PDT 2011


On Sun, Apr 03, 2011 at 09:55:22PM -0700, Garrett D'Amore wrote:
> 
> When you're done, send me a link to your webrev (or the output from hg
> export), output from hg pbchk, and a mail_msg file from a nightly build
> *including lint*.

I'm attaching the `hg export' output.

> Once that's done, I'll integrate your change.

Here's outgoing:

    $ hg outgoing -v
    running ssh anonhg at hg.illumos.org "hg -R illumos-gate serve --stdio"
    remote: Not trusting file /export/illumos/hgrepos/illumos-gate/.hg/hgrc from untrusted user hg, group hg
    comparing with ssh://anonhg@hg.illumos.org/illumos-gate
    searching for changes
    
    changeset:   13317:42e0576fcccd
    tag:         tip
    user:        Gary Mills <mills at cc.umanitoba.ca>
    date:        Thu Apr 07 09:59:04 2011 -0500
    
    description:
    	844 m4 should say something useful about _why_ an include()d file can't be opened
    
    modified:
       usr/src/cmd/sgs/m4/common/m4.c
       usr/src/cmd/sgs/m4/common/m4.h
       usr/src/cmd/sgs/m4/common/m4macs.c
    
    remote: Not trusting file /export/illumos/hgrepos/illumos-gate/.hg/hgrc from untrusted user hg, group hg

And, `pbchk':

    $ hg pbchk
    remote: Warning: Permanently added the RSA host key for IP address '72.2.120.74' to the list of known hosts.
    remote: Not trusting file /export/illumos/hgrepos/illumos-gate/.hg/hgrc from untrusted user hg, group hg
    remote: Not trusting file /export/illumos/hgrepos/illumos-gate/.hg/hgrc from untrusted user hg, group hg
    CDDL block check:
    
    Copyright check:
    usr/src/cmd/sgs/m4/common/m4.c: 23: wrong copyright year 2010, should be 2011
    usr/src/cmd/sgs/m4/common/m4.h: 26: wrong copyright year 2010, should be 2011
    usr/src/cmd/sgs/m4/common/m4macs.c: 23: old Sun copyright
    usr/src/cmd/sgs/m4/common/m4macs.c: 24: old 'Use is subject to license terms.' message found
    
    C style check:
    
    Header format check:
    
    Java style check:
    
    Mapfile comment check:
    
    File permission check:
    
    Keywords check:
    
    ERROR: HTTP error at http://arc.opensolaris.org/cgi-bin/arc.cgi got error: 404
    abort: HTTP Error 404: Not Found

I didn't run `nightly' to build m4.  Here's what I did:

    $ bldenv ~/Downloads/code/illumos-gate/illumos.sh 'make'       
    Build type   is  non-DEBUG
    RELEASE      is 
    VERSION      is illumos-gate
    RELEASE_DATE is May 2011
    
    The top-level 'setup' target is available to build headers and tools.
    
    Using /bin/ksh as shell.
    /export/home/mills/Downloads/code/illumos-gate/usr/src/cmd/sgs/m4/i386
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -c -o m4objs/m4.o ../common/m4.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o /tmp/.cwCAAIVaavi.o ../common/m4.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o m4objs/m4.o ../common/m4.c 
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -c -o m4objs/m4ext.o ../common/m4ext.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o /tmp/.cwCAAI6aOwi.o ../common/m4ext.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o m4objs/m4ext.o ../common/m4ext.c 
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -c -o m4objs/m4macs.o ../common/m4macs.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o /tmp/.cwCAAU7aiyi.o ../common/m4macs.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o m4objs/m4macs.o ../common/m4macs.c 
    /usr/ccs/bin/yacc  ../common/m4y.y
    mv y.tab.c ../common/m4y.c
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -c -o m4objs/m4y.o ../common/m4y.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o /tmp/.cwCAAVcaOzi.o ../common/m4y.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -c -o m4objs/m4y.o ../common/m4y.c 
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -Bdirect     -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexstk -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata m4objs/m4.o  m4objs/m4ext.o  m4objs/m4macs.o m4objs/m4y.o -o m4 -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/lib -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/lib  
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -Bdirect -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexstk -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata m4objs/m4.o m4objs/m4ext.o m4objs/m4macs.o m4objs/m4y.o -o m4 -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/lib -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/lib 
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -DXPG4 -c -o m4objs.xpg4/m4.o ../common/m4.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o /tmp/.cwCAAdhaWBi.o ../common/m4.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o m4objs.xpg4/m4.o ../common/m4.c 
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -DXPG4 -c -o m4objs.xpg4/m4ext.o ../common/m4ext.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o /tmp/.cwCAA8raaDi.o ../common/m4ext.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o m4objs.xpg4/m4ext.o ../common/m4ext.c 
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -DXPG4 -c -o m4objs.xpg4/m4macs.o ../common/m4macs.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o /tmp/.cwCAA8saqEi.o ../common/m4macs.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o m4objs.xpg4/m4macs.o ../common/m4macs.c 
    /usr/ccs/bin/yacc  ../common/m4y_xpg4.y
    mv y.tab.c ../common/m4y_xpg4.c
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -DXPG4 -c -o m4objs.xpg4/m4y_xpg4.o ../common/m4y_xpg4.c
    + /usr/sfw/bin/gcc -fident -finline -fno-inline-functions -fno-builtin -fno-asm -nodefaultlibs -D__sun -O -Wall -Wno-unknown-pragmas -Wno-missing-braces -Wno-sign-compare -Wno-parentheses -Wno-uninitialized -Wno-implicit-function-declaration -Wno-unused -Wno-trigraphs -Wno-char-subscripts -Wno-switch -Werror -std=gnu99 -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o /tmp/.cwCAAPzaWFi.o ../common/m4y_xpg4.c 
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -DXPG4 -c -o m4objs.xpg4/m4y_xpg4.o ../common/m4y_xpg4.c 
    /opt/onbld/bin/i386/cw -_cc -O  -xspace -Xa  -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all    -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include    -Bdirect     -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexstk -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata m4objs.xpg4/m4.o  m4objs.xpg4/m4ext.o  m4objs.xpg4/m4macs.o m4objs.xpg4/m4y_xpg4.o -o m4.xpg4 -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/lib -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/lib  
    + /opt/SUNWspro/bin/cc -O -xspace -Xa -xildoff -errtags=yes -errwarn=%all -erroff=E_EMPTY_TRANSLATION_UNIT -erroff=E_STATEMENT_NOT_REACHED -xc99=%all -W0,-xglobalstatic -v -I../common -DELF -DTEXT_DOMAIN="SUNW_OST_OSCMD" -D_TS_ERRNO -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include -Bdirect -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexstk -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.pagealign -M/export/home/mills/Downloads/code/illumos-gate/usr/src/common/mapfiles/common/map.noexdata m4objs.xpg4/m4.o m4objs.xpg4/m4ext.o m4objs.xpg4/m4macs.o m4objs.xpg4/m4y_xpg4.o -o m4.xpg4 -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/lib -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/lib 

This is a lint run:

    $ mos-gate/illumos.sh 'make lint'                             <
    Build type   is  non-DEBUG
    RELEASE      is 
    VERSION      is illumos-gate
    RELEASE_DATE is April 2011
    
    The top-level 'setup' target is available to build headers and tools.
    
    Using /bin/ksh as shell.
    /export/home/mills/Downloads/code/illumos-gate/usr/src/cmd/sgs/m4/i386
    perl ../../tools/lint_hdr.pl m4		 > lint.out
    perl ../../tools/lint_hdr.pl -s m4	    >> lint.out
    /opt/sunstudio12.1/bin/lint -I/opt/SUNWspro/prod/include/lint -axsm -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/lib -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/lib   -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include     -errtags=yes -s -erroff=E_PTRDIFF_OVERFLOW -erroff=E_ASSIGN_NARROW_CONV -U__PRAGMA_REDEFINE_EXTNAME -Xc99=%all -errsecurity=core -erroff=E_SEC_CREAT_WITHOUT_EXCL -erroff=E_SEC_FORBIDDEN_WARN_CREAT -erroff=E_ASSIGN_INT_TO_SMALL_INT -erroff=E_CAST_INT_CONST_TO_SMALL_INT -erroff=E_CAST_INT_TO_SMALL_INT -erroff=E_CAST_TO_PTR_FROM_INT -erroff=E_COMP_INT_WITH_LARGE_INT -erroff=E_INTEGRAL_CONST_EXP_EXPECTED -erroff=E_PASS_INT_TO_SMALL_INT -erroff=E_PTR_CONV_LOSES_BITS ../common/m4.c  ../common/m4ext.c  ../common/m4macs.c ../common/m4y.c  2>&1 | tee -a lint.out
    m4.c:
    m4ext.c:
    m4macs.c:
    m4y.c:
    perl ../../tools/lint_hdr.pl -s "XPG m4"		>> lint.out
    /opt/sunstudio12.1/bin/lint -I/opt/SUNWspro/prod/include/lint -axsm -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/lib -L/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/lib   -I../common -DELF -DTEXT_DOMAIN=\"SUNW_OST_OSCMD\" -D_TS_ERRNO  -I/export/home/mills/Downloads/code/illumos-gate/proto/root_i386-nd/usr/include     -errtags=yes -s -erroff=E_PTRDIFF_OVERFLOW -erroff=E_ASSIGN_NARROW_CONV -U__PRAGMA_REDEFINE_EXTNAME -Xc99=%all -errsecurity=core -erroff=E_SEC_CREAT_WITHOUT_EXCL -erroff=E_SEC_FORBIDDEN_WARN_CREAT -erroff=E_ASSIGN_INT_TO_SMALL_INT -erroff=E_CAST_INT_CONST_TO_SMALL_INT -erroff=E_CAST_INT_TO_SMALL_INT -erroff=E_CAST_TO_PTR_FROM_INT -erroff=E_COMP_INT_WITH_LARGE_INT -erroff=E_INTEGRAL_CONST_EXP_EXPECTED -erroff=E_PASS_INT_TO_SMALL_INT -erroff=E_PTR_CONV_LOSES_BITS ../common/m4.c  ../common/m4ext.c  ../common/m4macs.c ../common/m4y_xpg4.c  2>&1 | tee -a lint.out
    m4.c:
    m4ext.c:
    m4macs.c:
    m4y_xpg4.c:

This is my test of the fix:

    $ usr/src/cmd/sgs/m4/i386/m4 sample.m4                        
    
    usr/src/cmd/sgs/m4/i386/m4:sample.m4:2 cannot open file: No such file or directory
    include(foobar.m4)
    $ env LC_MESSAGES=fr_CA.UTF-8 usr/src/cmd/sgs/m4/i386/m4 samp>
    
    usr/src/cmd/sgs/m4/i386/m4:sample.m4:2 cannot open file: Ce fichier ou ce répertoire n'existe pas
    include(foobar.m4)

-- 
-Gary Mills-        -Unix Group-        -Computer and Network Services-



More information about the Advocates mailing list