t-artistik / qtscriptgenerator

Automatically exported from code.google.com/p/qtscriptgenerator
0 stars 0 forks source link

Compilation issue with gcc 4.4.0 #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. cd generator
2. qmake
3. make

What is the expected output? What do you see instead?

g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DRXX_ALLOCATOR_INIT_0
-DQT_NO_DEBUG -DQT_XML_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Trolltech/Qt-4.5.1/mkspecs/linux-g++-64 -I.
-I/usr/local/Trolltech/Qt-4.5.1/include/QtCore
-I/usr/local/Trolltech/Qt-4.5.1/include/QtXml
-I/usr/local/Trolltech/Qt-4.5.1/include -I. -I.
-I/home/fraga/src/qtscriptgenerator-src-0.1.0/generator/../common -Iparser
-Iparser/rpp -Iparser/rpp -Irelease -I. -o release/preprocessor.o
parser/rpp/preprocessor.cpp
In file included from parser/rpp/pp.h:69,
                 from parser/rpp/preprocessor.cpp:23:
parser/rpp/pp-internal.h: In function 'void
rpp::_PP_internal::output_line(const std::string&, int, _OutputIterator)':
parser/rpp/pp-internal.h:44: error: there are no arguments to 'snprintf'
that depend on a template parameter, so a declaration of 'snprintf' must be
available
parser/rpp/pp-internal.h:44: note: (if you use '-fpermissive', G++ will
accept your code, but allowing the use of an undeclared name is deprecated)
In file included from parser/rpp/pp.h:74,
                 from parser/rpp/preprocessor.cpp:23:
parser/rpp/pp-macro-expander.h: In member function '_InputIterator
rpp::pp_macro_expander::operator()(_InputIterator, _InputIterator,
_OutputIterator)':
parser/rpp/pp-macro-expander.h:233: error: there are no arguments to
'snprintf' that depend on a template parameter, so a declaration of
'snprintf' must be available
In file included from parser/rpp/pp.h:76,
                 from parser/rpp/preprocessor.cpp:23:
parser/rpp/pp-engine-bits.h: In member function 'void rpp::pp::file(const
std::string&, _OutputIterator)':
parser/rpp/pp-engine-bits.h:50: error: there are no arguments to 'fopen'
that depend on a template parameter, so a declaration of 'fopen' must be
available
parser/rpp/pp-engine-bits.h: In member function 'void rpp::pp::file(FILE*,
_OutputIterator)':
parser/rpp/pp-engine-bits.h:80: error: there are no arguments to 'feof'
that depend on a template parameter, so a declaration of 'feof' must be
available
parser/rpp/pp-engine-bits.h:82: error: there are no arguments to 'fread'
that depend on a template parameter, so a declaration of 'fread' must be
available
parser/rpp/pp-engine-bits.h:86: error: there are no arguments to 'fclose'
that depend on a template parameter, so a declaration of 'fclose' must be
available
In file included from parser/rpp/pp.h:76,
                 from parser/rpp/preprocessor.cpp:23:
parser/rpp/pp-engine-bits.h: In member function 'FILE*
rpp::pp::find_include_file(const std::string&, std::string*,
rpp::pp::INCLUDE_POLICY, bool) const':
parser/rpp/pp-engine-bits.h:240: error: 'fopen' was not declared in this scope
parser/rpp/pp-engine-bits.h:253: error: 'fopen' was not declared in this scope
parser/rpp/pp-engine-bits.h:279: error: 'fopen' was not declared in this scope
make[1]: *** [release/preprocessor.o] Error 1
make[1]: Leaving directory
`/home/fraga/src/qtscriptgenerator-src-0.1.0/generator'
make: *** [release] Error 2

What version of the product are you using? On what operating system?

Linux

Please provide any additional information below.

Original issue reported on code.google.com by frag...@gmail.com on 24 Apr 2009 at 7:23

GoogleCodeExporter commented 8 years ago
Looks like a dup of an already reported gcc44-related issue:
http://code.google.com/p/qtscriptgenerator/issues/detail?id=37
(with patch)

Original comment by rdieter@gmail.com on 27 Apr 2009 at 1:44

GoogleCodeExporter commented 8 years ago
Ok, with the patch I can compile generator, but no qtbindings:

cd qtscript_core/ && make -f Makefile 
make[1]: Entering directory
`/home/fraga/src/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
make -f Makefile.Release
make[2]: Entering directory
`/home/fraga/src/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_SCRIPT_LIB
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/local/Trolltech/Qt-4.5.1/mkspecs/linux-g++-64 -I.
-I/usr/local/Trolltech/Qt-4.5.1/include/QtCore
-I/usr/local/Trolltech/Qt-4.5.1/include/QtGui
-I/usr/local/Trolltech/Qt-4.5.1/include/QtScript
-I/usr/local/Trolltech/Qt-4.5.1/include -I. -Irelease -I. -o
release/qtscriptshell_QFutureIterator.o
../../generated_cpp/com_trolltech_qt_core/qtscriptshell_QFutureIterator.cpp
../../generated_cpp/com_trolltech_qt_core/qtscriptshell_QFutureIterator.cpp: In
constructor 'QtScriptShell_QFutureIterator::QtScriptShell_QFutureIterator()':
../../generated_cpp/com_trolltech_qt_core/qtscriptshell_QFutureIterator.cpp:10:
error: no matching function for call to
'QFutureIterator<QScriptValue>::QFutureIterator()'
/usr/local/Trolltech/Qt-4.5.1/include/QtCore/qfuture.h:191: note: candidates 
are:
QFutureIterator<T>::QFutureIterator(const QFuture<T>&) [with T = QScriptValue]
/usr/local/Trolltech/Qt-4.5.1/include/QtCore/qfuture.h:191: note:               

QFutureIterator<QScriptValue>::QFutureIterator(const 
QFutureIterator<QScriptValue>&)
make[2]: *** [release/qtscriptshell_QFutureIterator.o] Error 1
make[2]: Leaving directory
`/home/fraga/src/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
make[1]: *** [release] Error 2
make[1]: Leaving directory
`/home/fraga/src/qtscriptgenerator-src-0.1.0/qtbindings/qtscript_core'
make: *** [sub-qtscript_core-make_default] Error 2

Original comment by frag...@gmail.com on 27 Apr 2009 at 2:51