Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14161 - gocr-0.3.6-r2 src_compile failure
Summary: gocr-0.3.6-r2 src_compile failure
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-18 18:59 UTC by Sébastien Champigny
Modified: 2003-01-19 10:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sébastien Champigny 2003-01-18 18:59:21 UTC
Let's see if someone has an idea of the error's origin with futher indications
on it: 

[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"
[/code]
I think there is a problem with netpbm, the directory /usr/bin/pbm doesn't
exist, could it be just a path error ?

Regards,
S
Comment 1 Sébastien Champigny 2003-01-18 18:59:21 UTC
Let's see if someone has an idea of the error's origin with futher indications
on it: 

[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"
[/code]
I think there is a problem with netpbm, the directory /usr/bin/pbm doesn't
exist, could it be just a path error ?

Regards,
Sébastien.

NB: gocr-0.3.7 was released some days some days ago.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-01-19 03:19:28 UTC
er, first of all, you realise that the option is oh-three as opposed to
zero-three right?

and can you remerge netpbm and test this please?
Comment 3 Martin Holzer (RETIRED) gentoo-dev 2003-01-19 08:40:01 UTC
seems netpbm 10.11.4 breaks this

if it fails again, please try netpbm 9.12-r4 
Comment 4 Sébastien Champigny 2003-01-19 10:45:55 UTC
OK, it failed even with the softest options. Here is what I did:
First I recompiled gocr with
ACCEPT_KEYWORDS="i386"
MAKEOPTS="-j1"
It failed.
I then recompiled libpbm, then gocr. It failed.
...
As I was about to write a new message here, my message had a "mid-air collision"
with the one from mholzer, whom message I read consciencously. After that I
emerged netpbm-9.12r4 and then gocr and it works.

Thanks guys !!
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-01-19 10:51:26 UTC
fixed in cvs

thx