Issue 153 in chmsee: CentOS6.3 x86_64编译成功,make error!

3 views
Skip to first unread message

chm...@googlecode.com

unread,
Aug 24, 2012, 9:43:02 AM8/24/12
to chm...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 153 by lepoke...@gmail.com: CentOS6.3 x86_64编译成功,make error!
http://code.google.com/p/chmsee/issues/detail?id=153

What steps will reproduce the problem?
1.编译过程很顺利。
2.make过程中出现两个错误。
3.error log 如下:

What is the expected output? What do you see instead?
[root@YH build]# make
Scanning dependencies of target chmseelib
[ 2%] Building C object src/CMakeFiles/chmseelib.dir/chmsee.c.o
[ 4%] Building C object src/CMakeFiles/chmseelib.dir/setup.c.o
[ 7%] Building C object src/CMakeFiles/chmseelib.dir/utils.c.o
[ 9%] Building C object src/CMakeFiles/chmseelib.dir/components/book.c.o
[ 11%] Building C object src/CMakeFiles/chmseelib.dir/components/toc.c.o
[ 14%] Building C object src/CMakeFiles/chmseelib.dir/components/index.c.o
[ 16%] Building C object
src/CMakeFiles/chmseelib.dir/components/bookmarks.c.o
[ 19%] Building C object
src/CMakeFiles/chmseelib.dir/components/treeview.c.o
[ 21%] Building C object
src/CMakeFiles/chmseelib.dir/components/html-gecko.c.o
[ 23%] Building CXX object
src/CMakeFiles/chmseelib.dir/components/gecko-utils.cpp.o
In file included from /usr/include/xulrunner-2/nsrootidl.h:13,
from /usr/include/xulrunner-2/nsISupports.h:10,
from /usr/include/xulrunner-2/nsIWebBrowser.h:10,
from /usr/include/xulrunner-2/gtkmozembed_internal.h:41,
from /usr/include/xulrunner-2/gtkmozembed_glue.cpp:43,
from
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:46:
/usr/include/xulrunner-2/nscore.h:126:1: warning: "NS_HIDDEN" redefined
In file included from
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:45:
/usr/include/xulrunner-2/gtkmozembed.h:53:1: warning: this is the location
of the previous definition
In file included from /usr/include/xulrunner-2/nsrootidl.h:13,
from /usr/include/xulrunner-2/nsISupports.h:10,
from /usr/include/xulrunner-2/nsIWebBrowser.h:10,
from /usr/include/xulrunner-2/gtkmozembed_internal.h:41,
from /usr/include/xulrunner-2/gtkmozembed_glue.cpp:43,
from
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:46:
/usr/include/xulrunner-2/nscore.h:206:1: warning: "NS_IMPORT_" redefined
In file included from
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:45:
/usr/include/xulrunner-2/gtkmozembed.h:60:1: warning: this is the location
of the previous definition
In file included from /usr/include/xulrunner-2/nsrootidl.h:13,
from /usr/include/xulrunner-2/nsISupports.h:10,
from /usr/include/xulrunner-2/nsIWebBrowser.h:10,
from /usr/include/xulrunner-2/gtkmozembed_internal.h:41,
from /usr/include/xulrunner-2/gtkmozembed_glue.cpp:43,
from
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:46:
/usr/include/xulrunner-2/nscore.h:208:1: warning: "NS_EXPORT_" redefined
In file included from
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:45:
/usr/include/xulrunner-2/gtkmozembed.h:59:1: warning: this is the location
of the previous definition
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp: In
function ‘gboolean gecko_utils_init()’:
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:183:
error: ‘GREVersionRange’ does not name a type
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:190:
error: ‘greVersion’ was not declared in this scope
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:191:
error: ‘GRE_GetGREPathWithProperties’ was not declared in this scope
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp: In
function ‘gint gecko_utils_get_mouse_event_modifiers(void*)’:
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:266:
error: no matching function for call to
‘nsIDOMMouseEvent::GetCtrlKey(PRBool*)’
/usr/include/xulrunner-2/nsIDOMMouseEvent.h:43: note: candidates are:
virtual nsresult nsIDOMMouseEvent::GetCtrlKey(bool*)
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:267:
error: no matching function for call to
‘nsIDOMMouseEvent::GetAltKey(PRBool*)’
/usr/include/xulrunner-2/nsIDOMMouseEvent.h:49: note: candidates are:
virtual nsresult nsIDOMMouseEvent::GetAltKey(bool*)
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:268:
error: no matching function for call to
‘nsIDOMMouseEvent::GetShiftKey(PRBool*)’
/usr/include/xulrunner-2/nsIDOMMouseEvent.h:46: note: candidates are:
virtual nsresult nsIDOMMouseEvent::GetShiftKey(bool*)
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:269:
error: no matching function for call to
‘nsIDOMMouseEvent::GetMetaKey(PRBool*)’
/usr/include/xulrunner-2/nsIDOMMouseEvent.h:52: note: candidates are:
virtual nsresult nsIDOMMouseEvent::GetMetaKey(bool*)
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp: In
function ‘gboolean gecko_utils_find(GtkMozEmbed*, const gchar*, gboolean,
gboolean)’:
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:329:
error: no matching function for call to
‘nsCOMPtr_base::nsDerivedSafe<nsIWebBrowserFind>::FindNext(PRBool*)’
/usr/include/xulrunner-2/nsIWebBrowserFind.h:35: note: candidates are:
virtual nsresult nsIWebBrowserFind::FindNext(bool*)
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp: In
function ‘gboolean gecko_utils_can_copy_selection(GtkMozEmbed*)’:
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:365:
error: no matching function for call to
‘nsCOMPtr_base::nsDerivedSafe<nsIClipboardCommands>::CanCopySelection(PRBool*)’
/usr/include/xulrunner-2/nsIClipboardCommands.h:34: note: candidates are:
virtual nsresult nsIClipboardCommands::CanCopySelection(bool*)
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp: At
global scope:
/home/lepoke/Downloads/chmsee-1.3.1.1/src/components/gecko-utils.cpp:108:
warning: ‘gboolean gecko_prefs_set_bool(const gchar*, gboolean)’ defined
but not used
make[2]: *** [src/CMakeFiles/chmseelib.dir/components/gecko-utils.cpp.o]
Error 1
make[1]: *** [src/CMakeFiles/chmseelib.dir/all] Error 2
make: *** [all] Error 2

What version of the product are you using? On what operating system?
CentOS6.3 2.6.32-279.el6.x86_64
chmsee-1.3.1.1

Please provide any additional information below.
我参照 http://code.google.com/p/chmsee/issues/detail?id=69 进行了main.c到
main.cpp以及后续的修改,make的时候还是一样。

chm...@googlecode.com

unread,
Aug 25, 2012, 8:57:07 AM8/25/12
to chm...@googlegroups.com

Comment #1 on issue 153 by lepoke...@gmail.com: CentOS6.3 x86_64编译成
The problem has been resolved!My xulrunner version is 10.0, re to download
chmsee v1.99.08 make! Success!

chm...@googlecode.com

unread,
Aug 27, 2012, 10:44:39 AM8/27/12
to chm...@googlegroups.com

Comment #2 on issue 153 by jungl...@gmail.com: CentOS6.3 x86_64编译成
Could you share your solution for this problem, someone on issue152 cannot
work out, thank in advance!

Reply all
Reply to author
Forward
0 new messages