|
XCIN Mail-list
|
| Indexed By Date: [Previous] [Next] | Indexed By Thread: [Previous] [Next] |
| Subject: | Re: [Update] xcin-2.5.2-pre3.diff3.gz |
| From: | georgeo@NotForMail.com.tw (George O) |
| Organization: | George Garden |
| Date: | 5 Jul 2000 09:51:58 GMT |
| To: | xcin@tlug.sinica.edu.tw |
| Reply-To: | xcin@linux.org.tw |
On 5 Jul 2000 08:14:34 +0800, thhsieh@linux.org.tw wrote:
居士大人您好,小弟剛剛的測試結果如下:
小弟先移除原先的 libtabe 與 xcin。
之後,抓取 libtabe-0.1-5.tar.gz。其編譯選項為
./configure --enable-shared
順利安裝完成後,執行 "ldconfig"。
接著,解開 xcin-2.5.2-pre3.tar.gz 並 patch
xcin-2.5.2-pre3.diff3.gz。其編譯選項為
./configure \
--with-localedir=/usr/share/locale \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib \
--with-localedir=/usr/X11R6/lib/X11/locale \
--with-tabeinc=/usr/local/include --with-tabelib=/usr/local/lib
小弟的 gcc 為
unixhouse:/usr/src/temp/xcin-2.5# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>請您將 compile FrameMgr.c 時的 gcc 命令 post 出來,
>同時也將 xcin-2.5/src/lib/IMdkit/Makefile 也 post 出來。並告訴我
>您用來做 configure 所用的參數。
Compile FrameMgr.c 時的 gcc 命令如下
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o Frame
Mgr.o FrameMgr.c
FrameMgr.c:29: X11/Xlibint.h: No such file or directory
In file included from FrameMgr.c:31:
FrameMgr.h:32: X11/Xmd.h: No such file or directory
FrameMgr.h:33: X11/Xlib.h: No such file or directory
make[3]: *** [FrameMgr.o] Error 1
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/lib/IMdkit'
make[2]: *** [subsys] Error 2
make[2]: Leaving directory `/usr/src/temp/xcin-2.5/src/lib'
似乎是少了一個 -I/usr/X11R6/include,是不是這樣?
xcin-2.5/src/lib/IMdkit/Makefile 的內容為:
# Generated automatically from Makefile.in by configure.
CC = gcc
CFLAGS = -Wall -fsigned-char -O2
CPPFLAGS =
DEFS = -DHAVE_CONFIG_H
RANLIB = ranlib
LN_S = ln -s
x_includes = -I-I/usr/X11R6/include
extra_inc =
extra_lib =
intl_inc =
srcdir = .
top_srcdir = ../../..
prefix = /usr/local
exec_prefix = ${prefix}
xcininc = -I$(top_srcdir)/src/include
TARGET = libXimd.a
INC = $(xcininc) $(extra_inc) $(intl_inc)
SRC = FrameMgr.c IMValues.c i18nIMProto.c i18nPtHdr.c i18nX.c IMConn.c \
i18nAttr.c i18nIc.c IMMethod.c i18nClbk.c i18nMethod.c i18nUtil.c
OBJ = FrameMgr.o IMValues.o i18nIMProto.o i18nPtHdr.o i18nX.o IMConn.o \
i18nAttr.o i18nIc.o IMMethod.o i18nClbk.o i18nMethod.o i18nUtil.o
.c.o:
$(CC) $(CFLAGS) $(DEFS) $(INC) -c -o $@ $<
all: $(TARGET)
$(TARGET): $(OBJ)
ar -rc $@ $(OBJ)
if [ -n "$(RANLIB)" ]; then $(RANLIB) $(TARGET); fi
rm -f ../$(TARGET)
( cd ..; $(LN_S) IMdkit/$(TARGET) . )
FrameMgr.o: FrameMgr.c FrameMgr.h
IMValues.o: IMValues.c IMdkit.h
i18nIMProto.o: i18nIMProto.c FrameMgr.h
i18nPtHdr.o: i18nPtHdr.c IMdkit.h Xi18n.h XimProto.h XimFunc.h
i18nX.o: i18nX.c FrameMgr.h IMdkit.h Xi18n.h XimProto.h Xi18nX.h XimFunc.h
IMConn.o: IMConn.c IMdkit.h
i18nAttr.o: i18nAttr.c IMdkit.h Xi18n.h XimProto.h XimFunc.h
i18nIc.o: i18nIc.c IMdkit.h Xi18n.h XimProto.h FrameMgr.h XimFunc.h
IMMethod.o: IMMethod.c IMdkit.h
i18nClbk.o: i18nClbk.c IMdkit.h Xi18n.h XimProto.h FrameMgr.h XimFunc.h
i18nMethod.o: i18nMethod.c FrameMgr.h IMdkit.h Xi18n.h XimFunc.h
i18nUtil.o: i18nUtil.c IMdkit.h Xi18n.h XimProto.h FrameMgr.h XimFunc.h
.PHONY: clean distclean
clean:
rm -f $(OBJ) $(TARGET) core
distclean: clean
rm -f Makefile .depend
問題是出在 "x_includes = -I-I/usr/X11R6/include" 這兒嗎?
>您必須昇級您的 libtabe, 請試試最新版:
>ftp://xcin.linux.org.tw/pub/xcin/libtabe/devel/libtabe-0.1-5.tar.gz
已經事先升級並執行 ldconfig。當然,/etc/ld.so.conf 內容包含
/usr/local/lib
而 /usr/local/lib/libtabe* 也位於該目錄底下。
小弟執行 "make >& error.log",其 error.log 完整內容如下:
( cd src; make )
make[1]: Entering directory `/usr/src/temp/xcin-2.5/src'
make[2]: Entering directory `/usr/src/temp/xcin-2.5/src/lib'
make[3]: Entering directory `/usr/src/temp/xcin-2.5/src/lib/xcintool'
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o perr.o perr.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o open_file.o open_file.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o open_data.o open_data.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o copy_file.o copy_file.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o check_file_exist.o check_file_exist.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o check_version.o check_version.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o get_line.o get_line.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o get_word.o get_word.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o set_data.o set_data.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o strcmp_wild.o strcmp_wild.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o xcin_rc.o xcin_rc.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o set_locale.o set_locale.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o wchs_to_mbs.o wchs_to_mbs.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o wchs_len.o wchs_len.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o stable_sort.o stable_sort.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o debug.o debug.c
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o snprintf.o snprintf.c
ar -rc libxcintool.a perr.o open_file.o open_data.o copy_file.o check_file_exist.o check_version.o get_line.o get_word.o set_data.o strcmp_wild.o xcin_rc.o set_locale.o wchs_to_mbs.o wchs_len.o stable_sort.o debug.o snprintf.o
if [ -n "ranlib" ]; then ranlib libxcintool.a; fi
rm -f ../libxcintool.a
( cd ..; ln -s xcintool/libxcintool.a . )
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/lib/xcintool'
make[3]: Entering directory `/usr/src/temp/xcin-2.5/src/lib/siod'
gcc -Wall -fsigned-char -O2 -I../../../src/include -DHAVE_CONFIG_H -Dunix -c -o slib.o slib.c
gcc -Wall -fsigned-char -O2 -I../../../src/include -DHAVE_CONFIG_H -Dunix -c -o sliba.o sliba.c
ar -rc libsiod.a slib.o sliba.o
if [ -n "ranlib" ]; then ranlib libsiod.a; fi
rm -f ../libsiod.a
( cd ..; ln -s siod/libsiod.a . )
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/lib/siod'
make[3]: Entering directory `/usr/src/temp/xcin-2.5/src/lib/IMdkit'
gcc -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I../../../src/include -c -o FrameMgr.o FrameMgr.c
FrameMgr.c:29: X11/Xlibint.h: No such file or directory
In file included from FrameMgr.c:31:
FrameMgr.h:32: X11/Xmd.h: No such file or directory
FrameMgr.h:33: X11/Xlib.h: No such file or directory
make[3]: *** [FrameMgr.o] Error 1
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/lib/IMdkit'
make[2]: *** [subsys] Error 2
make[2]: Leaving directory `/usr/src/temp/xcin-2.5/src/lib'
make[2]: Entering directory `/usr/src/temp/xcin-2.5/src/Cinput'
make[3]: Entering directory `/usr/src/temp/xcin-2.5/src/Cinput/zh_hex'
gcc -c -fPIC -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -o zh_hex.o zh_hex.c
gcc -shared -Wl,-soname,zh_hex.so -o zh_hex.so zh_hex.o
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/Cinput/zh_hex'
make[3]: Entering directory `/usr/src/temp/xcin-2.5/src/Cinput/gen_inp'
gcc -c -fPIC -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -DHAVE_CONFIG_H -o gen_inp.o gen_inp.c
gcc -shared -Wl,-soname,gen_inp.so -o gen_inp.so gen_inp.o
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/Cinput/gen_inp'
make[3]: Entering directory `/usr/src/temp/xcin-2.5/src/Cinput/bimsphone'
gcc -c -fPIC -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -I/usr/local/include -DHAVE_CONFIG_H -o bimsphone.o bimsphone.c
gcc -c -fPIC -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -I/usr/local/include -DHAVE_CONFIG_H -o bimspinyin.o bimspinyin.c
gcc -shared -Wl,-soname,bimsphone.so -o bimsphone.so bimsphone.o bimspinyin.o
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/Cinput/bimsphone'
make[3]: Entering directory `/usr/src/temp/xcin-2.5/src/Cinput/im_comm'
gcc -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -c -o ascii_wb.o ascii_wb.c
gcc -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -c -o keymap.o keymap.c
gcc -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -c -o charcode.o charcode.c
gcc -Wall -fsigned-char -O2 -I../../../src/include -I/usr/X11R6/include -c -o qphrase.o qphrase.c
ar -rc libim_comm.a *.o
if [ -n "ranlib" ]; then ranlib libim_comm.a; fi
rm -f ../../lib/libim_comm.a
( cd ../../lib; ln -s ../Cinput/im_comm/libim_comm.a . )
make[3]: Leaving directory `/usr/src/temp/xcin-2.5/src/Cinput/im_comm'
make[2]: Leaving directory `/usr/src/temp/xcin-2.5/src/Cinput'
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o xcin_main.o xcin_main.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o module.o module.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o gui.o gui.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o xim.o xim.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o xim_IC.o xim_IC.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o fkey.o fkey.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o gui_main.o gui_main.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o gui_menusel.o gui_menusel.c
gcc -c -Wall -fsigned-char -O2 -DHAVE_CONFIG_H -I/usr/X11R6/include -I../src/include -o gui_overspot.o gui_overspot.c
gcc -o xcin xcin_main.o module.o gui.o xim.o xim_IC.o fkey.o gui_main.o gui_menusel.o gui_overspot.o -L../src/lib -lXimd -lim_comm -lxcintool -lsiod -L/usr/X11R6/lib -lX11 -ldl -rdynamic -lm
/usr/i386-slackware-linux/bin/ld: cannot open -lXimd: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [xcin] Error 1
make[1]: Leaving directory `/usr/src/temp/xcin-2.5/src'
make: *** [all] Error 2
有勞您費心了,謝謝。
--
George O
To Unsubscribe: send mail to majordomo@linux.org.tw
with "unsubscribe xcin" in the body of the message
| Indexed By Date | Previous: |
Re: [Update] xcin-2.5.2-pre3.diff3.gz From: thhsieh@linux.org.tw |
|---|---|---|
| Next: |
傑克邀大家來聽好音樂!!gg From: ghjhkk@yahoo.com |
|
| Indexed By Thread | Previous: |
Re: [Update] xcin-2.5.2-pre3.diff3.gz From: thhsieh@linux.org.tw |
| Next: |
Re: [Update] xcin-2.5.2-pre3.diff3.gz From: thhsieh@linux.org.tw |