Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Optical Character Recognition -gocr, compile/install
jhaigh265
post Jun 1 2005, 08:48 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 1-June 05
Member No.: 5,072



I'm having problems intalling/configuring the optical character recognizition program gocr. For the record I'm running Suse 9.2 2.6.8-24.14 and have downloaded the gc++ compiler and libraries. When I issue the './configue' command the compiler runs, but outputs errors. The gocr tarball also contains a gui frontend that I would also like to use, but again that complilation also produces errors. I have included the config logs for both programs below; the first is for the program gocr, while the second is for the gui.

I'm stumped, any ideas would sure be appreciated. Thanks; here's the log files:

====gocr log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by gocr configure 0.39, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = LIN2
uname -m = i686
uname -r = 2.6.8-24.14-default
uname -s = Linux
uname -v = #1 Tue Mar 29 09:27:43 UTC 2005

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /usr/games
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/lib/jvm/jre/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1320: checking for gcc
configure:1336: found /usr/bin/gcc
configure:1346: result: gcc
configure:1590: checking for C compiler version
configure:1593: gcc --version </dev/null >&5
gcc (GCC) 3.3.4 (pre 3.3.5 20040809)
Copyright © 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1596: $? = 0
configure:1598: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)
configure:1601: $? = 0
configure:1603: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1606: $? = 1
configure:1630: checking for C compiler default output
configure:1633: gcc conftest.c >&5
configure:1636: $? = 0
configure:1682: result: a.out
configure:1687: checking whether the C compiler works
configure:1693: ./a.out
configure:1696: $? = 0
configure:1713: result: yes
configure:1720: checking whether we are cross compiling
configure:1722: result: no
configure:1725: checking for suffix of executables
configure:1727: gcc -o conftest conftest.c >&5
configure:1730: $? = 0
configure:1755: result:
configure:1761: checking for suffix of object files
configure:1783: gcc -c conftest.c >&5
configure:1786: $? = 0
configure:1808: result: o
configure:1812: checking whether we are using the GNU C compiler
configure:1837: gcc -c conftest.c >&5
configure:1840: $? = 0
configure:1843: test -s conftest.o
configure:1846: $? = 0
configure:1859: result: yes
configure:1865: checking whether gcc accepts -g
configure:1887: gcc -c -g conftest.c >&5
configure:1890: $? = 0
configure:1893: test -s conftest.o
configure:1896: $? = 0
configure:1907: result: yes
configure:1924: checking for gcc option to accept ANSI C
configure:1985: gcc -c -g -O2 conftest.c >&5
configure:1988: $? = 0
configure:1991: test -s conftest.o
configure:1994: $? = 0
configure:2012: result: none needed
configure:2030: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: parse error before "me"
configure:2033: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2179: checking for a BSD-compatible install
configure:2233: result: /usr/bin/install -c
configure:2285: checking for ranlib
configure:2301: found /usr/bin/ranlib
configure:2312: result: ranlib
configure:2324: checking whether make sets $(MAKE)
configure:2344: result: yes
configure:2355: checking for ar
configure:2371: found /usr/bin/ar
configure:2381: result: ar
configure:2390: checking for fig2dev
configure:2419: result: no
configure:2441: checking for library containing pnm_readpnminit
configure:2472: gcc -o conftest -g -O2 conftest.c >&5
/tmp/ccWpFovj.o(.text+0xc): In function `main':
/root/gocr-0.40/configure:2467: undefined reference to `pnm_readpnminit'
collect2: ld returned 1 exit status
configure:2475: $? = 1
configure: failed program was:
| #line 2448 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "gocr"
| #define PACKAGE_TARNAME "gocr"
| #define PACKAGE_VERSION "0.39"
| #define PACKAGE_STRING "gocr 0.39"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char pnm_readpnminit ();
| int
| main ()
| {
| pnm_readpnminit ();
| ;
| return 0;
| }
configure:2517: gcc -o conftest -g -O2 conftest.c -lnetpbm >&5
configure:2520: $? = 0
configure:2523: test -s conftest
configure:2526: $? = 0
configure:2540: result: -lnetpbm
configure:2556: checking how to run the C preprocessor
configure:2592: gcc -E conftest.c
configure:2598: $? = 0
configure:2630: gcc -E conftest.c
configure:2629:28: ac_nonexistent.h: No such file or directory
configure:2636: $? = 1
configure: failed program was:
| #line 2621 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "gocr"
| #define PACKAGE_TARNAME "gocr"
| #define PACKAGE_VERSION "0.39"
| #define PACKAGE_STRING "gocr 0.39"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2674: result: gcc -E
configure:2699: gcc -E conftest.c
configure:2705: $? = 0
configure:2737: gcc -E conftest.c
configure:2736:28: ac_nonexistent.h: No such file or directory
configure:2743: $? = 1
configure: failed program was:
| #line 2728 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "gocr"
| #define PACKAGE_TARNAME "gocr"
| #define PACKAGE_VERSION "0.39"
| #define PACKAGE_STRING "gocr 0.39"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2786: checking for egrep
configure:2796: result: grep -E
configure:2801: checking for ANSI C header files
configure:2827: gcc -c -g -O2 conftest.c >&5
configure:2830: $? = 0
configure:2833: test -s conftest.o
configure:2836: $? = 0
configure:2928: gcc -o conftest -g -O2 conftest.c -lnetpbm >&5
configure:2931: $? = 0
configure:2933: ./conftest
configure:2936: $? = 0
configure:2951: result: yes
configure:2975: checking for sys/types.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for sys/stat.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for stdlib.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for string.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for memory.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for strings.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for inttypes.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for stdint.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:2975: checking for unistd.h
configure:2992: gcc -c -g -O2 conftest.c >&5
configure:2995: $? = 0
configure:2998: test -s conftest.o
configure:3001: $? = 0
configure:3012: result: yes
configure:3031: checking for unistd.h
configure:3036: result: yes
configure:3040: checking wchar.h usability
configure:3053: gcc -c -g -O2 conftest.c >&5
configure:3056: $? = 0
configure:3059: test -s conftest.o
configure:3062: $? = 0
configure:3072: result: yes
configure:3076: checking wchar.h presence
configure:3087: gcc -E conftest.c
configure:3093: $? = 0
configure:3112: result: yes
configure:3148: checking for wchar.h
configure:3155: result: yes
configure:3040: checking pam.h usability
configure:3053: gcc -c -g -O2 conftest.c >&5
configure:3056: $? = 0
configure:3059: test -s conftest.o
configure:3062: $? = 0
configure:3072: result: yes
configure:3076: checking pam.h presence
configure:3087: gcc -E conftest.c
configure:3093: $? = 0
configure:3112: result: yes
configure:3148: checking for pam.h
configure:3155: result: yes
configure:3040: checking pnm.h usability
configure:3053: gcc -c -g -O2 conftest.c >&5
configure:3056: $? = 0
configure:3059: test -s conftest.o
configure:3062: $? = 0
configure:3072: result: yes
configure:3076: checking pnm.h presence
configure:3087: gcc -E conftest.c
configure:3093: $? = 0
configure:3112: result: yes
configure:3148: checking for pnm.h
configure:3155: result: yes
configure:3169: checking for an ANSI C-conforming const
configure:3237: gcc -c -g -O2 conftest.c >&5
configure:3240: $? = 0
configure:3243: test -s conftest.o
configure:3246: $? = 0
configure:3257: result: yes
configure:3268: checking for function prototypes
configure:3271: result: yes
configure:3288: checking whether setvbuf arguments are reversed
configure:3314: gcc -o conftest -g -O2 conftest.c -lnetpbm >&5
configure:3320: error: conflicting types for `setvbuf'
/usr/include/stdio.h:304: error: previous declaration of `setvbuf'
configure:3317: $? = 1
configure: failed program was:
| #line 3294 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "gocr"
| #define PACKAGE_TARNAME "gocr"
| #define PACKAGE_VERSION "0.39"
| #define PACKAGE_STRING "gocr 0.39"
| #define PACKAGE_BUGREPORT ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_WCHAR_H 1
| #define HAVE_PAM_H 1
| #define HAVE_PNM_H 1
| #define PROTOTYPES 1
| #define __PROTOTYPES 1
| /* end confdefs.h. */
| #include <stdio.h>
| # if PROTOTYPES
| int (setvbuf) (FILE *, int, char *, size_t);
| # endif
| int
| main ()
| {
| char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
| ;
| return 0;
| }
configure:3421: result: no
configure:3438: checking for wcschr
configure:3488: gcc -o conftest -g -O2 conftest.c -lnetpbm >&5
configure:3491: $? = 0
configure:3494: test -s conftest
configure:3497: $? = 0
configure:3508: result: yes
configure:3438: checking for wcsdup
configure:3488: gcc -o conftest -g -O2 conftest.c -lnetpbm >&5
configure:3491: $? = 0
configure:3494: test -s conftest
configure:3497: $? = 0
configure:3508: result: yes
configure:3438: checking for gettimeofday
configure:3488: gcc -o conftest -g -O2 conftest.c -lnetpbm >&5
configure:3491: $? = 0
configure:3494: test -s conftest
configure:3497: $? = 0
configure:3508: result: yes
configure:3438: checking for popen
configure:3488: gcc -o conftest -g -O2 conftest.c -lnetpbm >&5
configure:3491: $? = 0
configure:3494: test -s conftest
configure:3497: $? = 0
configure:3508: result: yes
configure:3520: checking for src/api/Makefile.in
configure:3535: result: yes
configure:3638: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by gocr config.status 0.39, which was
generated by GNU Autoconf 2.57. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on LIN2

config.status:624: creating Makefile
config.status:624: creating src/Makefile
config.status:624: creating doc/Makefile
config.status:624: creating man/Makefile
config.status:624: creating src/api/Makefile
config.status:728: creating include/config.h
config.status:847: include/config.h is unchanged

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_c_compiler_gnu=yes
ac_cv_c_const=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_file_src_api_Makefile_in=yes
ac_cv_func_gettimeofday=yes
ac_cv_func_popen=yes
ac_cv_func_setvbuf_reversed=no
ac_cv_func_wcschr=yes
ac_cv_func_wcsdup=yes
ac_cv_header_inttypes_h=yes
ac_cv_header_memory_h=yes
ac_cv_header_pam_h=yes
ac_cv_header_pnm_h=yes
ac_cv_header_stdc=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_header_wchar_h=yes
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=ar
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_RANLIB=ranlib
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'
ac_cv_prog_make_make_set=yes
ac_cv_search_pnm_readpnminit=-lnetpbm

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='ar'
CC='gcc'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
DEFS='-DHAVE_CONFIG_H'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
FIG2DEV=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS='-lnetpbm '
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='gocr'
PACKAGE_STRING='gocr 0.39'
PACKAGE_TARNAME='gocr'
PACKAGE_VERSION='0.39'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SET_MAKE=''
SHELL='/bin/sh'
ac_ct_CC='gcc'
ac_ct_RANLIB='ranlib'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='${prefix}'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define HAVE_GETTIMEOFDAY 1
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_PAM_H 1
#define HAVE_PNM_H 1
#define HAVE_POPEN 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRINGS_H 1
#define HAVE_STRING_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define HAVE_UNISTD_H 1
#define HAVE_WCHAR_H 1
#define HAVE_WCSCHR 1
#define HAVE_WCSDUP 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME "gocr"
#define PACKAGE_STRING "gocr 0.39"
#define PACKAGE_TARNAME "gocr"
#define PACKAGE_VERSION "0.39"
#define PROTOTYPES 1
#define STDC_HEADERS 1
#define __PROTOTYPES 1

configure: exit 0


====== Next Log

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:529: checking for gcc
configure:642: checking whether the C compiler (gcc ) works
configure:658: gcc -o conftest conftest.c 1>&5
configure:684: checking whether the C compiler (gcc ) is a cross-compiler
configure:689: checking whether we are using GNU C
configure:717: checking whether gcc accepts -g
configure:779: checking for a BSD compatible install
configure:832: checking whether make sets ${MAKE}
configure:859: checking whether build environment is sane
configure:935: checking for working aclocal
configure:948: checking for working autoconf
configure:961: checking for working automake
configure:974: checking for working autoheader
configure:987: checking for working makeinfo
configure:1004: checking how to run the C preprocessor
configure:1084: checking for ANSI C header files
configure:1192: checking for working const
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th December 2017 - 09:32 PM