主题 : skipping incompatible ...libpcre.so 复制链接 | 浏览器收藏 | 打印
吸血姜丝
级别: 新手上路
UID: 13029
精华: 0
发帖: 39
金钱: 195 两
威望: 39 点
综合积分: 78 分
注册时间: 2010-01-17
最后登录: 2010-11-19
楼主  发表于: 2010-06-01 20:20

 skipping incompatible ...libpcre.so

搞了一天konqueror /e ,始终处理不了这问题

环境如下:
RHEL4
CROSS 3.4.4
QT/E 2.3.12
....

错误如下

(log信息)
configure:30470: checking for pcreposix
configure:30478: checking for pcre-config
configure:30529: result: /usr/bin/pcre-config
configure:30562: arm-linux-gcc -o conftest -ansi -W -Wall -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -DNDEBUG -O2 -DQWS -D_REENTRANT -I/usr/include/pcre -I/build_qt/qtopia-arm/konq_install/include -I/build_qt/qtopia-arm/qt2/include -I/usr/local/arm/3.4.4/include -L/build_qt/qtopia-arm/qt2/lib -L${exec_prefix}/lib -L/usr/local/arm/3.4.4/lib conftest.c -L/usr/lib -lpcre
-L/usr/lib -lpcreposix -lpcre >&5
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/lib/libpcre.so when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/lib/libpcre.a when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.4/arm-linux/bin/../lib/libpcre.so when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: skipping incompatible /usr/local/arm/3.4.4/arm-linux/bin/../lib/libpcre.a when searching for -lpcre
/usr/local/arm/3.4.4/lib/gcc/arm-linux/3.4.4/../../../../arm-linux/bin/ld: cannot find -lpcre
collect2: ld returned 1 exit status
configure:30565: $? = 1


(make 信息)
grep: error while loading shared libraries: /usr/lib/libpcre.so.0: ELF file OS ABI invalid
libtool: ignoring unknown tag CXX
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++
In file included from kdebug.cpp:48:
../../config.h:548: error: declaration of C function `int getdomainname(char*, int)' conflicts with
../../config.h:425: error: previous declaration `int getdomainname(char*, unsigned int)' here
../../config.h:556: error: declaration of C function `int gethostname(char*, int)' conflicts with
../../config.h:434: error: previous declaration `int gethostname(char*, unsigned int)' here
make[4]: *** [kdebug.lo] 错误 1
make[4]: Leaving directory `/build_qt/konq/konq-embed/dropin'
[ 此帖被steve710431在2010-06-01 20:25重新编辑 ]
吸血姜丝
级别: 新手上路
UID: 13029
精华: 0
发帖: 39
金钱: 195 两
威望: 39 点
综合积分: 78 分
注册时间: 2010-01-17
最后登录: 2010-11-19
1楼  发表于: 2010-06-01 20:23
网上关于libpcre的资料很少,我也尝试装pcre-8.02,可惜未见效果。请问大大们,给点提点
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2010-06-01 21:49
-L/usr/lib -lpcre

你不应该去尝试链接/usr/lib目录下的libpcre.so, 那不是在ARM平台的开发板上用的。所有/usr/lib/目录下的共享库都是给X86平台的PC用的。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
吸血姜丝
级别: 新手上路
UID: 13029
精华: 0
发帖: 39
金钱: 195 两
威望: 39 点
综合积分: 78 分
注册时间: 2010-01-17
最后登录: 2010-11-19
3楼  发表于: 2010-06-01 23:31
引用第2楼kasim于2010-06-01 21:49发表的  :

你不应该去尝试链接/usr/lib目录下的libpcre.so, 那不是在ARM平台的开发板上用的。所有/usr/lib/目录下的共享库都是给X86平台的PC用的。



谢谢版主提点。

因为原本没有for arm 的pcref库,所以才加那个路径上去的试试。刚搞了个pcre库,算是解决那问题了。但是。。哎。。又有下一波问题。。。。

ustring.h: In member function `unsigned char& KJS::UCharReference::low() const':ustring.h:157: error: cannot bind packed field `((const KJS::UCharReference*)this)->KJS::UCharReference::ref()->KJS::UChar::lo' to `unsigned char&'
ustring.h: In member function `unsigned char& KJS::UCharReference::high() const':
ustring.h:161: error: cannot bind packed field `((const KJS::UCharReference*)this)->KJS::UCharReference::ref()->KJS::UChar::hi' to `unsigned char&'
make[4]: *** [kjs.lo] 错误 1
级别: 新手上路
UID: 53578
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2011-08-11
最后登录: 2012-03-01
4楼  发表于: 2012-02-23 11:34

 回 2楼(kasim) 的帖子

请问那该如何解决这个问题。。。小弟遇到了同样的问题