The best open-source OCR engine. Reproducible: Always Steps to Reproduce: emerge --info WARNING: repository at /usr/local/portage is missing a repo_name entry Portage 2.2_rc6 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo i686) ================================================================= System uname: Linux-2.6.26-gentoo-i686-AMD_Athlon-tm-_64_Processor_3700+-with-glibc2.0 Timestamp of tree: Sun, 03 Aug 2008 06:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] app-shells/bash: 3.2_p39 dev-java/java-config: 1.3.7, 2.1.6-r1 dev-lang/python: 2.5.2-r7 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.5 sys-apps/sandbox: 1.2.18.1-r3 sys-devel/autoconf: 2.13, 2.62-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 2.2.4 virtual/os-headers: 2.6.25-r4 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -mtune=native -msse3 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=native -mtune=native -msse3 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks parallel-fetch prelink preserve-libs sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="ru_RU.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="ru en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/nouveau /usr/portage/local/layman/kdesvn-portage /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X aac acl acpi alsa bash-completion berkdb binary-drivers bluetooth branding bzip2 cairo cdr cli cracklib crypt css cupscurl dbus dhcp dia divx dmi dri dv dvd dvdr dvdread emboss encode esd exif fam firefox fortran gdbm gif glitz gphoto2 gpm gstreamer gtk hal hddtemp iconv inkjar ipv6 isdnlog jpeg kde lcms libnotify logrotate mad midi mikmod mmx mmxext mng mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection samba scannersdl session slang source spell spl sse sse2 ssl ssse3 startup-notification svg symlink sysfs tcpd threads tiff truetype unicode usb userlocales utempter vorbis win32codecs wmf x86 xcomposite xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" LIRC_DEVICES="avermedia devinput avermedia98" USERLAND="GNU" VIDEO_CARDS="nv nvidia nouveau" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 162965 [details] cuneiform-0.3.ebuild
Sorry for spam (refixing summary)...
Created attachment 162992 [details, diff] r215..218 Support for "make install" in cuneiform-linux-0.2
Created attachment 163041 [details] cuneiform-0.2.ebuild cuneiform-linux-0.3 is not usable. This is a more stable version.
Created attachment 163042 [details] r204, r215..218 Support for "make install" in cuneiform-linux-0.2
For the record, cuneiform-0.2 is not 64 bit clean. I get the following error on amd64: [ 69%] Building CXX object cuneiform_src/Kern/rfrmt/CMakeFiles/rfrmt.dir/sources/main/pagetree.o /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:229: warning: converting to non-pointer type 'unsigned int' from NULL /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp: In function 'int ConsMess(const char*, ...)': /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:246: warning: converting to non-pointer type 'unsigned int' from NULL /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:268: error: cast from 'COPYDATASTRUCT*' to 'int' loses precision /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp: In function 'BOOL PageTree(char*, CRtfPage*, char*)': /var/tmp/portage/app-text/cuneiform-0.2/work/cuneiform-0.2/cuneiform_src/Kern/rfrmt/sources/main/pagetree.cpp:1885: warning: comparison is always true due to limited range of data type make[2]: *** [cuneiform_src/Kern/rfrmt/CMakeFiles/rfrmt.dir/sources/main/pagetree.o] Error 1 make[1]: *** [cuneiform_src/Kern/rfrmt/CMakeFiles/rfrmt.dir/all] Error 2 make: *** [all] Error 2
(In reply to comment #1) > Created an attachment (id=162965) [edit] > cuneiform-0.3.ebuild > Install fail on amd64 >>> Completed installing cuneiform-0.3 into /var/tmp/portage/app-text/cuneiform-0.3/image/ strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment usr/lib/libwindummy.so usr/lib/libccom.so usr/lib/libcstr.so usr/lib/librstr.so usr/lib/librpstr.so usr/lib/libcline.so usr/lib/libfon.so usr/lib/libleo.so usr/lib/libevn32.so usr/lib/libcpage.so usr/lib/libcimage.so usr/lib/libcfio.so usr/lib/libpuma.so usr/lib/librline.so usr/lib/librcutp.so usr/lib/libdif.so usr/lib/libmsk.so usr/lib/librling.so usr/lib/librlings.so usr/lib/libctb32.so usr/lib/librsadd.so usr/lib/libstd32.so usr/lib/libpass2.so usr/lib/librbal.so usr/lib/libmmx.so usr/lib/libr35.so usr/lib/libcpu.so usr/lib/librdib.so usr/lib/libloc.so usr/lib/libced.so usr/lib/libexc.so usr/lib/librimage.so usr/lib/librverline.so usr/lib/librout.so usr/lib/librblock.so usr/lib/librselstr.so usr/lib/librfrmt.so usr/lib/librshelllines.so usr/lib/liblns32.so usr/lib/librreccom.so usr/lib/libsmetric.so usr/lib/librneg.so usr/lib/librpic.so usr/lib/librstuff.so usr/lib/librmarker.so usr/lib/librcorrkegl.so usr/bin/cuneiform Files matching a file type that is not allowed: usr/lib/libwindummy.so usr/lib/libccom.so usr/lib/libcstr.so usr/lib/librstr.so usr/lib/librpstr.so usr/lib/libcline.so usr/lib/libfon.so usr/lib/libleo.so usr/lib/libevn32.so usr/lib/libcpage.so usr/lib/libcimage.so usr/lib/libcfio.so usr/lib/libpuma.so usr/lib/librline.so usr/lib/librcutp.so usr/lib/libdif.so usr/lib/libmsk.so usr/lib/librling.so usr/lib/librlings.so usr/lib/libctb32.so usr/lib/librsadd.so usr/lib/libstd32.so usr/lib/libpass2.so usr/lib/librbal.so usr/lib/libmmx.so usr/lib/libr35.so usr/lib/libcpu.so usr/lib/librdib.so usr/lib/libloc.so usr/lib/libced.so usr/lib/libexc.so usr/lib/librimage.so usr/lib/librverline.so usr/lib/librout.so usr/lib/librblock.so usr/lib/librselstr.so usr/lib/librfrmt.so usr/lib/librshelllines.so usr/lib/liblns32.so usr/lib/librreccom.so usr/lib/libsmetric.so usr/lib/librneg.so usr/lib/librpic.so usr/lib/librstuff.so usr/lib/librmarker.so usr/lib/librcorrkegl.so * * ERROR: app-text/cuneiform-0.3 failed. * Call stack: * misc-functions.sh, line 609: Called install_qa_check * misc-functions.sh, line 360: Called die * The specific snippet of code: * [[ ${abort} == yes ]] && die "multilib-strict check failed!" * The die message: * multilib-strict check failed! * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/app-text/cuneiform-0.3/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-text/cuneiform-0.3/temp/environment'. * This ebuild is from an overlay: '/media/storage/repositories/selfip/' * !!! install_qa_check failed; exiting.
(In reply to comment #6) > For the record, cuneiform-0.2 is not 64 bit clean. I get the following error on > amd64: > Do you see the "amd64" keyword in cuneiform-0.2? This version only for x86_32.
Created attachment 163314 [details] cuneiform-0.3.ebuild ~x86 only
Created attachment 163316 [details] cuneiform-0.3-pragma-fix.patch.bz2
Cuneiform is now in the sunrise overlay. You can get the latest version from http://overlays.gentoo.org/svn/proj/sunrise/reviewed/app-text/cuneiform/
Created attachment 163477 [details] cuneiform-0.3.1.ebuild ~amd64 ~x86 Works out of the box, comment #7 fixed.
Created attachment 173536 [details] Ebuild for cuneiform 0.5 Ebuild for cuneiform 0.5 based on the ebuild for version 0.3. Primary change: Sources require cmake >=2.6.0.
Created attachment 175932 [details, diff] app-text/cuneiform/files/visibility.patch
Created attachment 175934 [details] app-text/cuneiform/cuneiform-0.5.ebuild
(In reply to comment #14) > Created an attachment (id=175932) [edit] > app-text/cuneiform/files/visibility.patch > (In reply to comment #15) > Created an attachment (id=175934) [edit] > app-text/cuneiform/cuneiform-0.5.ebuild > This is from sunrise overlay. Not needed to publish this files here. See comment #11
Да, но там нет этого патча. А без него у меня нне компилится (binutils-2.19, amd64)
(In reply to comment #17) > Да, но там нет этого патча. А без него у меня > нне компилится (binutils-2.19, amd64) > Really?! Just see http://overlays.gentoo.org/svn/proj/sunrise/reviewed/app-text/cuneiform/ChangeLog
Факт. Проявил невнимательность.
Виснет на распаковке: // hangs on unpacking >>> Unpacking cuneiform-0.5.tar.bz2 to /mnt/sdd-18g/sdd8/tmp/portage/app-text/cuneiform-0.5/work Битый архив? // broken archive?
(In reply to comment #20) > Виснет на распаковке: // hangs on unpacking > >>> Unpacking cuneiform-0.5.tar.bz2 to /mnt/sdd-18g/sdd8/tmp/portage/app-text/cuneiform-0.5/work > > Битый архив? // broken archive? > Check Manifest DIST cuneiform-0.5-visibility.patch.bz2 14938 RMD160 39f356066fde62b92e6588931e7bcee7a2186e53 SHA1 d8aeba54213d5672678c0399f62213ec1cc0da0f SHA256 6ce1b7af9068a1a64e301f38f83de90b70e6b7607d6bbe0c4575f70f5e686ba7 DIST cuneiform-0.5.tar.bz2 30109795 RMD160 16acbb0048c263b4443d5b0f1c9f8861e118a5c9 SHA1 d36c0e67d1da7bc7c2b3462128344d3a92ce845d SHA256 ab2f9a80d8d541cc00769fc7099846e3410607e9f3d7660b23d088ac03f4c7dd Use Sunrise overlay ( http://gentoo.ru/node/11137 ) and cuneiform-0.6.
> Use Sunrise overlay ( http://gentoo.ru/node/11137 ) and cuneiform-0.6. I hate both layman and svn, but thanks anyway ;)
While installing cuneiform-0.7 from the sunrise overlay, it hangs because of wrong file size: 2009-06-08 20:35:32 (4,11 MB/s) - »/usr/portage/distfiles/cuneiform-linux-0.7.tar.bz2« gespeichert [29158105/29158105] ('Filesize does not match recorded size', 29158105, 28758365) !!! Fetched file: cuneiform-linux-0.7.tar.bz2 VERIFY FAILED! !!! Reason: Filesize does not match recorded size !!! Got: 29158105 !!! Expected: 28758365 Refetching... File renamed to '/usr/portage/distfiles/cuneiform-linux-0.7.tar.bz2._checksum_failure_.E49sBs'
(In reply to comment #23) > While installing cuneiform-0.7 from the sunrise overlay, it hangs because of > wrong file size: > Thanks for report. Fixed in SVN.
Thank you guys. This package now in the main tree.
Created attachment 206296 [details] cuneiform_bug.png, emerge --info, environment cuneiform -f text -o b.txt b.png stalls indefinitely when running on ~amd64 on attached image (I have app-text/cuneiform-0.7). See attached .tar.gz for emerge --info and anonymized environment variables. On ~x86, there is a simple segfault.
I have additionnal bugs related to "*** glibc detected *** cuneiform: double free or corruption (!prev): 0x0000000000b62f20 ***", I also submit them if I get an answer to this bug.
I think my bug cames from bash. This is the exact bash fragment with the deadlock that I complained in #26: { test $notesseract = 0 && convert ${costfile%.costs}.png b.bmp && tesseract b.bmp ${costfile%.costs}tess -l $tesslanguage # n'aime pas les tif 32 bits, donc je met des .bmp test $nocuneiform = 0 && cuneiform -f text -o ${costfile%.costs}cune.txt ${costfile%.costs}.png } 2>&1 | tr '\012A' 'A\012' | sed -e 's:Tesseract Open Source OCR EngineA:.:' -e 's:Cuneiform for Linux [.0-9]*A:_:' | tr '\012A' 'A\012' This is a patch bash fragment which gives a segfault on my example image (so no more deadlock, I am happy): { test $notesseract = 0 && convert ${costfile%.costs}.png b.bmp && tesseract b.bmp ${costfile%.costs}tess -l $tesslanguage } 2>&1 | tr '\012A' 'A\012' | sed -e 's:Tesseract Open Source OCR EngineA:.:' | tr '\012A' 'A\012' { # separation pour qu'il y ait moins de blocage du style http://bugs.gentoo.org/show_bug.cgi?id=234824#c26 test $nocuneiform = 0 && cuneiform -f text -o ${costfile%.costs}cune.txt ${costfile%.costs}.png } 2>&1 | tr '\012A' 'A\012' | sed -e 's:Cuneiform for Linux [.0-9]*A:_:' | tr '\012A' 'A\012' So please do not take my bugreport #26 in consideration.
(In reply to comment #26) > stalls indefinitely when running on ~amd64 on attached image (I have > app-text/cuneiform-0.7). Use cuneiform-0.8.0 from portage http://packages.gentoo.org/package/app-text/cuneiform No future actions for this bug.
My Gentoo prefix on amd64 couldn't find the libraries in usr/lib64. This patch puts them in usr/lib, based on http://www.mail-archive.com/cuneiform@lists.launchpad.net/msg00073.html: --- install_files.cmake.old 2010-12-21 16:03:28.000000000 +0100 +++ install_files.cmake 2010-12-21 16:03:51.000000000 +0100 @@ -2,13 +2,8 @@ set(RELATIVE_DATADIR "share/cuneiform") set(INSTALL_DATADIR "${CMAKE_INSTALL_PREFIX}/${RELATIVE_DATADIR}") -include(CheckTypeSize) -check_type_size("void*" PTRSIZE) -if(PTRSIZE EQUAL 8 AND CMAKE_SYSTEM_NAME STREQUAL "Linux") - set(LIBDIR "lib64") -else() - set(LIBDIR "lib") -endif() +set(LIBDIR "lib/cuneiform-${CF_VERSION}") +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${LIBDIR}") macro(library_hook name) set_target_properties(${name} PROPERTIES VERSION
Jeffrey: please open new bug report. This one is closed.