[petsc-dev] Need -lfl in c2html
Barry Smith
bsmith at mcs.anl.gov
Sun Feb 23 10:17:36 CST 2014
On Feb 23, 2014, at 12:47 AM, Jed Brown <jed at jedbrown.org> wrote:
> My configure on 'master' fails with the following. I need to link with
> -lfl to get the symbol yywrap. I don't know why we haven't been
> encountering this before.
There was one user report of this a few weeks, but in all the previous years I don’t recall this ever being an issue.
I guess you better update maint.
Barry
>
> Error running make; make install on c2html: Could not execute "cd /home/jed/petsc/mpich-optg/externalpackages/c2html-0.9.4 && make && make install && make clean":
> flex ./c2html.l
> gcc -O -I. -I. -DCOMPRESSION=1 -o c2html lex.yy.c ./mymain.c ./colors.c
> Makefile:67: recipe for target 'c2html' failed/tmp/ccFJeTaT.o: In function `yylex':
> lex.yy.c:(.text+0x334d): undefined reference to `yywrap'
> collect2: error: ld returned 1 exit status
> make: *** [c2html] Error 1
> .
> Try disable c2html with --with-c2html=0
> *******************************************************************************
>
>
> Solution is to pass LEXLIB=-lfl to c2html's configure, though I don't
> know if we need to test for -lfl first (AFAIK, it's a standard part of
> the flex distribution). Also note that there is a newer c2html.
>
> https://aur.archlinux.org/packages/c2/c2html/PKGBUILD
More information about the petsc-dev
mailing list