[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: tesseract-ocr: missing-dependency-on-libc



On 29/04/2008, Jeffrey Ratcliffe wrote:
> I assume that the gencontrol warning is connected to the missing
> dependency. I have, though, got ${shlibs:Depends} in Depends

What does dpkg --info on the binaries say? (pipe it into grep ^Depends)

> and I even tried manually adding libc too, all without luck.

DON'T DO THAT.

There are libc6, libc6.1, libc0.1, and libc0.3 around. You don't want to
hardcode it. Ever.

I was about to look into it, but your package FTBFSes with gcc 4.3,
patch attached.

While writing the patch, I noticed that upon resume (debuild -b -nc),
./configure gets run again, which is kind of unfortunate (although not
that long on a reasonable machine, it's at least inelegant). Oh, and
even during a regular build, there's a "configure" even after "make".

Also, your clean target doesn't do its job. Calling "debuild -b &&
debuild -S":
| dpkg-source: info: building tesseract in tesseract_2.03-1.1.diff.gz
| dpkg-source: warning: newly created empty file 'tessdata/spa.unicharset' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.pffmtable' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.inttemp' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.inttemp' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.pffmtable' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.freq-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/spa.DangAmbigs' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.unicharset' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/spa.word-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.word-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.inttemp' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.normproto' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.DangAmbigs' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.normproto' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.word-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.normproto' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.user-words' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.normproto' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.word-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.DangAmbigs' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.unicharset' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.unicharset' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.word-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.DangAmbigs' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.word-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.freq-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.DangAmbigs' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.pffmtable' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.unicharset' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.inttemp' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.freq-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/spa.normproto' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.user-words' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/spa.user-words' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.user-words' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.user-words' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.freq-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.freq-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.unicharset' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/spa.inttemp' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/deu.user-words' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/spa.pffmtable' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.normproto' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/eng.DangAmbigs' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/fra.inttemp' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/spa.freq-dawg' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/ita.pffmtable' will not be represented in diff
| dpkg-source: warning: newly created empty file 'tessdata/nld.pffmtable' will not be represented in diff


> Any clues?

You're calling dh_shlibdeps (see what it does to understand the original
error) way too early; it shouldn't be called before dh_install.

Mraw,
KiBi.
--- a/viewer/svmnode.cpp
+++ b/viewer/svmnode.cpp
@@ -27,6 +27,7 @@
 #include "svmnode.h"
 
 #include <iostream>
+#include <cstring>
 
 #include "scrollview.h"
 
--- a/viewer/svutil.cpp
+++ b/viewer/svutil.cpp
@@ -38,6 +38,8 @@
 
 #include <iostream>
 #include <string>
+#include <cstring>
+#include <cstdlib>
 
 const int kBufferSize = 65536;
 const int kMaxMsgSize = 4096;
--- a/viewer/scrollview.cpp
+++ b/viewer/scrollview.cpp
@@ -35,6 +35,8 @@
 #include <algorithm>
 #include <vector>
 #include <string>
+#include <cstring>
+#include <climits>
 
 #include "svutil.h"
 

Attachment: pgpVwb2nAUVWq.pgp
Description: PGP signature


Reply to: