Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xjdic



>>>>> "Shige" == Shige Abe <sabe@example.com> writes:


    Shige> Has anyone ever got this to work under Linux?  It compiles
    Shige> ok, but I get a segmentation fault whenever its run.

Yes, I've got it going. I did get a seg fault when I first compiled
it. I setup DEFAULT_DICDIR in xjdic.h. Unfortunately, this is not used
in exjdxgen.c and xjdxgen.c. The following patch fixes that. I think
you define .xdirrc, you won't have this problem.

Hope this helps,

	Andy

*** exjdxgen.c.org      Mon Sep 23 02:06:48 1996
--- exjdxgen.c  Mon Sep 23 02:08:38 1996
***************
*** 26,35 ****
  #include <ctype.h>
  #include <string.h>
  
! #define TRUE 1
! #define FALSE 0
  #define EXLIM 100
- #define DEFAULT_DICDIR ""    /* could be: "/usr/local/lib/xjdic"
*/
  
  unsigned char *db;
  unsigned char ENVname[50];
--- 26,34 ----
  #include <ctype.h>
  #include <string.h>
  
! #include "xjdic.h"
! 
  #define EXLIM 100
  
  unsigned char *db;
  unsigned char ENVname[50];


*** xjdxgen.c.org       Mon Sep 23 01:59:54 1996
--- xjdxgen.c   Mon Sep 23 02:04:41 1996
***************
*** 26,38 ****
  /*#include <stdlib.h>*/
  #include <ctype.h>
  #include <string.h>
  
  #define TRUE 1
  #define FALSE 0
  #define SPTAG '@'
! #define EXLIM 100
! #define DEFAULT_DICDIR ""    /* could be: "/usr/local/lib/xjdic"
*/
  
  unsigned char *db;
  unsigned char ENVname[50];
  unsigned char *dicenv;
--- 26,41 ----
  /*#include <stdlib.h>*/
  #include <ctype.h>
  #include <string.h>
+ #include "xjdic.h"
  
+ /* 
  #define TRUE 1
  #define FALSE 0
  #define SPTAG '@'
! #define DEFAULT_DICDIR "" */   /* could be: "/usr/local/lib/xjdic"
*/
! 
  
+ #define EXLIM 100
  unsigned char *db;
  unsigned char ENVname[50];
  unsigned char *dicenv;










-----------------------------------------------------------------
a word from the sponsor will appear below
-----------------------------------------------------------------
The TLUG mailing list is proudly sponsored by TWICS - Japan's First
Public-Access Internet System.  Now offering 20,000 yen/year flat
rate Internet access with no time charges.  Full line of corporate
Internet and intranet products are available.   info@example.com
Tel: 03-3351-5977   Fax: 03-3353-6096


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links