LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1425|回复: 2

Help -- xsim in gentoo

[复制链接]
发表于 2002-11-6 21:34:50 | 显示全部楼层 |阅读模式
bash-2.05a#emerge xcin
...

bash-2.05a#cd db-4.1.24/build_unix
bash-2.05a#../dist/configure --prefix=/usr/local --enable-cxx;make;make install
...

bash-2.05a#cd ../../xsim-0.3.9.4
bash-2.05a#./configure --prefix=/usr/local --with-qt3=/usr/qt/3 --with-qt3-includes=/usr/qt/3/include --with-qt3-libraries=/usr/qt/3/lib --with-cn-locale=gbk  --with-dbd-cxx=/usr/local/lib/ --with-dbd-includes=/usr/local/include --with-dbd-libraries=/usr/local/lib
...
checking for Berkerly DB header... Berkerly DB >=3.2 CXX header found
checking for Berkerly DB library... Berkerly DB >=3.2 CXX library found
...

bash-2.05a#make
make[1]: Entering directory `/tmp/xsim-0.3.9.4/etc'
make[1]: `all' is up to date.
make[1]: Leaving directory `/tmp/xsim-0.3.9.4/etc'
make[1]: Entering directory `/tmp/xsim-0.3.9.4/plugins'
make[2]: Entering directory `/tmp/xsim-0.3.9.4/plugins/IMs'
make[3]: Entering directory `/tmp/xsim-0.3.9.4/plugins/IMs/jianpin'
g++ -c simpleim.cpp -I/tmp/xsim-0.3.9.4/xsim/ -I/tmp/xsim-0.3.9.4/xsim//IMdkit -
I/usr/include/db3 -Wall -O2 -I/usr/X11R6/include -DBDB_VERSION4 -DOS_LINUX
In file included from /usr/include/g++-v32/backward/iostream.h:31,
                 from /usr/include/db3/db_cxx.h:52,
                 from simpleim.h:5,
                 from simpleim.cpp:20:
/usr/include/g++-v32/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples in
clude substituting the <X> header for the <X.h> header for C++ includes, or <sst
ream> instead of the deprecated header <strstream.h>. To disable this warning us
e -Wno-deprecated.
g++ -c simpleimc.cpp -I/tmp/xsim-0.3.9.4/xsim/ -I/tmp/xsim-0.3.9.4/xsim//IMdkit
-Wall -O2 -I/usr/X11R6/include -DBDB_VERSION4 -DOS_LINUX
g++ -c pyphraser.cpp -I/tmp/xsim-0.3.9.4/xsim/ -I/tmp/xsim-0.3.9.4/xsim//IMdkit
-Wall -O2 -I/usr/X11R6/include -DBDB_VERSION4 -DOS_LINUX
g++ -shared -o jianpin.so simpleim.o simpleimc.o pyphraser.o -L/usr/X11R6/lib -L
/usr/local/lib  -ldb_cxx `g++ -print-libgcc-file-name`
cd dict; make
make[4]: Entering directory `/tmp/xsim-0.3.9.4/plugins/IMs/jianpin/dict'
g++ char2db.cpp -o char2db -Wall -O2 -I/usr/X11R6/include -DBDB_VERSION4 -DOS_LI
NUX -L/usr/X11R6/lib -L/usr/local/lib  -ldb_cxx -I/tmp/xsim-0.3.9.4/xsim -I/usr/
include/db3
In file included from /usr/include/g++-v32/backward/iostream.h:31,
                 from /usr/include/db3/db_cxx.h:52,
                 from char2db.cpp:25:
/usr/include/g++-v32/backward/backward_warning.h:32:2: warning: #warning This fi
le includes at least one deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples in
clude substituting the <X> header for the <X.h> header for C++ includes, or <sst
ream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
/tmp/cczF0HcH.o: In function `main':
/tmp/cczF0HcH.o(.text+0x551): undefined reference to `Db:pen(char const*, char
const*, DBTYPE, unsigned, int)'
/tmp/cczF0HcH.o(.text+0x6e6): undefined reference to `Dbt::set_size(unsigned)'
collect2: ld returned 1 exit status
make[4]: *** [char2db] Error 1
make[4]: Leaving directory `/tmp/xsim-0.3.9.4/plugins/IMs/jianpin/dict'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/tmp/xsim-0.3.9.4/plugins/IMs/jianpin'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/tmp/xsim-0.3.9.4/plugins/IMs'
make[1]: *** [all] Error 1
make[1]: Leaving directory `/tmp/xsim-0.3.9.4/plugins'
make: *** [all] Error 1
bash-2.05a#

anybody can tell me how to do ?
It looks like a link error.
发表于 2002-11-6 21:45:18 | 显示全部楼层
configure时有没有出错?
 楼主| 发表于 2002-11-6 22:08:11 | 显示全部楼层

configure pass. but can't make :(. I had installed xsim into mdk9 before

bash-2.05a# ./configure --prefix=/usr/local --with-qt3=/usr/qt/3 --with-qt3-incl
udes=/usr/qt/3/include --with-qt3-libraries=/usr/qt/3/lib --with-cn-locale=gbk -
-with-dbd-cxx=/usr/local/lib/ --with-dbd-includes=/usr/local/include --with-dbd-
libraries=/usr/local/lib
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for ld... ld
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for working malloc... yes
checking return type of signal handlers... void
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for memmove... yes
checking for memset... yes
checking for setlocale... yes
checking for strchr... yes
checking for strstr... yes
checking for Berkerly DB header... Berkerly DB >=3.2 CXX header found
checking for Berkerly DB library... Berkerly DB >=3.2 CXX library found
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xsim/Makefile
config.status: creating xsim/IMdkit/Makefile
config.status: creating plugins/Makefile
config.status: creating plugins/IMs/Makefile
config.status: creating plugins/IMs/jianpin/Makefile
config.status: creating plugins/IMs/jianpin/dict/Makefile
config.status: creating plugins/IMs/wubi/Makefile
config.status: creating plugins/IMs/wubi/dict/Makefile
config.status: creating plugins/IMs/table/Makefile
config.status: creating plugins/IMs/table/dict/Makefile
config.status: creating plugins/Panels/Makefile
config.status: creating plugins/Panels/std/Makefile
config.status: creating plugins/StatusPanels/Makefile
config.status: creating plugins/StatusPanels/std/Makefile
config.status: creating plugins/StatusPanels/kde3/Makefile
config.status: creating plugins/StatusPanels/kde2/Makefile
config.status: creating etc/Makefile
config.status: creating etc/xsimrc
config.status: creating config.h
bash-2.05a#
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表