Bug 304104 - Logger fails to build with bison 2.6
Summary: Logger fails to build with bison 2.6
Status: RESOLVED FIXED
Alias: None
Product: telepathy
Classification: Unmaintained
Component: telepathy-logger-qt (show other bugs)
Version: 0.4.1
Platform: Compiled Sources Linux
: NOR major
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-26 17:35 UTC by Andrea Scarpino
Modified: 2012-08-25 11:37 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Scarpino 2012-07-26 17:35:55 UTC
Logger 0.4.1 fails to build with:

[  2%] Building CXX object codegen/CMakeFiles/codegen.dir/analyzer.cpp.o
In file included from /build/src/telepathy-logger-qt-0.4.1/codegen/yystype.h:29:0,
                 from analyzer.l:20:
/build/src/build/codegen/parser.hpp:87:14: error: ‘CodeGen’ was not declared in this scope
/build/src/build/codegen/parser.hpp:87:23: error: ‘codegen’ was not declared in this scope
/build/src/build/codegen/analyzer.cpp: In function ‘int yylex(CodeGen*)’:
/build/src/build/codegen/analyzer.cpp:1044:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/build/src/build/codegen/analyzer.cpp: In function ‘yy_buffer_state* yy_scan_bytes(const char*, yy_size_t)’:
/build/src/build/codegen/analyzer.cpp:2187:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
/build/src/build/codegen/analyzer.cpp: At global scope:
/build/src/build/codegen/analyzer.cpp:2236:16: warning: ‘int yy_top_state()’ defined but not used [-Wunused-function]
make[2]: *** [codegen/CMakeFiles/codegen.dir/analyzer.cpp.o] Error 1
make[1]: *** [codegen/CMakeFiles/codegen.dir/all] Error 2
make: *** [all] Error 2

Reproducible: Always

Steps to Reproduce:
1. Download sources
2. try to build it
Actual Results:  
the build fails

Expected Results:  
it builds

telepathy-qt 0.9.3
telepathy-logger 0.4.0
qt-gstreamer 0.10.2
gcc 4.7.1
Comment 1 George Kiagiadakis 2012-07-26 17:41:12 UTC
Sounds like something changed in flex. What is your flex version?
Comment 2 Andrea Scarpino 2012-07-26 17:46:04 UTC
(In reply to comment #1)
> Sounds like something changed in flex. What is your flex version?

flex 2.5.36
bison 2.6
Comment 3 Johannes Huber 2012-07-26 22:46:22 UTC
downstream reporter confirmed that compile succeeded with bison-2.5.1, so its related to bison-2.6

https://bugs.gentoo.org/show_bug.cgi?id=428202
Comment 4 George Kiagiadakis 2012-08-25 11:37:36 UTC
Fixed in 0.5