pkgsrc-Bugs archive

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

pkg/51978: hdf-4.2r2, p- implicit declaration of function 'yyerror'



>Number:         51978
>Category:       pkg
>Synopsis:       hdf-4.2r2, p- implicit declaration of function 'yyerror'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 17 16:00:00 +0000 2017
>Originator:     Poor Yorick
>Release:        2016Q4
>Organization:
>Environment:
Linux 3.10.0-514.el7.x86_64
>Description:
building hdf-4.2r4, pkgsrc-2016Q4:

    ... -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
    main.c: In function 'main':
    main.c:64:17: warning: implicit declaration of function 'getopt' [-Wimplicit-fun
    ction-declaration]
         while ((c = getopt(argc, argv, "bcfno:")) != EOF)
                 ^


And then later:

    tab.o -MD -MP -MF .deps/ncgentab.Tpo -c -o ncgentab.o ncgentab.c
    In file included from ./ncgen.y:681:0:
    ./ncgen.l: In function 'yylex':
    ./ncgen.l:35:5: warning: implicit declaration of function 'yyerror' [-Wimplicit-
    function-declaration]
         yyerror("string too long, truncated\n");
         ^
    ./ncgen.y: At top level:
    ./ncgen.y:685:1: warning: return type defaults to 'int' [-Wimplicit-int]
     yyerror(s) /* called for yacc syntax error */
     ^
    ./ncgen.y: In function 'yyparse':
    ./ncgen.y:539:11: warning: implicit declaration of function 'nctype' [-Wimplicit
    -function-declaration]
               nctype(valtype));
               ^

and finally:

    libtool-fortran: link: gcc .. -o .libs/hdfncgen ... 
    ncgentab.o: In function `yylex':
    ncgentab.c:(.text+0x1878): undefined reference to `yywrap'
    collect2: error: ld returned 1 exit status

After I added "-lfl" to $LIBS in the build environment, the problem
disappeared.

>How-To-Repeat:

>Fix:


Home | Main Index | Thread Index | Old Index