After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 759932 - 1.8.10 Build Fails in Scanner Generation (YY_BUF_SIZE redefined) on RHEL 5
1.8.10 Build Fails in Scanner Generation (YY_BUF_SIZE redefined) on RHEL 5
Status: RESOLVED OBSOLETE
Product: doxygen
Classification: Other
Component: build
1.8.10
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
[moved_to_github]
Depends on:
Blocks:
 
 
Reported: 2015-12-28 17:29 UTC by Gilbert T Williams
Modified: 2018-07-30 10:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gilbert T Williams 2015-12-28 17:29:33 UTC
When attempting to build 1.8.10 on a Red Hat 5 box, the build fails with the subject error.

Here is the content of the build script:

#/bin/bash
set -x
pwd
cat /etc/redhat-release
uname -a
python --version
flex --version
bison --version

cmake --version
rm -rf doxygen-1.8.10/
tar -zxf doxygen-1.8.10.src.tar.gz
cd doxygen-1.8.10
mkdir build
cd build
echo "Starting build in "$PWD
cmake -G "Unix Makefiles" ..
make

Here is the output from running the script(error is at the end):

++ pwd
/home/gtw/utils
++ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
++ uname -a
Linux pdsmdv07.msfc.nasa.gov 2.6.18-398.el5 #1 SMP Tue Aug 12 06:26:17 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux
++ python --version
Python 2.7
++ flex --version
flex version 2.5.4
++ bison --version
bison (GNU Bison) 2.3
Written by Robert Corbett and Richard Stallman.

Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
++ cmake --version
cmake version 3.4.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
++ rm -rf doxygen-1.8.10/
++ tar -zxf doxygen-1.8.10.src.tar.gz
++ cd doxygen-1.8.10
++ mkdir build
++ cd build
++ echo 'Starting build in /home/gtw/utils/doxygen-1.8.10/build'
Starting build in /home/gtw/utils/doxygen-1.8.10/build
++ cmake -G 'Unix Makefiles' ..
-- The C compiler identification is GNU 4.1.2
-- The CXX compiler identification is GNU 4.1.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/local/bin/python (found version "2.7") 
-- Found FLEX: /usr/bin/flex (found version "2.5.4") 
-- Found BISON: /usr/bin/bison (found version "2.3") 
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Looking for iconv_open
-- Looking for iconv_open - found
-- Performing Test ICONV_COMPILES
-- Performing Test ICONV_COMPILES - Success
-- Found ICONV: In glibc  
-- One (and only one) of the ICONV_ACCEPTS_... tests must pass
-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT
-- Performing Test ICONV_ACCEPTS_NONCONST_INPUT - Success
-- Performing Test ICONV_ACCEPTS_CONST_INPUT
-- Performing Test ICONV_ACCEPTS_CONST_INPUT - Failed
-- Configuring done
-- Generating done
-- Build files have been written to: /home/gtw/utils/doxygen-1.8.10/build
++ make
Scanning dependencies of target md5
[  1%] Building C object libmd5/CMakeFiles/md5.dir/md5.c.o
[  2%] Linking C static library ../lib/libmd5.a
[  2%] Built target md5
Scanning dependencies of target qtools
[  2%] Building CXX object qtools/CMakeFiles/qtools.dir/qbuffer.cpp.o
[  3%] Building CXX object qtools/CMakeFiles/qtools.dir/qcollection.cpp.o
[  3%] Building CXX object qtools/CMakeFiles/qtools.dir/qcstring.cpp.o
[  4%] Building CXX object qtools/CMakeFiles/qtools.dir/qdatastream.cpp.o
[  4%] Building CXX object qtools/CMakeFiles/qtools.dir/qdatetime.cpp.o
[  5%] Building CXX object qtools/CMakeFiles/qtools.dir/qdir.cpp.o
[  6%] Building CXX object qtools/CMakeFiles/qtools.dir/qfile.cpp.o
[  6%] Building CXX object qtools/CMakeFiles/qtools.dir/qfileinfo.cpp.o
[  7%] Building CXX object qtools/CMakeFiles/qtools.dir/qgarray.cpp.o
[  7%] Building CXX object qtools/CMakeFiles/qtools.dir/qgcache.cpp.o
[  8%] Building CXX object qtools/CMakeFiles/qtools.dir/qgdict.cpp.o
[  8%] Building CXX object qtools/CMakeFiles/qtools.dir/qglist.cpp.o
[  9%] Building CXX object qtools/CMakeFiles/qtools.dir/qglobal.cpp.o
[ 10%] Building CXX object qtools/CMakeFiles/qtools.dir/qgstring.cpp.o
[ 10%] Building CXX object qtools/CMakeFiles/qtools.dir/qgvector.cpp.o
[ 11%] Building CXX object qtools/CMakeFiles/qtools.dir/qiodevice.cpp.o
[ 11%] Building CXX object qtools/CMakeFiles/qtools.dir/qregexp.cpp.o
[ 12%] Building CXX object qtools/CMakeFiles/qtools.dir/qstring.cpp.o
[ 12%] Building CXX object qtools/CMakeFiles/qtools.dir/qtextstream.cpp.o
[ 13%] Building CXX object qtools/CMakeFiles/qtools.dir/qtextcodec.cpp.o
[ 14%] Building CXX object qtools/CMakeFiles/qtools.dir/qstringlist.cpp.o
[ 14%] Building CXX object qtools/CMakeFiles/qtools.dir/qxml.cpp.o
[ 15%] Building CXX object qtools/CMakeFiles/qtools.dir/qmap.cpp.o
[ 15%] Building CXX object qtools/CMakeFiles/qtools.dir/qthread.cpp.o
[ 16%] Building CXX object qtools/CMakeFiles/qtools.dir/qmutex.cpp.o
[ 16%] Building CXX object qtools/CMakeFiles/qtools.dir/qutfcodec.cpp.o
[ 17%] Building CXX object qtools/CMakeFiles/qtools.dir/qfile_unix.cpp.o
[ 18%] Building CXX object qtools/CMakeFiles/qtools.dir/qdir_unix.cpp.o
[ 18%] Building CXX object qtools/CMakeFiles/qtools.dir/qfileinfo_unix.cpp.o
[ 19%] Building CXX object qtools/CMakeFiles/qtools.dir/qthread_unix.cpp.o
[ 19%] Building CXX object qtools/CMakeFiles/qtools.dir/qmutex_unix.cpp.o
[ 20%] Building CXX object qtools/CMakeFiles/qtools.dir/qwaitcondition_unix.cpp.o
[ 20%] Linking CXX static library ../lib/libqtools.a
[ 20%] Built target qtools
Scanning dependencies of target vhdlparser
[ 21%] Building CXX object vhdlparser/CMakeFiles/vhdlparser.dir/CharStream.cc.o
[ 21%] Building CXX object vhdlparser/CMakeFiles/vhdlparser.dir/ParseException.cc.o
[ 22%] Building CXX object vhdlparser/CMakeFiles/vhdlparser.dir/Token.cc.o
[ 22%] Building CXX object vhdlparser/CMakeFiles/vhdlparser.dir/TokenMgrError.cc.o
/home/gtw/utils/doxygen-1.8.10/vhdlparser/TokenMgrError.cc: In function 'VhdlString vhdl::parser::addUnicodeEscapes(VhdlString)':
/home/gtw/utils/doxygen-1.8.10/vhdlparser/TokenMgrError.cc:101: warning: comparison is always true due to limited range of data type
[ 23%] Building CXX object vhdlparser/CMakeFiles/vhdlparser.dir/VhdlParser.cc.o
[ 23%] Building CXX object vhdlparser/CMakeFiles/vhdlparser.dir/VhdlParserTokenManager.cc.o
/home/gtw/utils/doxygen-1.8.10/vhdlparser/VhdlParserTokenManager.cc: In member function 'int vhdl::parser::VhdlParserTokenManager::jjMoveNfa_0(int, int)':
/home/gtw/utils/doxygen-1.8.10/vhdlparser/VhdlParserTokenManager.cc:3032: warning: comparison is always true due to limited range of data type
[ 24%] Building CXX object vhdlparser/CMakeFiles/vhdlparser.dir/VhdlParserIF.cpp.o
[ 25%] Linking CXX static library ../lib/libvhdlparser.a
[ 25%] Built target vhdlparser
[ 26%] [BISON][constexp] Building parser with bison 2.3
[ 26%] Generating /home/gtw/utils/doxygen-1.8.10/build/generated_src/lang_cfg.h
[ 27%] Generating ../generated_src/layout_default.xml.h
[ 27%] Generating ../generated_src/ce_parse.h
[ 28%] Generating /home/gtw/utils/doxygen-1.8.10/build/generated_src/resources.cpp
[ 28%] [FLEX][scanner] Building scanner with flex 2.5.4
[ 29%] [FLEX][code] Building scanner with flex 2.5.4
[ 30%] [FLEX][pyscanner] Building scanner with flex 2.5.4
[ 30%] [FLEX][pycode] Building scanner with flex 2.5.4
[ 31%] [FLEX][fortranscanner] Building scanner with flex 2.5.4
[ 31%] [FLEX][fortrancode] Building scanner with flex 2.5.4
[ 32%] [FLEX][vhdlcode] Building scanner with flex 2.5.4
[ 32%] [FLEX][tclscanner] Building scanner with flex 2.5.4
[ 33%] [FLEX][pre] Building scanner with flex 2.5.4
[ 34%] [FLEX][declinfo] Building scanner with flex 2.5.4
[ 34%] [FLEX][defargs] Building scanner with flex 2.5.4
[ 35%] [FLEX][doctokenizer] Building scanner with flex 2.5.4
[ 35%] [FLEX][commentcnv] Building scanner with flex 2.5.4
[ 36%] [FLEX][commentscan] Building scanner with flex 2.5.4
[ 36%] [FLEX][constexp] Building scanner with flex 2.5.4
[ 37%] [FLEX][xmlcode] Building scanner with flex 2.5.4
Scanning dependencies of target _doxygen
[ 37%] Building CXX object src/CMakeFiles/_doxygen.dir/__/generated_src/version.cpp.o
/home/gtw/utils/doxygen-1.8.10/build/generated_src/version.cpp:1:31: warning: no newline at end of file
[ 38%] Building CXX object src/CMakeFiles/_doxygen.dir/__/generated_src/resources.cpp.o
[ 38%] Building CXX object src/CMakeFiles/_doxygen.dir/__/generated_src/scanner.cpp.o
/home/gtw/utils/doxygen-1.8.10/build/generated_src/scanner.cpp:115:1: warning: "YY_BUF_SIZE" redefined
<command line>:1:1: warning: this is the location of the previous definition
scanner.l: In member function 'virtual void CLanguageScanner::parseInput(const char*, const char*, Entry*, bool, QStrList&)':
scanner.l:7028: error: 'scannerYY_flex_debug' was not declared in this scope
make[2]: *** [src/CMakeFiles/_doxygen.dir/__/generated_src/scanner.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/_doxygen.dir/all] Error 2
make: *** [all] Error 2
Comment 1 albert 2016-01-01 11:08:55 UTC
Problem here is the flex version. RHEL5 comes, by default, with an old version of flex (2.5.4) and doxygen needs a newer version.

See:
http://stackoverflow.com/questions/20844635/error-building-doxygen1-8-6
https://bugzilla.gnome.org/show_bug.cgi?id=719525
Comment 2 André Klapper 2018-07-30 10:43:13 UTC
As discussed in https://github.com/doxygen/doxygen/pull/734 , Doxygen has moved its issue tracking to 

   https://github.com/doxygen/doxygen/issues

All Doxygen tickets in GNOME Bugzilla have been migrated to Github. You can subscribe and participate in the new ticket in Github. You can find the corresponding Github ticket by searching for its Bugzilla ID (number) in Github.

Hence I am closing this GNOME Bugzilla ticket.
Please use the corresponding ticket in Github instead. Thanks a lot!