fzxs8 / chmsee

Automatically exported from code.google.com/p/chmsee
GNU General Public License v2.0
0 stars 0 forks source link

make error rhel5 xulrunner 1.9 chmsee 1.0.3 #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
make  all-recursive
make[1]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3'
Making all in cs2w
make[2]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w'
Making all in template
make[3]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template'
Making all in cs2w_icons
make[4]: Entering directory
`/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template/cs2w_
icons'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template/cs2w_i
cons'
Making all in stylesheet
make[4]: Entering directory
`/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template/style
sheet'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template/styles
heet'
make[4]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template'
make[4]: Nothing to be done for `all-am'.
make[4]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template'
make[3]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w/template'
make[3]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w'
make[2]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/cs2w'
Making all in doc
make[2]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/doc'
Making all in po
make[2]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/po'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/po'
Making all in src
make[2]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/src'
make  all-am
make[3]: Entering directory `/home/azhi/usb/chm/chmsee-1.0.3/src'
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_DATA_DIR=\""/usr/local/share"\"
-DCHMSEE
_DATA_DIR=\""/usr/local/share/chmsee"\"
-DPACKAGE_LOCALE_DIR=\""/usr/local/share
/locale"\" -DGLADE_FILE=\"chmsee.glade\"
-DBOOKMARK_FILE=\"chmsee_bookmarks\" -D
BOOKINFO_FILE=\"chmsee_bookinfo\" -DCHMSEE_NO_LINK=\"chmsee_no_link\"
-pthread -
I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0
-I/usr
/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/
pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/libgla
de-2.0 -I/usr/include/libxml2 -INONE/include -DXPCOM_GLUE -fshort-wchar
-I/usr/i
nclude/xulrunner-sdk-1.9/unstable   -I/usr/include/xulrunner-sdk-1.9
-I/usr/incl
ude/xulrunner-sdk-1.9/commandhandler
-I/usr/include/xulrunner-sdk-1.9/content -I
/usr/include/xulrunner-sdk-1.9/dom -I/usr/include/xulrunner-sdk-1.9/find
-I/usr/
include/xulrunner-sdk-1.9/gfx -I/usr/include/xulrunner-sdk-1.9/gtkembedmoz
-I/us
r/include/xulrunner-sdk-1.9/locale -I/usr/include/xulrunner-sdk-1.9/pref
-I/usr/
include/xulrunner-sdk-1.9/string -I/usr/include/xulrunner-sdk-1.9/webbrwsr
-I/us
r/include/xulrunner-sdk-1.9/xpcom -I/usr/include/xulrunner-sdk-1.9/xpconnect
-g -O2 -MT chmsee-gecko_utils.o -MD -MP -MF .deps/chmsee-gecko_utils.Tpo -c
-o c
hmsee-gecko_utils.o `test -f 'gecko_utils.cpp' || echo './'`gecko_utils.cpp
In file included from /usr/include/xulrunner-sdk-1.9/unstable/nsrootidl.h:11,
                 from /usr/include/xulrunner-sdk-1.9/unstable/nsISupports.h:10,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/nsIWebBrowser.h:10
,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_intern
al.h:41,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_glue.c
pp:43,
                 from gecko_utils.cpp:46:
/usr/include/xulrunner-sdk-1.9/unstable/nscore.h:51:21: error: prtypes.h:
No suc
h file or directory
/usr/include/xulrunner-sdk-1.9/unstable/nscore.h:117:1: warning:
"NS_HIDDEN" red
efined
In file included from gecko_utils.h:44,
                 from gecko_utils.cpp:42:
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed.h:57:1: warning: this
is the
 location of the previous definition
In file included from /usr/include/xulrunner-sdk-1.9/unstable/nsrootidl.h:11,
                 from /usr/include/xulrunner-sdk-1.9/unstable/nsISupports.h:10,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/nsIWebBrowser.h:10
,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_intern
al.h:41,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_glue.c
pp:43,
                 from gecko_utils.cpp:46:
/usr/include/xulrunner-sdk-1.9/unstable/nscore.h:206:1: warning:
"NS_IMPORT_" re
defined
In file included from gecko_utils.h:44,
                 from gecko_utils.cpp:42:
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed.h:64:1: warning: this
is the
 location of the previous definition
In file included from /usr/include/xulrunner-sdk-1.9/unstable/nsrootidl.h:11,
                 from /usr/include/xulrunner-sdk-1.9/unstable/nsISupports.h:10,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/nsIWebBrowser.h:10
,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_intern
al.h:41,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_glue.c
pp:43,
                 from gecko_utils.cpp:46:
/usr/include/xulrunner-sdk-1.9/unstable/nscore.h:208:1: warning:
"NS_EXPORT_" re
defined
In file included from gecko_utils.h:44,
                 from gecko_utils.cpp:42:
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed.h:63:1: warning: this
is the
 location of the previous definition
In file included from /usr/include/xulrunner-sdk-1.9/unstable/nsISupports.h:10,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/nsIWebBrowser.h:10
,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_intern
al.h:41,
                 from
/usr/include/xulrunner-sdk-1.9/unstable/gtkmozembed_glue.c
pp:43,
                 from gecko_utils.cpp:46:
/usr/include/xulrunner-sdk-1.9/unstable/nsrootidl.h:12:20: error: prtime.h:
No s
uch file or directory
In file included from
/usr/include/xulrunner-sdk-1.9/unstable/nsEmbedString.h:43
,
                 from gecko_utils.cpp:54:
/usr/include/xulrunner-sdk-1.9/unstable/nsStringAPI.h:55:19: error: prlog.h: No
such file or directory
In file included from gecko_utils.cpp:65:
/usr/include/xulrunner-sdk-1.9/unstable/nsILocalFile.h:17:18: error: prio.h: No
such file or directory
/usr/include/xulrunner-sdk-1.9/unstable/nsILocalFile.h:18:20: error:
prlink.h: N
o such file or directory
/usr/include/xulrunner-sdk-1.9/unstable/nscore.h:347: error: ‘PRUint32’
does not
 name a type
/usr/include/xulrunner-sdk-1.9/unstable/nscore.h:360: error: ‘PRUint32’
does not
 name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsError.h:314: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nscore.h:424: error: ‘PRUint16’
does not
 name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsID.h:60: error: ‘PRUint32’ does
not na
me a type
/usr/include/xulrunner-sdk-1.9/unstable/nsID.h:61: error: ‘PRUint16’ does
not na
me a type
/usr/include/xulrunner-sdk-1.9/unstable/nsID.h:62: error: ‘PRUint16’ does
not na
me a type
/usr/include/xulrunner-sdk-1.9/unstable/nsID.h:63: error: ‘PRUint8’ does
not nam
e a type
/usr/include/xulrunner-sdk-1.9/unstable/nsID.h:76: error: ‘PRBool’ does not
name
 a type
/usr/include/xulrunner-sdk-1.9/unstable/nsID.h:95: error: ‘PRBool’ does not
name
 a type
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:86: error: ISO
C++ for
bids declaration of ‘nsresult’ with no type
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:86: error: 
‘nsresult’
declared as a ‘virtual’ field
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:86: warning:
‘regparm’
 attribute only applies to function types
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:86: warning:
‘cdecl’ a
ttribute only applies to function types
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:86: error:
expected ‘;
’ before ‘QueryInterface’
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:94: error: ISO
C++ for
bids declaration of ‘nsrefcnt’ with no type
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:94: error: 
‘nsrefcnt’
declared as a ‘virtual’ field
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:94: warning:
‘regparm’
 attribute only applies to function types
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:94: warning:
‘cdecl’ a
ttribute only applies to function types
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:94: error:
expected ‘;
’ before ‘AddRef’
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:103: error: ISO
C++ fo
rbids declaration of ‘nsrefcnt’ with no type
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:103: error:
‘nsrefcnt’
 declared as a ‘virtual’ field
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:103: warning:
‘regparm
’ attribute only applies to function types
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:103: warning: 
‘cdecl’
attribute only applies to function types
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:103: error:
expected ‘
;’ before ‘Release’
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:101: error: ISO C++
forbids de
claration of ‘nsresult’ with no type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:101: error: typedef
‘nsresult’
 is initialized (use __typeof__ instead)
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:101: error: ‘PR_CALLBACK’ 
was
not declared in this scope
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:101: error: 
‘nsGetModuleProc’
was not declared in this scope
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:139: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:153: error: 
‘nsGetModuleProc’
does not name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:196: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:216: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:230: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:243: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:256: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:269: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:297: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:302: error: ‘nsresult’
does no
t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:320: warning: ‘NS_Alloc’
initi
alized and declared ‘extern’
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:320: error: ‘PRSize’ was
not d
eclared in this scope
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:341: error: ‘PRSize’ has
not b
een declared
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:383: warning: 
‘NS_DebugBreak’
initialized and declared ‘extern’
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:383: error: variable or field
‘NS_DebugBreak’ declared void
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:383: error: ‘PRUint32’
was not
 declared in this scope
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:384: error: expected
primary-e
xpression before ‘const’
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:384: error: expected
primary-e
xpression before ‘const’
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:385: error: expected
primary-e
xpression before ‘const’
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:385: error: ‘PRInt32’ was 
not
declared in this scope
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:385: error: initializer
expres
sion list treated as compound expression
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:420: error: ‘PRUint32’
has not
 been declared
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:423: error: ‘PRUint32’
has not
 been declared
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:436: error: ‘nsrefcnt’
has not
 been declared
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:437: error: ‘PRUint32’
has not
 been declared
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:440: error: ‘nsrefcnt’
has not
 been declared
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:463: error: ‘PRBool’ does 
not
name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:466: error: ‘PRBool’ does
not                   name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:550: error: ‘nsresult’
does no                  t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsXPCOM.h:553: error: ‘nsresult’
does no                  t name a type
/usr/include/xulrunner-sdk-1.9/unstable/nsDebug.h:275: error: expected
construct                  or, destructor, or type conversion before ‘void’
/usr/include/xulrunner-sdk-1.9/unstable/nsTraceRefcnt.h:102: error:
expected con                  structor, destructor, or type conversion
before ‘class’
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h: In instantiation
of ‘                  const nsIID nsISupports::COMTypeInfo<int>::kIID’:
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:69:  
instantiated fro                  m here
/usr/include/xulrunner-sdk-1.9/unstable/nsISupportsBase.h:69: error: too
many in                  itializers for ‘const nsIID’
make[3]: *** [chmsee-gecko_utils.o] Error 1
make[3]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/azhi/usb/chm/chmsee-1.0.3'
make: *** [all] Error 2

Original issue reported on code.google.com by yang_zhi0726@163.com on 13 Jan 2009 at 2:44

Attachments:

GoogleCodeExporter commented 9 years ago
你可能没有安装 libnspr4-dev (或者类似的包名), 
当然我也忘记检测这个了。

Original comment by lidaob...@gmail.com on 13 Jan 2009 at 3:55

GoogleCodeExporter commented 9 years ago
刚刚查了一下 ubuntu jaunty 下的 pkg-config, 结果见下, 
都包含了 /usr/include/nspr, 你
帮忙确认一下 RHEL5 下面的情况

$ pkg-config --cflags libxul-embedding
-DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9.0.5/stable 
-I/usr/include/nspr
$ pkg-config --cflags libxul-embedding-unstable
-DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9.0.5/unstable 
-I/usr/include/nspr

Original comment by lidaob...@gmail.com on 13 Jan 2009 at 5:18

GoogleCodeExporter commented 9 years ago
nspr这个rpm包肯定是安装的,我确定,你说的确认我一会试下�
��刚才我用gecko=mozilla make成
功了,也运行起来了,但是当我读chm文件时 就一直报segaument 
fault 段错误 然后这个工具就
非法退出了

Original comment by yang_zhi0726@163.com on 13 Jan 2009 at 6:55

GoogleCodeExporter commented 9 years ago
感觉你这个软件的configure去搜pkg-config 
假如我装了seamonkey(就单独的一个文件夹,点
里面的可执行文件也能运行) pkg-config下没有seamonkey怎么办?

Original comment by yang_zhi0726@163.com on 13 Jan 2009 at 7:01

GoogleCodeExporter commented 9 years ago
还有我系统中明明装了firefox 3 
只不过在pkg-config中没有firefox的配置文件,每次
configure时gecko=firefox总是报You must have either the Mozilla, Firefox, 
Seamonkey or
XulRunner。你能不能说下具体要怎样的配置?firefox2有firefox-de
v这个包 到3就没有dev这
个包了。

Original comment by yang_zhi0726@163.com on 13 Jan 2009 at 7:12

GoogleCodeExporter commented 9 years ago
1. Comment 3 已经转到 http://code.google.com/p/chmsee/issues/detail?id=11

2. 只装 seamonkey 或 firefox 是不行的,必须装对应的开发包. 
firefox 3 不提供开发包的原
因是 xulrunner 已经很好的分离出来了,需要开发的直接使用 
xulrunner-dev

Original comment by lidaob...@gmail.com on 13 Jan 2009 at 7:36

GoogleCodeExporter commented 9 years ago
我基本搞定 你说的那个命令确认
$ pkg-config --cflags libxul-embedding
-DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9.0.5/stable 
$ pkg-config --cflags libxul-embedding-unstable
-DXPCOM_GLUE -fshort-wchar -I/usr/include/xulrunner-1.9.0.5/unstable 

发现据没有nspr这个选项,我直接打开pkg-config下的libxul相关的
pc文件,增加-I/usr
/include/nspr4(注意我用的5.2是nspr4,pkg-config下有nspr.pc,所指��
�目录是/usr/include
/nspr4),然后编译通过,再在ld.conf.so 
下导入libxul的库路径,运行chmsee1.0.3,可以运
行,但是打开chm文件时依然非法退出:
chould not find hcc(反正是xxx) file
segaument fault错误。
我用同样的方法编译chmsee1.0.2(加参数gecko=libxul),最后终于
可以浏览chm文件了。发觉
的确是1.0.3版本的bug

Original comment by yang_zhi0726@163.com on 13 Jan 2009 at 8:15

GoogleCodeExporter commented 9 years ago
帮忙提供一下导致 chmsee 崩溃的 .chm 文件, 
可以在这里粘贴附件,或者发到我的邮箱
lidaobing@gmail.com.

如果不方便提供 .chm 文件,可以贴一下 gdb 产生的 backtrace, 
关于获取 backtrace 的详细
方法可以参考 http://wiki.debian.org/HowToGetABacktrace

Original comment by lidaob...@gmail.com on 13 Jan 2009 at 8:20

GoogleCodeExporter commented 9 years ago
JavaAPI_5.0_CN.chm 太大自己从网上下 chmsee1.0.2无此问题

Original comment by yang_zhi0726@163.com on 13 Jan 2009 at 9:39

GoogleCodeExporter commented 9 years ago
我下载的 JavaAPI_5.0_CN.chm 没有让 chmsee 1.0.3 崩溃, 文件的 MD5 
见下, 能否帮忙生成一
份 backtrace, 多谢。

另外一份生成backtrace 的文档, 感觉更方便一些: 
https://wiki.ubuntu.com/Backtrace

$ md5sum JavaAPI_5.0_CN.chm
3ef6c4c41a3109daafa373614635f1b5  JavaAPI_5.0_CN.chm

Original comment by lidaob...@gmail.com on 13 Jan 2009 at 10:06

GoogleCodeExporter commented 9 years ago
其实不是文档chm的问题 我用chmsee1.0.3 
打开多种chm文件都有此问题,算了我怕麻烦,我现在
下班了

Original comment by yang_zhi0726@163.com on 13 Jan 2009 at 10:12

GoogleCodeExporter commented 9 years ago

Original comment by lidaob...@gmail.com on 13 Jan 2009 at 10:18

GoogleCodeExporter commented 9 years ago
I had a similar issue using xulrunner-1.9.0.5: I installed it in /usr/local and 
there
was a missing "obsolete/protypes.h". Looking in the
/usr/local/include/xulrunner-1.9.0.5/unstable there is no "obsolete" 
subdirectory but
it is present in the "stable" branch. After symlinking "obsolete" in "unstable" 
the
build succeeded.

Original comment by apalop...@gmail.com on 17 Jan 2009 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by lidaob...@gmail.com on 14 Aug 2009 at 11:56