#260 Error getting while running make on AIX cscope

None
closed-out-of-date
5
2013-06-26
2010-08-23
DBA support
No

bash-2.05b# make
make all-recursive
Making all in doc
Target "all" is up to date.
Making all in src
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT scanner.o -MD -MP -MF ".deps/scanner.Tpo" -c -o scanner.o scanner.c; then mv -f ".deps/scanner.Tpo" ".deps/scanner.Po"; else rm -f ".deps/scanner.Tpo"; exit 1; fi
In file included from scanner.l:39:
scanner.h:80: error: conflicting types for 'yytext'
scanner.c:737: error: previous declaration of 'yytext' was here
scanner.c: In function 'yylex':
scanner.c:1148: error: 'yytext' has an incomplete type
scanner.c:1148: error: 'yytext' has an incomplete type
scanner.l:218: warning: assignment makes pointer from integer without a cast
scanner.l:219: warning: assignment makes pointer from integer without a cast
scanner.l:519: error: 'yytext' has an incomplete type
scanner.l:519: error: 'yytext' has an incomplete type
scanner.c: In function 'yy_get_next_buffer':
scanner.c:2023: error: 'yytext' has an incomplete type
scanner.c: In function 'yyunput':
scanner.c:2113: error: 'yytext' has an incomplete type
scanner.c: In function 'yy_load_buffer_state':
scanner.c:2250: error: 'yytext' has an incomplete type
scanner.l: In function 'initscanner':
scanner.l:604: warning: assignment makes pointer from integer without a cast
scanner.l:605: warning: assignment makes pointer from integer without a cast
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 1.

Stop.
make: 1254-004 The error code from the last command is 2.

Stop.

Discussion

  • You don't show 'configure' output, so it's a little hard to see where this comes from. Did your 'configure' run find a 'lex' or 'flex'? Was it used to build the scanner.c you're now compiling, or is that the distributed scanner.c file?

    Oh, and what version of cscope is that, anyway?

     
  • DBA support
    DBA support
    2010-08-24

    Config log file.

     
    Attachments
  • DBA support
    DBA support
    2010-08-24

    Hi,

    AIX OS level is 5300-05-04 and cscope sowftware we are using is cscope-15.7a.

    Thanks & Regards
    Shailendra Wanjari

     
  • Now if you could answer some the other question I asked, we might make some progress yet...

     
  • DBA support
    DBA support
    2010-08-30

    Hi,

    Please find below information found in config.log file and also uploaded config.log file which is created while running configure command.

    configure:3494: checking for flex
    configure:3524: result: no
    configure:3494: checking for lex
    configure:3510: found /usr/bin/lex
    configure:3521: result: lex

    Thanks & Regards
    Shailendra Wanjari

     
  • It's still not entirely clear, but it looks like you're building off the distributed scanner.c rather than the one generated by AIX' /usr/bin/lex.

    I suggest you remove scanner.c from the unpacked tarball's src directory and try again.

     
  • DBA support
    DBA support
    2010-09-01

    Hi,

    Thanks for support. I had removed scanner.c from src and then tried to run make it give me below error.

    -bash-3.00# make
    make all-recursive
    Making all in doc
    Target "all" is up to date.
    Making all in src
    /bin/sh ../ylwrap scanner.l lex.yy.c scanner.c -- lex
    434/2000 nodes(%e); 1490/5000 positions(%p); 138/2500 (%n); 42471 transitions
    240/1000 packed char classes(%k)
    1571/12000 packed transitions(%a)
    2044/11096 output slots(%o)

    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT scanner.o -MD -MP -MF ".deps/scanner.Tpo" -c -o scanner.o scanner.c; then mv -f ".deps/scanner.Tpo" ".deps/scanner.Po"; else rm -f ".deps/scanner.Tpo"; exit 1; fi
    scanner.c: In function 'yylex':
    scanner.c:322: warning: assignment makes pointer from integer without a cast
    scanner.c:323: warning: assignment makes pointer from integer without a cast
    scanner.c: In function 'initscanner':
    scanner.c:769: warning: assignment makes pointer from integer without a cast
    scanner.c:770: warning: assignment makes pointer from integer without a cast
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT egrep.o -MD -MP -MF ".deps/egrep.Tpo" -c -o egrep.o egrep.c; then mv -f ".deps/egrep.Tpo" ".deps/egrep.Po"; else rm -f ".deps/egrep.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT alloc.o -MD -MP -MF ".deps/alloc.Tpo" -c -o alloc.o alloc.c; then mv -f ".deps/alloc.Tpo" ".deps/alloc.Po"; else rm -f ".deps/alloc.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT basename.o -MD -MP -MF ".deps/basename.Tpo" -c -o basename.o basename.c; then mv -f ".deps/basename.Tpo" ".deps/basename.Po"; else rm -f ".deps/basename.Tpo"; exit 1; fi
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -MT build.o -MD -MP -MF ".deps/build.Tpo" -c -o build.o build.c; then mv -f ".deps/build.Tpo" ".deps/build.Po"; else rm -f ".deps/build.Tpo"; exit 1; fi
    In file included from /usr/include/curses.h:67,
    from build.c:52:
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:299: error: parse error before 'mbstate_t'
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:302: error: parse error before 'mbstate_t'
    build.c: In function 'build':
    build.c:226: warning: incompatible implicit declaration of built-in function 'snprintf'
    build.c:459: warning: incompatible implicit declaration of built-in function 'snprintf'
    make: 1254-004 The error code from the last command is 1.

    Stop.
    make: 1254-004 The error code from the last command is 1.

    Stop.
    make: 1254-004 The error code from the last command is 2.

    Stop.
    -bash-3.00#

    Thanks & Regards
    Shailendra Wanjari

     
  • So the lex issue appears fixed. The next problem is a different one. Without access to an AIX system of my own, all I can state is the somewhat obvious:

    1) your GCC hates its own, supposedly "fixed" copies of system header files
    2) your GCC managed to fool 'configure' about the availability of snprintf() on your system.

     
    • status: open --> pending-out-of-date
     
  • No feedback in ages. Closing

     
    • status: pending-out-of-date --> closed-out-of-date
    • Group: -->