LinuxSir.cn,穿越时空的Linuxsir!

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

有谁在gentoo 下成功安装了zhcon

[复制链接]
发表于 2002-12-21 21:19:34 | 显示全部楼层 |阅读模式
编译老通不过
发表于 2002-12-21 21:39:55 | 显示全部楼层
那个地方编译没通过,说一下
发表于 2002-12-21 21:40:58 | 显示全部楼层
把编译错误贴出来,对于安装zhcon的问题,我和laugher兄,tram兄这两天正在讨论。
发表于 2002-12-21 23:11:10 | 显示全部楼层

我是编译没通过

干脆装了几个rpm包,现在zhcon用的好好的
 楼主| 发表于 2002-12-21 23:35:02 | 显示全部楼层
这是config 看起来都正常



localhost zhcon-0.2.1 # ./configure
loading cache ./config.cache
checking for non-GNU ld... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for a BSD compatible install... (cached) /bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
x86 platform detected,compile with VGA support
checking for gawk... (cached) gawk
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for c++... (cached) c++
checking whether the C++ compiler (c++  ) works... yes
checking whether the C++ compiler (c++  ) is a cross-compiler... no
checking whether we are using GNU C++... (cached) yes
checking whether c++ accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for a BSD compatible install... /bin/install -c
checking whether ln -s works... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for ranlib... (cached) ranlib
checking for shared library run path origin... (cached) done
checking for strerror in -lcposix... (cached) no
checking for ANSI C header files... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for working alloca.h... (cached) yes
checking for alloca... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking whether we are using the GNU C Library 2.1 or newer... (cached) yes
checking for iconv... (cached) yes
checking for msgfmt... (cached) /usr/bin/msgfmt
checking for gmsgfmt... (cached) /usr/bin/msgfmt
checking for xgettext... (cached) /usr/bin/xgettext
checking for msgmerge... (cached) /usr/bin/msgmerge
checking for argz.h... (cached) yes
checking for limits.h... (cached) yes
checking for locale.h... (cached) yes
checking for nl_types.h... (cached) yes
checking for malloc.h... (cached) yes
checking for stddef.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for feof_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for getcwd... (cached) yes
checking for getegid... (cached) yes
checking for geteuid... (cached) yes
checking for getgid... (cached) yes
checking for getuid... (cached) yes
checking for mempcpy... (cached) yes
checking for munmap... (cached) yes
checking for putenv... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for stpcpy... (cached) yes
checking for strcasecmp... (cached) yes
checking for strdup... (cached) yes
checking for strtoul... (cached) yes
checking for tsearch... (cached) yes
checking for __argz_count... (cached) yes
checking for __argz_stringify... (cached) yes
checking for __argz_next... (cached) yes
checking for iconv declaration... (cached)
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, ch
ar * *outbuf, size_t *outbytesleft);
checking for nl_langinfo and CODESET... (cached) yes
checking for LC_MESSAGES... (cached) yes
checking for bison... (cached) bison
checking version of bison... 1.35, ok
checking whether NLS is requested... yes
checking whether included gettext is requested... no
checking for GNU gettext in libc... (cached) yes
checking for forkpty in -lutil... (cached) yes
checking for main in -ldl... (cached) yes
checking for main in -lpth... (cached) no
checking for main in -limmclient... (cached) no
checking for main in -limm_server... (cached) no
checking for gpm.h... (cached) no
checking for main in -lgpm... (cached) no
checking for ggi/ggi.h... (cached) no
checking for main in -lggi... (cached) no
checking for fcntl.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ioctl.h... (cached) yes
checking for termios.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working const... (cached) yes
checking for inline... (cached) inline
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for getpagesize... (cached) yes
checking for working mmap... (cached) yes
checking for memmove... (cached) yes
checking for memset... (cached) yes
creating ./config.status
creating Makefile
creating intl/Makefile
creating po/Makefile.in
creating doc/Makefile
creating doc/zhcon.1
creating debian/Makefile
creating tools/Makefile
creating font/Makefile
creating input/Makefile
creating src/Makefile
creating src/display/Makefile
creating config.h
config.h is unchanged
creating po/POTFILES
creating po/Makefile

Configuration:
    Target system:             i686-pc-linux-gnu
    Source code location:      .
    C++ Compiler:              c++
    C++ Compiler flags:        -O2 -DNDEBUG -funsigned-char -Wall
    C   Compiler:              gcc
    C   Compiler flags:        -O2 -DNDEBUG -funsigned-char -Wall
    VGA support:               yes
    gpm moues support:         no
    libggi support:            no
    unicon support:            no
    zhcon binary dir:          /usr/local/bin
    zhcon files dir:           /usr/local/lib/zhcon

Config complete,now type make to build zhcon.
Good Luck!
 楼主| 发表于 2002-12-21 23:35:40 | 显示全部楼层
localhost zhcon-0.2.1 # make
make  all-recursive
make[1]: Entering directory `/home/zhcon/zhcon-0.2.1'
Making all in src
make[2]: Entering directory `/home/zhcon/zhcon-0.2.1/src'
Making all in display
make[3]: Entering directory `/home/zhcon/zhcon-0.2.1/src/display'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/zhcon/zhcon-0.2.1/src/display'
make[3]: Entering directory `/home/zhcon/zhcon-0.2.1/src'
c++  -O2 -DNDEBUG -funsigned-char -Wall -Wl,-rpath=/usr/lib/unicon -o zhcon  -L/usr/lib/unicon  basefont.o big52gbdecoder.o big5decoder.o configfile.o console.o gb2big5decoder.o gbdecoder.o gbkdecoder.o graphdev.o hzdecoder.o jisdecoder.o kscdecoder.o main.o window.o winime.o zhcon.o overspotclient.o nativeinputserver.o inputclient.o inputmanager.o inputserver.o candilist.o uniconinputserver.o configserver.o nativebarclient.o mouse.o display/libdisplay.a -ldl -lutil  -L/usr/lib/unicon -L/usr/local/lib
zhcon.o(.text+0x1211): In function `Zhcon::InitTty()':
: undefined reference to `tgetent'
zhcon.o(.text+0x124d): In function `Zhcon::InitTty()':
: undefined reference to `tgetstr'
zhcon.o(.text+0x1262): In function `Zhcon::InitTty()':
: undefined reference to `tgetstr'
zhcon.o(.text+0x1277): In function `Zhcon::InitTty()':
: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[3]: *** [zhcon] 错误 1
make[3]: Leaving directory `/home/zhcon/zhcon-0.2.1/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/zhcon/zhcon-0.2.1/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/zhcon/zhcon-0.2.1'
make: *** [all-recursive-am] 错误 2
发表于 2002-12-21 23:45:08 | 显示全部楼层
laughter和kj501两位前两天在这方面进行了很多研究,你的问题和我是一样的,照他们的方法就行了。
http://www.linuxsir.net/bbs/show ... amp;highlight=zhcon
发表于 2002-12-22 08:47:38 | 显示全部楼层
最初由 mars_diy 发布
localhost zhcon-0.2.1 # make
make  all-recursive
make[1]: Entering directory `/home/zhcon/zhcon-0.2.1'
Making all in src
make[2]: Entering directory `/home/zhcon/zhcon-0.2.1/src'
Making all in display
make[3]: Entering directory `/home/zhcon/zhcon-0.2.1/src/display'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/zhcon/zhcon-0.2.1/src/display'
make[3]: Entering directory `/home/zhcon/zhcon-0.2.1/src'
c++  -O2 -DNDEBUG -funsigned-char -Wall -Wl,-rpath=/usr/lib/unicon -o zhcon  -L/usr/lib/unicon  basefont.o big52gbdecoder.o big5decoder.o configfile.o console.o gb2big5decoder.o gbdecoder.o gbkdecoder.o graphdev.o hzdecoder.o jisdecoder.o kscdecoder.o main.o window.o winime.o zhcon.o overspotclient.o nativeinputserver.o inputclient.o inputmanager.o inputserver.o candilist.o uniconinputserver.o configserver.o nativebarclient.o mouse.o display/libdisplay.a -ldl -lutil  -L/usr/lib/unicon -L/usr/local/lib
zhcon.o(.text+0x1211): In function `Zhcon::InitTty()':
: undefined reference to `tgetent'
zhcon.o(.text+0x124d): In function `Zhcon::InitTty()':
: undefined reference to `tgetstr'
zhcon.o(.text+0x1262): In function `Zhcon::InitTty()':
: undefined reference to `tgetstr'
zhcon.o(.text+0x1277): In function `Zhcon::InitTty()':
: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[3]: *** [zhcon] 错误 1
make[3]: Leaving directory `/home/zhcon/zhcon-0.2.1/src'
make[2]: *** [all-recursive] 错误 1
make[2]: Leaving directory `/home/zhcon/zhcon-0.2.1/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/zhcon/zhcon-0.2.1'
make: *** [all-recursive-am] 错误 2

碰到这个问题,办法很简单,你直接用鼠标把错误提示中的这部分复制下来,
c++ -O2 -DNDEBUG -funsigned-char -Wall -Wl,-rpath=/usr/lib/unicon -o zhcon -L/usr/lib/unicon basefont.o big52gbdecoder.o big5decoder.o configfile.o console.o gb2big5decoder.o gbdecoder.o gbkdecoder.o graphdev.o hzdecoder.o jisdecoder.o kscdecoder.o main.o window.o winime.o zhcon.o overspotclient.o nativeinputserver.o inputclient.o inputmanager.o inputserver.o candilist.o uniconinputserver.o configserver.o nativebarclient.o mouse.o display/libdisplay.a -ldl -lutil -L/usr/lib/unicon -L/usr/local/lib
进入zhcon下的src目录,粘贴后进行编辑,在里面加上-lcurses,就象这样:
...display/libdisplay.a -ldl -lutil -lcurses -L/usr/lib/unicon -L/usr/local/lib
回车,如果通过,就返回到zhcon下继续执行 make  就行了。这是最方便的做法。如果还是不行,就只有修改zhcon的src目录下的Makefile了。
 楼主| 发表于 2002-12-22 14:45:29 | 显示全部楼层
ok了,谢谢
发表于 2005-12-3 19:19:36 | 显示全部楼层
为什么这么处理,能否详细请说明一下?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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