Subject: Re: Can Someone Package gocr For Me?
To: Ian Harding <iharding@pakrat.com>
From: None <mcmahill@mtl.mit.edu>
List: tech-pkg
Date: 07/17/2002 06:24:43
you may need to turn off wchar support for NetBSD-1.5.*


On Tue, 16 Jul 2002, Ian Harding wrote:

> Hello,
> 
> I have been trying, fruitlessly, to build gocr on NetBSD 1.5.2.  It is
> really close to working, but I am too dumb to figure out where it is broke.
> It is somehow not finding wchar.h, I think, since the errors look like
> this..
> 
> bash-2.05# gmake
> gmake -C src all
> gmake[1]: Entering directory `/usr/gocr-0.3.6/src'
> gcc -o gocr gocr.o -L/usr/X11R6/lib -L/usr/local/netpbm/lib  -L. -lPgm2asc
> ./libPgm2asc.a(pgm2asc.o): In function `wcsdup':
> /usr/gocr-0.3.6/src/pgm2asc.c:83: undefined reference to `wcslen'
> /usr/gocr-0.3.6/src/pgm2asc.c:85: undefined reference to `wcscpy'
> ./libPgm2asc.a(pgm2asc.o): In function `try_to_divide_boxes':
> /usr/gocr-0.3.6/src/pgm2asc.c:1398: undefined reference to `wcschr'
> /usr/gocr-0.3.6/src/pgm2asc.c:1398: undefined reference to `wcschr'
> /usr/gocr-0.3.6/src/pgm2asc.c:1421: undefined reference to `wcschr'
> /usr/gocr-0.3.6/src/pgm2asc.c:1421: undefined reference to `wcschr'
> /usr/gocr-0.3.6/src/pgm2asc.c:1421: undefined reference to `wcschr'
> ./libPgm2asc.a(lines.o): In function `append_to_line':
> /usr/gocr-0.3.6/src/lines.c:67: undefined reference to `wcslen'
> collect2: ld returned 1 exit status
> gmake[1]: *** [gocr] Error 1
> gmake[1]: Leaving directory `/usr/gocr-0.3.6/src'
> gmake: *** [src] Error 2
> 
> I tried gocr out on Windows with a pre-built binary and it worked perfect.
> I just need it on NetBSD now!  I tried clara, but it is not too easy to use
> if you don't have X (ssh on a windows machine...)
> 
> If you can help, it is at jocr.sourceforge.net.  (gocr was already taken at
> sourceforge)
>