Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 133376
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Text-Markup Team <text-markup@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Jan Sembera <fis@bofh.cz>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 133376 depends on: Show dependency tree
Bug 133376 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-05-15 05:47 0000
I'm having trouble compiling app-text/gocr that is required with updating
media-video/dvdrip package (I didn't have it installed before, it's probably
new dependency with USE flag subtitles set). I try to emerge with command
emerge -a -u -D -v --newuse world. Output looks as follows:

[ebuild  N    ] app-text/gocr-0.39  -doc +gtk 0 kB 
[ebuild  N    ] media-video/subtitleripper-0.3.4-r1  +png +zlib 46 kB 
[ebuild     U ] media-video/dvdrip-0.52.7-r1 [0.52.0] +cdr -gnome -minimal
-mplayer +ogg -rar +subtitles* +xvid 513 kB

And when I continue with emerging, I come across the following error:

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 job.o
i686-pc-linux-gnu-ranlib libPgm2asc.a
i686-pc-linux-gnu-gcc -O2 -march=athlon-xp -pipe -ftracer  -I../include
-DHAVE_CONFIG_H -c -o gocr.o gocr.c
i686-pc-linux-gnu-gcc -o gocr gocr.o -lpnm  -L. -lPgm2asc
./libPgm2asc.a(pnm.o): In function `writepgmfile':
pnm.c:(.text+0x11ce): undefined reference to `pgm_allocrow'
collect2: ld returned 1 exit status
make[1]: *** [gocr] Error 1
make[1]: Leaving directory `/var/tmp/portage/gocr-0.39/work/gocr-0.39/src'
make: *** [src] Error 2

!!! ERROR: app-text/gocr-0.39 failed.
!!! Function src_compile, Line 37, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

I also attach emerge --info: 

Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3,
2.6.16-ck9 i686)
=================================================================
System uname: 2.6.16-ck9 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.14
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig digest distlocks sandbox sfperms strict
userpriv usersandbox"
GENTOO_MIRRORS="ftp://mirror.icis.pcz.pl/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://gentoo.st.uz/gentoo/
ftp://mirror.usu.edu/mirrors/gentoo/ http://ftp.gentoo.or.kr/"
LANG="C"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac aalib acl acpi adns aim alsa apache2 apm audiofile avi
bash-completion bcmath berkdb bitmap-fonts bluetooth bonobo bzip2 caps
cdparanoia cdr cli crypt cscope ctype cups curl dbus dga dio divx4linux dri dv
dvd dvdr dvdread eds emboss encode ethereal exif expat fam ffmpeg firefox flac
flash foomaticdb freetype ftp gd gdbm geoip ggi gif glut gmp gnutls gpm
gstreamer gtk gtk2 gtkhtml guile hal iconv icq idn imagemagick imap imlib ipv6
isdnlog jabber java javascript jikes jpeg junit kdeenablefinal lcms ldap
libcaca libg++ libwww lua mad matroska mbox memlimit mhash mikmod mime mmap mmx
mng mozilla mp3 mpeg msn ncurses nls nptl ogg openal opengl oscar pam pcntl
pcre pdflib perl pic pie png pnp posix postgres pppd python qt quicktime
readline recode reflection ruby samba sasl scanner sdl session skey slang
sndfile sockets sox speex spell spl sqlite sse ssl svg sysfs sysvipc tcltk tcpd
tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb
vorbis win32codecs wmf wxwindows xine xinerama xml xml2 xorg xosd xpm xprint
xsl xv xvid yahoo zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS

------- Comment #1 From Alexandre Buisse (RETIRED) 2006-05-15 10:33:43 0000 -------
Which version of media-libs/netpbm do you have?

------- Comment #2 From Jan Sembera 2006-05-16 10:00:33 0000 -------
[I--] [  ] media-libs/netpbm-10.30-r1 (0)

[ebuild   R   ] media-libs/netpbm-10.30-r1  +jpeg +png -svga +tiff +zlib 2,542
kB 

------- Comment #3 From Martin Ehmsen (RETIRED) 2006-05-21 06:10:32 0000 -------
Could you please post the output from:
ls -al /usr/lib/libnetpbm.*

------- Comment #4 From Jan Sembera 2006-05-21 06:22:10 0000 -------
[fis@graybox ~]$ ls -al /usr/lib/libnetpbm.*
-rw-r--r-- 1 root root 222938 Dec  9 02:12 /usr/lib/libnetpbm.a
lrwxrwxrwx 1 root root     15 Dec  9 02:12 /usr/lib/libnetpbm.so ->
libnetpbm.so.10
lrwxrwxrwx 1 root root     18 Dec  9 02:12 /usr/lib/libnetpbm.so.10 ->
libnetpbm.so.10.30
-rwxr-xr-x 1 root root 158936 Dec  9 02:12 /usr/lib/libnetpbm.so.10.30

------- Comment #5 From Martin Ehmsen (RETIRED) 2006-05-21 08:25:08 0000 -------
As far as I can see this is fixed in gocr-0.40.
Could you please try that version and report back here.
If it works we will try to mark gocr-0.40 stable.

------- Comment #6 From Jan Sembera 2006-05-21 08:44:10 0000 -------
Both 0.40 and 0.40-r1 compiled perfectly, thank you. But I would rather avoid
using software marked as unstable if possible, so I will appreciate if 0.40
will get marked stable ;-).

------- Comment #7 From Martin Ehmsen (RETIRED) 2006-05-21 08:54:35 0000 -------
Arch teams: Please mark app-text/gocr-0.40-r1 stable. It fixes a bug in 0.39
and includes a --as-needed patch. There are no other bugs open for gocr. I know
0.40-r1 has not been in the tree for a month, but 0.40 has and it is the same
except for the --as-needed patch.

------- Comment #8 From Simon Stelling (RETIRED) 2006-05-22 12:38:22 0000 -------
The gtk frontend doesn't work fully here (amd64):

when i add a file to the list, select it and click 'view' nothing happens,
except the output in the shell:

sh: display: command not found

seems like you're missing a dependency

------- Comment #9 From Alexandre Buisse (RETIRED) 2006-05-23 04:44:20 0000 -------
That would be imagemagick. Can you please install it and tell us if it solves
your problem?

------- Comment #10 From Martin Ehmsen (RETIRED) 2006-05-23 04:50:02 0000 -------
(In reply to comment #9)
> That would be imagemagick. Can you please install it and tell us if it solves
> your problem?

It does.
I have never tried the gtk interface (my bad) only the commandline interface.
Upstream is not very good at describing deps for gocr... I can't find a single
location where the dep on imagemagick is mentioned.
Nattfodd: Feel free to add the dep on imagemagic (but only if the gtk use flag
is enabled), otherwise I'll do it when I get to my gentoo box tonight (CEST).

------- Comment #11 From Alexandre Buisse (RETIRED) 2006-05-23 06:16:59 0000 -------
I added gocr-0.40-r2 with this new dep (and removed INSTALL from dodoc btw).

Dear arch teams which didn't stable 0.40-r1 yet, please do it on 0.40-r2
instead (if you are ok with it, of course).

@ppc64: if you stable -r2, I'll be able to remove -r1.

------- Comment #12 From Markus Rothe 2006-05-23 11:18:15 0000 -------
thanks! -r2 stable on ppc64.

------- Comment #13 From Alexandre Buisse (RETIRED) 2006-05-23 12:39:54 0000 -------
Thanks, 0.40-r1 has been removed.

------- Comment #14 From Samuli Suominen 2006-05-25 04:53:37 0000 -------
Unkeyworded,

[ebuild   R   ] app-text/gocr-0.40-r2  -doc +gtk 0 kB

and built it with collision-protect on x86 and it seems to be fine.

unaffiliated ~ # gocr -v 16 gentoo-emergence-1400x1050.jpg
# Optical Character Recognition --- gocr 0.40
# options are: -l 0 -s 0 -v 16 -c _ -m 0 -d -1 -n 0
gentoo-emergence-1400x1050.jpg
# using unicode
# popen( djpeg -gray -pnm gentoo-emergence-1400x1050.jpg )
# PNM P5 x=1400 y=1050 c=255 head=-1
# db_path= (null)
# scanning boxes 7
# auto dust size = 1 (mX=216,mY=162)
# remove dust of size  1 histo=1,1(?=0),1(?=0),...   1 cluster removed
#  16 white pixels removed, cs=160
# smooth big chars 7x16 cs=160 ...   1 changes in 1 of 6
# detect barcode , 0 bars, boxes-0=6
# detect pictures, frames, noAlphas, mXmY= 22 17 ...  1 - boxes 4
# averages: mXmY= 22 17 nC= 0 n= 4
# remove boxes on border pictures= 2  rest= 4  boxes?= 0
 deleted= 0, within pictures  pictures= 2  rest= 4  boxes?= 0
. deleted= 1,
# ... found picture at    0    0 size 1400 1050 pictures= 1  rest= 4  boxes?= 0
# rotation angle (x,y,num) (0,0,0) (0,0,0), pass 1
# rotation angle (x,y,num) (0,0,0) (0,0,0), pass 2
# detect longest line - at y=0 crosses=  0 my=0 - at crosses=  0 dy=0
# scanning lines
# divide vertical glued boxes, numC 0
# searching melted serifs ...   0 cluster corrected, 0 new boxes
# glue broken chars ...   0 times glued, remaining boxes 0
# detect dust2, ...    0 +   0 boxes deleted, numC= 0
# check for word pitch ... min=74 max=74 v=0.000000 mono=1 pitch_m=74
# step 1: char recognition unknown= 4 picts= 1 boxes= 5, 4 of 5 chars
unidentified
# debug: unknown= 4 picts= 1 boxes= 5
# step 2: try to compare unknown with known chars - found 0
# step 3: try to divide unknown chars, numC 0
# set space width to 74
# step 4: context correction Il1 0O
# Warning: non-positive median line gap of 0
get_least_line_indent: page_width 1400, dy 0
Line 0,  y 0, raw indent 0, adjusted indent 0
Minimum indent is 0
# debug: (_)= 4 picts= 1 chars= 0
__     _       _  _
Elapsed time: 0:00:380.159.

Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3,
2.6.16-gentoo-r4 i686)
=================================================================
System uname: 2.6.16-gentoo-r4 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -g"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.utf8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa apm audiofile avi berkdb bitmap-fonts
bzip2 cli crypt dri emboss encode expat fam ffmpeg flac foomaticdb fortran gdbm
gif gstreamer gtk gtk2 id3 imagemagick imlib ipv6 isdnlog jpeg libg++ libwww
mad mikmod mmx mmxext motif mp3 mp4live mpeg mpeg2 musicbrainz ncurses nptl
nptlonly ogg opengl oss pam pcre pdflib perl pic player png pppd python
quicktime readline reflection sdk sdl session spl sse ssl tcpd theora tiff
truetype truetype-fonts type1-fonts udev unicode userlocales vorbis win32codecs
xine xml xml2 xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY

Thanks, drac

------- Comment #15 From Chris Gianelloni (RETIRED) 2006-05-25 12:52:59 0000 -------
x86 done

------- Comment #16 From Joe Jezak 2006-05-26 00:37:28 0000 -------
Seems to work, tested with some examples on their homepage.  Marked ppc stable.

------- Comment #17 From nixnut 2006-05-26 03:39:38 0000 -------
removing ppc from cc

------- Comment #18 From Jason Wever (RETIRED) 2006-05-29 20:28:28 0000 -------
SPARC stable.

------- Comment #19 From Simon Stelling (RETIRED) 2006-06-06 08:59:24 0000 -------
works as far as i would expect it from an OCR app ;)

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug