Ben,

it seems work.
Thanks and have a nice TG!

Isaac

On Wed, Nov 26, 2008 at 2:27 PM, Ben Voigt <[EMAIL PROTECTED]> wrote:
>
> Here is the patch:
>
>
> Index: viewer/svutil.cpp
> ===================================================================
> --- viewer/svutil.cpp   (revision 201)
> +++ viewer/svutil.cpp   (working copy)
> @@ -31,6 +31,7 @@
>  #include <signal.h>
>  #include <netdb.h>
>  #include <sys/socket.h>
> +#include <netinet/in.h>
>  #ifdef __linux__
>  #include <sys/prctl.h>
>  #endif
>
>
>
> On Nov 26, 2:26 pm, Ben Voigt <[EMAIL PROTECTED]> wrote:
>> It turns out that you need
>>
>> #include <netinet/in.h>
>>
>> I put it right after
>>
>> #include <sys/socket.h>
>>
>> On Nov 8, 7:24 am, "Saito,  Isao Isaac" <[EMAIL PROTECTED]> wrote:
>>
>> > # reply to an old thread
>>
>> > I got the same error during make and still can't solve it.
>>
>> > >Anyway, "man htons" and make sure the include directories are pointed to 
>> > >where the header file is.
>>
>> > Could anybody tell how can I do this? (I'm still catching up to C, C+
>> > +...)
>>
>> > I'm using
>> > - tesseract-2.03
>> > - cygwin
>> > - windows xp home sp3
>>
>> > Regards,
>> > Isaac
>>
>> > -----------------
>> > From: andrew <[EMAIL PROTECTED]>
>> > Date: Wed, 18 Jun 2008 11:27:52 +0200
>> > Local: Wed, Jun 18 2008 3:27 am
>> > Subject: Re: Make Error
>>
>> > >My guess would be missing library headers... huh... I think the missing
>> > >include is sockets.h? Or winsock.h, winsock2.h?
>> > >It's been so long since I last used C... :)
>>
>> > >Anyway, "man htons" and make sure the include directories are pointed to 
>> > >where the header file is.
>>
>> > >Hope it helps.
>>
>> > >On Wednesday 18 of June 2008, Leo wrote:
>> > >> Hi All
>>
>> > >> I try to make tesseract 2.03 under cygwin and encounter the following
>> > >> error
>>
>> > >> svutil.cpp: In constructor `SVNetwork::SVNetwork(const char*, int)':
>> > >> svutil.cpp:245: error: aggregate `sockaddr_inaddress' has incomplete
>> > >> type and cannot be defined
>> > >> svutil.cpp:273: error: `htons' undeclared (first use this function)
>> > >> svutil.cpp:273: error: (Each undeclared identifier is reported only
>> > >> once for each function it appears in.)
>> > >> make[3]: *** [svutil.o] Error 1
>> > >> make[3]: Leaving directory `/cygdrive/c/tesseract-2.03/viewer'
>> > >> make[2]: *** [all-recursive] Error 1
>> > >> make[2]: Leaving directory `/cygdrive/c/tesseract-2.03/viewer'
>> > >> make[1]: *** [all-recursive] Error 1
>> > >> make[1]: Leaving directory `/cygdrive/c/tesseract-2.03'
>> > >> make: *** [all-recursive-am] Error 2
>>
>> > >> any idea why? I can install 2.01 without any problem
>>
>> > >> Cheers,
>> > >> Leo
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tesseract-ocr?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to