[petsc-dev] Need -lfl in c2html

Jed Brown jed at jedbrown.org
Sun Feb 23 00:47:29 CST 2014


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.

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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140222/79d3ac63/attachment.sig>


More information about the petsc-dev mailing list