ggarlic / ttf2eot

Automatically exported from code.google.com/p/ttf2eot
0 stars 0 forks source link

Error compiling on Ubuntu 9.04 64bit #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I get the following compilation error on 64 bit Ubuntu 9.04.

adam@office1:~/Downloads/ttf2eot-0.0.2$ make
g++    -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp:220:18: warning: multi-character characte
OpenTypeUtilities.cpp:240:18: warning: multi-character characte
OpenTypeUtilities.cpp:250:18: warning: multi-character characte
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned 
 size_t&)’:
OpenTypeUtilities.cpp:190: warning: invalid access to non-stati
OpenTypeUtilities.cpp:190: warning: (perhaps the ‘offsetof’ mac
OpenTypeUtilities.cpp:195: warning: invalid access to non-stati
OpenTypeUtilities.cpp:195: warning: (perhaps the ‘offsetof’ mac
OpenTypeUtilities.cpp:252: warning: invalid access to non-stati
OpenTypeUtilities.cpp:252: warning: (perhaps the ‘offsetof’ mac
OpenTypeUtilities.cpp:258: warning: invalid access to non-stati
OpenTypeUtilities.cpp:258: warning: (perhaps the ‘offsetof’ mac
OpenTypeUtilities.cpp:311: error: ‘memcmp’ was not declared in 
make: *** [OpenTypeUtilities.o] Error 1

I will attempt to compile on a 32bit machine and see what happens.

Original issue reported on code.google.com by adampl...@gmail.com on 16 Apr 2009 at 9:18

GoogleCodeExporter commented 9 years ago
Oops looks like something got cut off...

adam@office1:~/Downloads/ttf2eot-0.0.2$ make
g++    -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp:220:18: warning: multi-character character constant
OpenTypeUtilities.cpp:240:18: warning: multi-character character constant
OpenTypeUtilities.cpp:250:18: warning: multi-character character constant
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned char*, size_t,
std::vector<unsigned char, std::allocator<unsigned char> >&, size_t&, size_t&, 
size_t&)’:
OpenTypeUtilities.cpp:190: warning: invalid access to non-static data member
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:190: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:195: warning: invalid access to non-static data member
‘sfntHeader::tables’ of NULL object
OpenTypeUtilities.cpp:195: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:252: warning: invalid access to non-static data member
‘nameTable::nameRecords’ of NULL object
OpenTypeUtilities.cpp:252: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:258: warning: invalid access to non-static data member
‘nameTable::nameRecords’ of NULL object
OpenTypeUtilities.cpp:258: warning: (perhaps the ‘offsetof’ macro was used 
incorrectly)
OpenTypeUtilities.cpp:311: error: ‘memcmp’ was not declared in this scope
make: *** [OpenTypeUtilities.o] Error 1

Original comment by adampl...@gmail.com on 16 Apr 2009 at 9:21

GoogleCodeExporter commented 9 years ago
I get the same result on Ubuntu 8.10 32bit

Original comment by adampl...@gmail.com on 16 Apr 2009 at 9:23

GoogleCodeExporter commented 9 years ago
Sorry for the spam... ;)

Looks like adding #include <string.h> after line 28 fixes it.  I've uploaded a
quick-n-dirty patch.

Original comment by adampl...@gmail.com on 16 Apr 2009 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago
Oops! Forgot to commit that change, thanks for testing! Fixed.

Original comment by taviso on 16 Apr 2009 at 9:30