Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS6.3 x86_64编译成功,make error! #153

Closed
GoogleCodeExporter opened this issue Oct 18, 2015 · 3 comments
Closed

CentOS6.3 x86_64编译成功,make error! #153

GoogleCodeExporter opened this issue Oct 18, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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的时候还是一样。

Original issue reported on code.google.com by lepoke...@gmail.com on 24 Aug 2012 at 1:42

@GoogleCodeExporter
Copy link
Author

The problem has been resolved!My xulrunner version is 10.0, re to download 
chmsee v1.99.08 make! Success!

Original comment by lepoke...@gmail.com on 25 Aug 2012 at 12:57

@GoogleCodeExporter
Copy link
Author

Could you share your solution for this problem, someone on issue152 cannot work 
out, thank in advance!

Original comment by jungl...@gmail.com on 27 Aug 2012 at 2:44

@GoogleCodeExporter
Copy link
Author

Clear all pre-2.0 issues

Original comment by jungl...@gmail.com on 18 Jan 2013 at 6:10

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant