View previous topic :: View next topic |
Author |
Message |
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Thu Jan 16, 2003 5:23 pm Post subject: gocr won't compile [SOLVED] |
|
|
The compilation of gocr (needed for my scanner) broke as it complains of undefined references in functions readpnm and writepgm files. Has someone an idea of what it could be ? I also used the basic -march=i686 cflag without succes.
Regards,
Sébastien
Last edited by sebgarden on Mon Jan 20, 2003 1:58 am; edited 1 time in total |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Sat Jan 18, 2003 12:23 am Post subject: |
|
|
I think I'll report this as a bug.
Sébastien |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Sat Jan 18, 2003 11:25 pm Post subject: |
|
|
OK, before reporting this as a bug, let's see if someone has an idea of the error's origin with futher indications on it (I was a little too concise the last time )
Code: |
root@idk-002c307 seb # emerge gocr
Calculating dependencies ...done!
>>> emerge (1 of 1) app-text/gocr-0.3.6-r2 to /
>>> md5 ;-) gocr-0.3.6.tar.gz
>>> Unpacking source...
>>> Unpacking gocr-0.3.6.tar.gz
patching file gocr-0.3.6/configure.in
configure.in:48: warning: AC_TRY_RUN called without default to allow cross compiling
>>> Source unpacked.
creating cache ./config.cache
checking for gcc... gcc
checking whether the C compiler (gcc -march=pentium3 -03 -pipe ) works... yes
checking whether the C compiler (gcc -march=pentium3 -03 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /bin/install -c
checking for ranlib... ranlib
checking whether make sets ${MAKE}... yes
checking for ar... ar
checking for latex... latex
checking for dvips... dvips
./configure: line 976: -I/usr/include/pbm: No such file or directory
checking for library containing pnm_readpaminit... no
checking for library containing pbm_init... no
checking for library containing pgm_init... no
checking for library containing ppm_init... no
checking for library containing pnm_init... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for pnm.h... yes
checking for pam.h... yes
checking for wchar.h... yes
checking for working const... yes
checking whether setvbuf arguments are reversed... no
checking for wcschr... yes
checking for wcsdup... yes
checking for gettimeofday... yes
checking for popen... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating doc/Makefile
creating man/Makefile
creating src/api/Makefile
creating include/config.h
make -C src all
make[1]: Entering directory `/var/tmp/portage/gocr-0.3.6-r2/work/gocr-0.3.6/src'gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o pgm2asc.o pgm2asc.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o box.o box.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o database.o database.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o detect.o detect.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o barcode.o barcode.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o lines.o lines.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o list.o list.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o ocr0.o ocr0.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o ocr0n.o ocr0n.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o ocr1.o ocr1.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o otsu.o otsu.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o output.o output.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o pixel.o pixel.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o unicode.o unicode.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o remove.o remove.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o pnm.o pnm.c
gcc: unrecognized option `-03'
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o pcx.o pcx.c
gcc: unrecognized option `-03'
rm -f libPgm2asc.a
ar cru libPgm2asc.a pgm2asc.o box.o database.o detect.o barcode.o lines.o list.o ocr0.o ocr0n.o ocr1.o otsu.o output.o pixel.o unicode.o remove.o pnm.o pcx.o
ranlib libPgm2asc.a
gcc -march=pentium3 -03 -pipe -I../include -DHAVE_CONFIG_H -c -o gocr.o gocr.c
gcc: unrecognized option `-03'
gcc -o gocr gocr.o -L/usr/X11R6/lib -L/usr/local/netpbm/lib -L. -lPgm2asc
./libPgm2asc.a(pnm.o)(.text+0x207): In function `readpnm':
: undefined reference to `pnm_readpaminit'
./libPgm2asc.a(pnm.o)(.text+0x29c): In function `readpnm':
: undefined reference to `pnm_allocpamrow'
./libPgm2asc.a(pnm.o)(.text+0x2ce): In function `readpnm':
: undefined reference to `pnm_readpamrow'
./libPgm2asc.a(pnm.o)(.text+0x32a): In function `readpnm':
: undefined reference to `pm_freerow'
./libPgm2asc.a(pnm.o)(.text+0x116e): In function `writepgmfile':
: undefined reference to `pgm_writepgminit'
./libPgm2asc.a(pnm.o)(.text+0x1184): In function `writepgmfile':
: undefined reference to `pm_allocrow'
./libPgm2asc.a(pnm.o)(.text+0x1207): In function `writepgmfile':
: undefined reference to `pgm_writepgmrow'
./libPgm2asc.a(pnm.o)(.text+0x1219): In function `writepgmfile':
: undefined reference to `pm_freerow'
collect2: ld returned 1 exit status
make[1]: *** [gocr] Error 1
make[1]: Leaving directory `/var/tmp/portage/gocr-0.3.6-r2/work/gocr-0.3.6/src'
make: *** [src] Error 2
!!! ERROR: app-text/gocr-0.3.6-r2 failed.
!!! Function src_compile, Line 46, Exitcode 2
!!! (no error message)
root@idk-002c307 seb # emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r3)
=================================================================
System uname: 2.4.20-gentoo-r1 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="ftp://ftp.ibiblio.org/pub/Linux/distributions/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm avi crypt cups encode jpeg libg++ mikmod mmx ncurses nls pdflib png qtmt quicktime sdl spell xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline tetex aalib bonobo svga java guile mysql X gpm tcpd pam libwww ssl perl python imlib oggvorbis gnome gtk motif mozilla scanner -arts -esd -kde -qt acpi dvd evo fbcon gb gif mpeg opengl samba truetype xfs xml"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -03 -pipe"
CXXFLAGS="-march=pentium3 -03 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
|
I think there is a problem with netpbm but does someone see an error I could fix ?
Regards,
Sébastien. |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Sun Jan 19, 2003 1:10 am Post subject: |
|
|
Reported bug #14161. |
|
Back to top |
|
|
sebgarden Guru
Joined: 21 Dec 2002 Posts: 353
|
Posted: Sun Jan 19, 2003 5:24 pm Post subject: |
|
|
Bug solved thanks to mholzer:
Code: |
# ACCEPT_KEYWORDS="~x86" emerge /usr/portage/media-libs/netpbm-9.12r4.ebuild
# emerge gocr
|
|
|
Back to top |
|
|
|