From xemacs-m  Mon Jan  6 16:26:47 1997
Received: from sundancer.tng.oche.de (root@sundancer.tng.oche.de [194.94.252.29])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id QAA00225 for <xemacs-beta@xemacs.org>; Mon, 6 Jan 1997 16:24:57 -0600 (CST)
Received: by sundancer.tng.oche.de
	id m0vhOUT-0001axC
	(Debian Smail-3.2 1996-Jul-4 #2); Tue, 7 Jan 1997 00:30:01 +0100 (MET)
Received: (qmail 6168 invoked by uid 500); 6 Jan 1997 22:22:42 -0000
To: xemacs-beta@xemacs.org
Subject: Build report: 20.0b34 on Linux 2.0.27
Mime-Version: 1.0 (generated by tm-edit 7.97)
Content-Type: text/plain; charset=US-ASCII
From: Carsten Leonhardt <leo@arioch.tng.oche.de>
Date: 06 Jan 1997 23:22:41 +0100
Message-ID: <m3sp4eh2a6.fsf@arioch.tng.oche.de>
Lines: 105
X-Mailer: Red Gnus v0.76/XEmacs 20.0

Linux 2.0.27, gcc 2.7.2.1, XFree86 3.2

When I first tried to compile with support for Canna, I got errors
while linking temacs (see below). The solution was to also
link with the "RKC" library which also comes with Canna (I patched
src/Makefile.in.in to achieve this, diff below).

I ran configure like this:

configure \
i586-leo-linux \
--extra-verbose \
--cflags "-g -O4 -m486" \
--dynamic \
--with-toolbars=no \
--with-sound=native \
--with-png=yes \
--with-mule \
--with-canna \
--site-includes=/usr/local/canna/include \



Configured for `i586-leo-linux'.

  Where should the build process find the source code?    /mnt/adisk/src/xemacs-20.0-b34
  What installation prefix should install use?            /usr/local
  What operating system and machine description files should XEmacs use?
        `s/linux.h' and `m/intel386.h'
  What compiler should XEmacs be built with?              gcc -g -O4 -m486
  Should XEmacs use the GNU version of malloc?            yes
  Should XEmacs use the relocating allocator for buffers? yes
  What window system should XEmacs use?                   x11
  Where do we find X Windows header files?                /usr/X11R6/include
  Where do we find X Windows libraries?                   /usr/X11R6/lib
  Additional header files:                                /usr/local/canna/include
  Compiling in support for XAUTH.
  Compiling in support for XPM.
  Compiling in support for X-Face headers.
  Compiling in support for GIF image conversion.
  Compiling in support for JPEG image conversion.
  Compiling in support for PNG image conversion.
  Compiling in native sound support.
  Compiling in support for Berkeley DB.
  Compiling in support for GNU DBM.
  Compiling in Mule (multi-lingual) support.
  Compiling in support for Canna on Mule.
  Using the Lucid menubar.
  Using the Lucid scrollbar.
  Using the Athena dialog boxes.
  Compiling in extra code for debugging.
  Compiling in code for checking XEmacs memory usage.


Error messages:

mule-canna.o: In function `Fcanna_henkan_begin':
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:732: undefined reference to `RkBgnBun'
mule-canna.o: In function `kanjiYomiList':
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:749: undefined reference to `RkGoTo'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:750: undefined reference to `RkGetKanji'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:752: undefined reference to `RkGetYomi'
mule-canna.o: In function `Fcanna_henkan_next':
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:782: undefined reference to `RkGoTo'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:783: undefined reference to `RkGetKanjiList'
mule-canna.o: In function `Fcanna_bunsetu_henkou':
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:816: undefined reference to `RkGoTo'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:818: undefined reference to `RkResize'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:749: undefined reference to `RkGoTo'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:750: undefined reference to `RkGetKanji'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:752: undefined reference to `RkGetYomi'
mule-canna.o: In function `Fcanna_henkan_kakutei':
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:830: undefined reference to `RkGoTo'
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:831: undefined reference to `RkXfer'
mule-canna.o: In function `Fcanna_henkan_end':
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:844: undefined reference to `RkEndBun'
mule-canna.o: In function `Fcanna_henkan_quit':
/mnt/adisk/src/xemacs-20.0-b34/src/./mule-canna.c:857: undefined reference to `RkEndBun'
make[1]: *** [temacs] Error 1
make[1]: Leaving directory `/mnt/adisk/src/xemacs-20.0-b34/src'
make: *** [src] Error 2


Patch:

diff -c /mnt/adisk/src/xemacs-20.0-b34/src/Makefile.in.in\~ /mnt/adisk/src/xemacs-20.0-b34/src/Makefile.in.in
*** /mnt/adisk/src/xemacs-20.0-b34/src/Makefile.in.in~	Fri Jan  3 04:10:44 1997
--- /mnt/adisk/src/xemacs-20.0-b34/src/Makefile.in.in	Mon Jan  6 22:56:28 1997
***************
*** 553,559 ****
  # ifdef HAVE_CANNA
  #  define CANNA_OBJS mule-canna.o
  #  define CANNA_OBJ_SRC ${muledirfromsrc}/mule-canna.c
! #  define LIB_CANNA -lcanna
  # else
  #  define CANNA_OBJS
  #  define CANNA_OBJ_SRC
--- 553,559 ----
  # ifdef HAVE_CANNA
  #  define CANNA_OBJS mule-canna.o
  #  define CANNA_OBJ_SRC ${muledirfromsrc}/mule-canna.c
! #  define LIB_CANNA -lcanna -lRKC
  # else
  #  define CANNA_OBJS
  #  define CANNA_OBJ_SRC

