From xemacs-m  Thu Jan  9 03:03:09 1997
Received: from draco.jsk.t.u-tokyo.ac.jp (draco.jsk.t.u-tokyo.ac.jp [133.11.96.217])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with SMTP
	  id DAA15949 for <xemacs-beta@xemacs.org>; Thu, 9 Jan 1997 03:03:07 -0600 (CST)
Received: from localhost (hajime@localhost) by draco.jsk.t.u-tokyo.ac.jp (8.6.12+2.5Wb7/3.4Wbeta6-95083023) with SMTP id SAA05856; Thu, 9 Jan 1997 18:01:31 +0900
From: Hajime Saitou <hajime@jsk.t.u-tokyo.ac.jp>
Message-Id: <199701090901.SAA05856@draco.jsk.t.u-tokyo.ac.jp>
X-Authentication-Warning: draco.jsk.t.u-tokyo.ac.jp: Host localhost didn't use HELO protocol
To: Kazuyuki IENAGA <ienaga@jsys.co.jp>
CC: xemacs-beta@xemacs.org
Subject: Re: Canna for 20.0b34 (was: Re: Build report: 20.0b34 on Linux 2.0.27) 
In-reply-to: Your message of "09 Jan 97 10:38:09 +0900."
             <rysg20biq66.fsf@metaph.jsys.co.jp> 
Date: Thu, 09 Jan 97 18:01:30 +0900


> I tested the code above both on the v3.2 and v3.5beta.
> The former is on SunOS4.1.3 and the later is on Solaris2.5.
> 
> [SunOS4.1.3]
> % gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.7.1/specs
> gcc version 2.7.1
> % gcc -I/usr/local/canna/include -lcanna -o test test.c
> 
> [Solaris2.5]
> % gcc -v
> Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.1/specs
> gcc version 2.7.2.1
> % gcc -I/usr/local/canna/include -lcanna -lsocket -lnsl -o test /tmp/test.c
> 
> 
> No problem, no error messages there.
> I donot have Linux env, but I think the result would be same.
> So that, i think you'd better to re-compile Canna3.2.2 or Canna3.5b2.

On a linux with Canna-3.2.2 the test above fails.

p1:minerva<39> gcc -I/usr/local/canna/include test.c -lcanna
/tmp/cca019301.o: In function `main':
/tmp/cca019301.o(.text+0xb): undefined reference to `RkGoTo'
p1:minerva<40> gcc -I/usr/local/canna/include test.c -lcanna -lRKC

gcc is version 2.7.2. But the strange thing is, it compiled fine the
first time. I removed temacs and tried again. This time I got a lot of
errors.

------------
mule-canna.o: In function `Fcanna_henkan_begin':
mule-canna.o(.text+0xb77): undefined reference to `RkBgnBun'
mule-canna.o: In function `kanjiYomiList':
mule-canna.o(.text+0xbbf): undefined reference to `RkGoTo'
mule-canna.o(.text+0xbd2): undefined reference to `RkGetKanji'
mule-canna.o(.text+0xbf0): undefined reference to `RkGetYomi'
mule-canna.o: In function `Fcanna_henkan_next':
mule-canna.o(.text+0xcf8): undefined reference to `RkGoTo'
mule-canna.o(.text+0xd0d): undefined reference to `RkGetKanjiList'
mule-canna.o: In function `Fcanna_bunsetu_henkou':
mule-canna.o(.text+0xe75): undefined reference to `RkGoTo'
mule-canna.o(.text+0xedd): undefined reference to `RkResize'
mule-canna.o(.text+0xf18): undefined reference to `RkGoTo'
mule-canna.o(.text+0xf2c): undefined reference to `RkGetKanji'
mule-canna.o(.text+0xf4f): undefined reference to `RkGetYomi'
mule-canna.o: In function `Fcanna_henkan_kakutei':
mule-canna.o(.text+0x100d): undefined reference to `RkGoTo'
mule-canna.o(.text+0x1019): undefined reference to `RkXfer'
mule-canna.o: In function `Fcanna_henkan_end':
mule-canna.o(.text+0x105a): undefined reference to `RkEndBun'
mule-canna.o: In function `Fcanna_henkan_quit':
mule-canna.o(.text+0x109a): undefined reference to `RkEndBun'
[1]  + 1971 exit 2     make >& make.log.1
------------

I'm at a loss. What happened?

Hajime Saito

