patcharats / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

Make errors on Mac OS X 10.3.9 #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. gunzip > .configure -> make
2.
3.

What is the expected output? What do you see instead?
error-free build (Tesseract 1.02 builds and runs OK)
Make diagnostics appended

What version of the product are you using? On what operating system?

Tesseract-2.01 with or without patch 1
Mac OS X 10.3.9

Please provide any additional information below.

g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../cutil -I../ccutil   -g -O2 -c dawg.cpp
In file included from dawg.cpp:31:
/usr/include/netinet/in.h:255: error: 'in_addr_t' is used as a type, but is not 
   defined as a type.
/usr/include/netinet/in.h:312: error: 'u_char' is used as a type, but is not 
   defined as a type.
/usr/include/netinet/in.h:313: error: 'u_char' is used as a type, but is not 
   defined as a type.
/usr/include/netinet/in.h:314: error: 'u_short' is used as a type, but is not 
   defined as a type.
In file included from /usr/include/netinet/in.h:518,
                 from dawg.cpp:31:
/usr/include/netinet6/in6.h:123: error: parse error before `[' token
/usr/include/netinet6/in6.h:124: error: parse error before `[' token
/usr/include/netinet6/in6.h:125: error: parse error before `[' token
/usr/include/netinet6/in6.h:145: error: 'u_int8_t' is used as a type, but is 
   not defined as a type.
/usr/include/netinet6/in6.h:146: error: 'u_int8_t' is used as a type, but is 
   not defined as a type.
/usr/include/netinet6/in6.h:147: error: 'u_int16_t' is used as a type, but is 
   not defined as a type.
/usr/include/netinet6/in6.h:148: error: 'u_int32_t' is used as a type, but is 
   not defined as a type.
/usr/include/netinet6/in6.h:150: error: 'u_int32_t' is used as a type, but is 
   not defined as a type.
/usr/include/netinet6/in6.h:615: error: syntax error before `;' token
/usr/include/netinet6/in6.h:617: error: syntax error before `(' token
/usr/include/netinet6/in6.h:618: error: syntax error before `(' token
/usr/include/netinet6/in6.h:619: error: syntax error before `(' token
/usr/include/netinet6/in6.h:621: error: syntax error before `*' token
/usr/include/netinet6/in6.h:622: error: syntax error before `(' token
/usr/include/netinet6/in6.h:623: error: syntax error before `(' token
/usr/include/netinet6/in6.h:625: error: syntax error before `__P'
/usr/include/netinet6/in6.h:626: error: syntax error before `(' token
/usr/include/netinet6/in6.h:627: error: syntax error before `(' token
/usr/include/netinet6/in6.h:629: error: syntax error before `(' token
/usr/include/netinet6/in6.h:633: error: syntax error before `(' token
/usr/include/netinet6/in6.h:634: error: syntax error before `(' token
/usr/include/netinet6/in6.h:635: error: syntax error before `(' token
/usr/include/netinet6/in6.h:637: error: syntax error before `(' token
/usr/include/netinet6/in6.h:638: error: syntax error before `(' token
/usr/include/netinet6/in6.h:640: error: syntax error before `(' token
/usr/include/netinet6/in6.h:641: error: syntax error before `(' token
/usr/include/netinet6/in6.h:643: error: syntax error before `(' token
/usr/include/netinet6/in6.h:645: error: syntax error before `(' token
/usr/include/netinet6/in6.h:647: error: syntax error before `(' token
/usr/include/netinet6/in6.h:648: error: syntax error before `__P'
/usr/include/netinet6/in6.h:649: error: syntax error before `(' token
/usr/include/netinet6/in6.h:650: error: syntax error before `(' token
/usr/include/netinet6/in6.h:651: error: syntax error before `(' token
/usr/include/netinet6/in6.h:652: error: syntax error before `(' token
/usr/include/netinet6/in6.h:653: error: syntax error before `(' token
In file included from /usr/include/machine/ansi.h:33,
                 from /usr/include/runetype.h:65,
                 from /usr/include/ctype.h:69,
                 from dawg.h:32,
                 from dawg.cpp:33:
/usr/include/ppc/ansi.h:93: error: syntax error before `typedef'
/usr/include/ppc/ansi.h:96: error: parse error before `}' token
make[3]: *** [dawg.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive-am] Error 2

Original issue reported on code.google.com by Moe2...@gmail.com on 2 Sep 2007 at 6:57

GoogleCodeExporter commented 9 years ago
Yuk. Try changing the include of netinet/in.h to arpa/inet.h and see if that 
helps.

Original comment by theraysm...@gmail.com on 6 Sep 2007 at 12:15

GoogleCodeExporter commented 9 years ago
That works. Now it builds and runs. Thanks.

Original comment by Moe2...@gmail.com on 6 Sep 2007 at 2:39

GoogleCodeExporter commented 9 years ago
netinet will be removed from 3.00

Original comment by theraysm...@gmail.com on 28 Dec 2008 at 6:47

GoogleCodeExporter commented 9 years ago
Fixed in 2.04.

Original comment by theraysm...@gmail.com on 30 Dec 2008 at 6:29