You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Robert Nicholson <ro...@gmail.com> on 2007/01/02 16:40:55 UTC
Problems compiling gocr 43 on freebsd
Trying to setup FuzzyOCR
Here's what I get
$ ./configure --prefix=$HOME --with-netpbm=/usr/local/lib --verbose
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for ar... ar
checking for fig2dev... no
option: with_netpbm /usr/local/lib
checking for library containing pnm_readpnminit... no
* * * try option --with-netpbm=PATH
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for an ANSI C-conforming const... yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking for wcschr... yes
checking for wcsdup... no
checking for gettimeofday... yes
checking for popen... yes
checking for src/api/Makefile.in... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating man/Makefile
config.status: creating src/api/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
$ nm /usr/local/bin/libnetpbm.a | grep init | grep pnminit
plus
$ make
make -C src all
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o pgm2asc.o pgm2asc.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o box.o box.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o database.o database.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o detect.o detect.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o barcode.o barcode.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o lines.o lines.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o list.o list.c
In file included from list.c:61:
progress.h:21: error: syntax error before "time_t"
*** Error code 1
Stop in /home/elastica/gocr-0.43/src.
*** Error code 1
Stop in /home/elastica/gocr-0.43.
RE: Problems compiling gocr 43 on freebsd
Posted by Sietse van Zanen <si...@wizdom.nu>.
As per this message:
checking for library containing pnm_readpnminit... no
* * * try option --with-netpbm=PATH
You are lacking some dependencies. Running a make does not make sense when configure returns these errors. Read the documentation to see what dependencies need to be satisfied. At least you need to install netpbm.
-Sietse
From: Robert Nicholson
Sent: Tue 02-Jan-07 16:40
To: jocr-users@lists.sourceforge.net
Cc: spam mailling list
Subject: Problems compiling gocr 43 on freebsd
Trying to setup FuzzyOCR
Here's what I get
$ ./configure --prefix=$HOME --with-netpbm=/usr/local/lib --verbose
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether make sets $(MAKE)... yes
checking for ar... ar
checking for fig2dev... no
option: with_netpbm /usr/local/lib
checking for library containing pnm_readpnminit... no
* * * try option --with-netpbm=PATH
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for an ANSI C-conforming const... yes
checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking for wcschr... yes
checking for wcsdup... no
checking for gettimeofday... yes
checking for popen... yes
checking for src/api/Makefile.in... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating man/Makefile
config.status: creating src/api/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
$ nm /usr/local/bin/libnetpbm.a | grep init | grep pnminit
plus
$ make
make -C src all
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o pgm2asc.o pgm2asc.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o box.o box.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o database.o database.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o detect.o detect.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o barcode.o barcode.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o lines.o lines.c
gcc -g -O2 -I/usr/local/lib/include -I../include -DHAVE_CONFIG_H -c -
o list.o list.c
In file included from list.c:61:
progress.h:21: error: syntax error before "time_t"
*** Error code 1
Stop in /home/elastica/gocr-0.43/src.
*** Error code 1
Stop in /home/elastica/gocr-0.43.