New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Ошибка компиляции 0.8.0

Сообщаем о найденных ошибках сюда

Ошибка компиляции 0.8.0

Postby Tigro » Mon Apr 27, 2009 9:30 am

День добрый, у меня опять проблема с Fedora Development.

Code: Select all
g++ -c -pipe -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables -Wall -W -D_REENTRANT -DPROGRAM_DATA_DIR=\"/usr/local/share/apps/goldendict/\" -DPROGRAM_VERSION=\"0.8.0\" -DQT_NO_DEBUG -DQT_WEBKIT_LIB -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I/usr/lib/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtWebKit -I/usr/include -I. -Ibuild -Ibuild -o build/article_netmgr.o article_netmgr.cc
config.cc:50: error: expected constructor, destructor, or type conversion before 'const'
config.cc: In constructor 'Config::HotKey::HotKey(const QKeySequence&)':
config.cc:53: error: 'keyMask' was not declared in this scope
make: *** [build/config.o] Error 1
make: *** Waiting for unfinished jobs....
Tigro
 
Posts: 7
Joined: Sat Apr 04, 2009 7:53 pm

Re: Ошибка компиляции 0.8.0

Postby ikm » Mon Apr 27, 2009 10:39 am

Думаю, надо добавить в начало файла #include <stdint.h>. Как обычно :)
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am

Re: Ошибка компиляции 0.8.0

Postby Tigro » Mon Apr 27, 2009 11:46 am

Да работает, но.... Вот полный патч:

Code: Select all
diff -urN goldendict-0.8.0-src.orig/article_netmgr.cc goldendict-0.8.0-src/article_netmgr.cc
--- goldendict-0.8.0-src.orig/article_netmgr.cc 2009-04-27 14:53:01.000000000 +0400
+++ goldendict-0.8.0-src/article_netmgr.cc      2009-04-27 15:05:51.000000000 +0400
@@ -1,6 +1,7 @@
 /* This file is (c) 2008-2009 Konstantin Isakov <ikm@users.berlios.de>
  * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */

+#include <stdint.h>
 #include "article_netmgr.hh"
 #include "wstring_qt.hh"

diff -urN goldendict-0.8.0-src.orig/chunkedstorage.cc goldendict-0.8.0-src/chunkedstorage.cc
--- goldendict-0.8.0-src.orig/chunkedstorage.cc 2009-04-27 14:53:01.000000000 +0400
+++ goldendict-0.8.0-src/chunkedstorage.cc      2009-04-27 15:05:51.000000000 +0400
@@ -1,6 +1,7 @@
 /* This file is (c) 2008-2009 Konstantin Isakov <ikm@users.berlios.de>
  * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */

+#include <stdint.h>
 #include "chunkedstorage.hh"
 #include <zlib.h>
 #include<string.h>
diff -urN goldendict-0.8.0-src.orig/config.cc goldendict-0.8.0-src/config.cc
--- goldendict-0.8.0-src.orig/config.cc 2009-04-27 14:53:01.000000000 +0400
+++ goldendict-0.8.0-src/config.cc      2009-04-27 15:05:51.000000000 +0400
@@ -1,6 +1,7 @@
 /* This file is (c) 2008-2009 Konstantin Isakov <ikm@users.berlios.de>
  * Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */

+#include <stdint.h>
 #include "config.hh"
 #include <QDir>
 #include <QFile>
diff -urN goldendict-0.8.0-src.orig/dictzip.c goldendict-0.8.0-src/dictzip.c
--- goldendict-0.8.0-src.orig/dictzip.c 2009-04-27 14:53:01.000000000 +0400
+++ goldendict-0.8.0-src/dictzip.c      2009-04-27 15:06:06.000000000 +0400
@@ -22,6 +22,7 @@
  * 675 Mass Ave, Cambridge, MA 02139, USA.
  */

+#include <stdlib.h>
 #include "dictzip.h"
 #include <limits.h>
 #include <stdarg.h>
Tigro
 
Posts: 7
Joined: Sat Apr 04, 2009 7:53 pm

Re: Ошибка компиляции 0.8.0

Postby ikm » Mon Apr 27, 2009 12:25 pm

Спасибо, закомиттил в SVN.
ikm
Автор GoldenDict
 
Posts: 1595
Joined: Wed Feb 04, 2009 10:40 am


Return to Ошибки

Who is online

Users browsing this forum: No registered users and 2 guests