Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttf2eot doesn't compilable on Linux platform #29

Open
GoogleCodeExporter opened this issue Mar 6, 2016 · 0 comments
Open

ttf2eot doesn't compilable on Linux platform #29

GoogleCodeExporter opened this issue Mar 6, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. make

What is the expected output? What do you see instead?

feniks@anna /tmp/ttf $ make
g++    -c -o OpenTypeUtilities.o OpenTypeUtilities.cpp
OpenTypeUtilities.cpp:227:18: warning: multi-character character constant 
[-Wmultichar]
OpenTypeUtilities.cpp:247:18: warning: multi-character character constant 
[-Wmultichar]
OpenTypeUtilities.cpp:257:18: warning: multi-character character constant 
[-Wmultichar]
OpenTypeUtilities.cpp: In function ‘bool getEOTHeader(unsigned char*, size_t, 
std::vector<unsigned char>&, size_t&, size_t&, size_t&)’:
OpenTypeUtilities.cpp:197:41: error: expected primary-expression before ‘,’ 
token
OpenTypeUtilities.cpp:197:43: error: ‘tables’ was not declared in this scope
OpenTypeUtilities.cpp:197:49: error: ‘offsetof’ was not declared in this 
scope
OpenTypeUtilities.cpp:202:41: error: expected primary-expression before ‘,’ 
token
OpenTypeUtilities.cpp:202:43: error: ‘tables’ was not declared in this scope
OpenTypeUtilities.cpp:202:49: error: ‘offsetof’ was not declared in this 
scope
OpenTypeUtilities.cpp:259:70: error: expected primary-expression before ‘,’ 
token
OpenTypeUtilities.cpp:259:72: error: ‘nameRecords’ was not declared in this 
scope                                                                           


OpenTypeUtilities.cpp:259:83: error: ‘offsetof’ was not declared in this 
scope                                                                           


OpenTypeUtilities.cpp:265:74: error: expected primary-expression before ‘,’ 
token                                                                           


OpenTypeUtilities.cpp:265:76: error: ‘nameRecords’ was not declared in this 
scope                                                                           


OpenTypeUtilities.cpp:265:87: error: ‘offsetof’ was not declared in this 
scope                                                                           


make: *** [OpenTypeUtilities.o] Error 1


What version of the product are you using? On what operating system?
Product: ttf2eot-0.0.2-2.tar.gz 
OS: Gentoo
gcc: gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5)

Please provide any additional information below.
chromium source file OpenTypeUtilities.cpp doesn't copmiled because it doesn't 
include <stddef.h> . As file OpenTypeUtilities.cpp from other project and can 
be updated in a future, it is usefull to patch it from Makefile.

I attached fix for Makefile + patch OpenTypeUtilities.cpp file.

To apply this changes (ttf2eot_compile_fix.zip), please:
1. Store in project root file: add_stddef.patch
2. patch Makefiles with command: $ patch Makefile < Makefile.patch
3. Commit to svn.

Please, mention that author of this changes is: Maksym Sditanov 
<feniksa@rambler.ru>

Original issue reported on code.google.com by feniksgo...@gmail.com on 15 Jan 2014 at 3:52

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant