octave-maintainers
[Top][All Lists]
Advanced

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

Re: Bison/flex yywrap error during configure test


From: Daniel J Sebald
Subject: Re: Bison/flex yywrap error during configure test
Date: Tue, 09 Sep 2014 02:29:50 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 09/09/2014 12:34 AM, Daniel J Sebald wrote:
Oh yeah, I also wanted to point out that although I have the most recent
Bison and flex I'm still seeing an error in the test during
configuration. From the file config.log:

configure:7824: checking lex library
configure:7838: gcc -o conftest -g -O2 conftest.c >&5
/tmp/ccmYrPKQ.o: In function `input':
/usr/local/src/octave/octave-background_command/build3/lex.yy.c:1172:
undefined reference to `yywrap'
/tmp/ccmYrPKQ.o: In function `yylex':
/usr/local/src/octave/octave-background_command/build3/lex.yy.c:870:
undefined reference to `yywrap'
/tmp/ccmYrPKQ.o: In function `main':
/usr/local/src/octave/octave-background_command/build3/conftest.l:17:
undefined reference to `yywrap'
collect2: ld returned 1 exit status
configure:7838: $? = 1
configure: failed program was:
| /* confdefs.h */

Is there a way to make this test pass by using one of the alternatives
here:

http://stackoverflow.com/questions/1811125/undefined-reference-to-yywrap

i.e., the "%option noyywrap" or linking using the default yywrap()
function? The latter seems a little easier to do in the 'configure'
scripts.

Actually, I think this is supposed to fail. It's part of the process of figuring out what libraries are needed to make flex generated files compile. Wish it would suppress printing out the failed file though, which in this case is rather large. The AC/etc tools are just too much to tackle.

Dan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]