Kronuz/SublimeCodeIntel — Issue #85: ./build.sh fails on OS X Snow Leopard
Author: leikind
Created: 2012-01-19 09:53:27+00:00
State: open

```shell
$ /usr/bin/gcc-4.2 -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5666.3~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
```

```shell
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -O2 -fwrapv -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I../scintilla/src -I../scintilla/include -ILib/Src -I/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c ../scintilla/src/LexUDL.cxx -o build/temp.macosx-10.6-x86_64-2.6/../scintilla/src/LexUDL.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
../scintilla/src/LexUDL.cxx:21:18: error: pcre.h: No such file or directory
../scintilla/src/LexUDL.cxx:720: error: ISO C++ forbids declaration of ‘pcre’ with no type
../scintilla/src/LexUDL.cxx:720: error: expected ‘;’ before ‘*’ token
../scintilla/src/LexUDL.cxx: In constructor ‘Transition::Transition(int, char*, int, int, bool, int, int, int, bool)’:
../scintilla/src/LexUDL.cxx:763: error: ‘PCRE_ANCHORED’ was not declared in this scope
../scintilla/src/LexUDL.cxx:765: error: ‘PCRE_CASELESS’ was not declared in this scope
../scintilla/src/LexUDL.cxx:769: error: ‘p_pattern’ was not declared in this scope
../scintilla/src/LexUDL.cxx:770: error: ‘pcre_compile’ was not declared in this scope
../scintilla/src/LexUDL.cxx:778: error: ‘p_pattern’ was not declared in this scope
../scintilla/src/LexUDL.cxx: In destructor ‘Transition::~Transition()’:
../scintilla/src/LexUDL.cxx:784: error: ‘p_pattern’ was not declared in this scope
../scintilla/src/LexUDL.cxx:786: error: ‘pcre_free’ was not declared in this scope
../scintilla/src/LexUDL.cxx: At global scope:
../scintilla/src/LexUDL.cxx:2957: error: ‘pcre’ was not declared in this scope
../scintilla/src/LexUDL.cxx:2957: error: ‘p_compiledPattern’ was not declared in this scope
../scintilla/src/LexUDL.cxx:2958: error: expected primary-expression before ‘int’
../scintilla/src/LexUDL.cxx:2959: error: expected primary-expression before ‘int’
../scintilla/src/LexUDL.cxx:2960: error: expected primary-expression before ‘int’
../scintilla/src/LexUDL.cxx:2961: error: expected primary-expression before ‘*’ token
../scintilla/src/LexUDL.cxx:2961: error: ‘p_CurrTextLine’ was not declared in this scope
../scintilla/src/LexUDL.cxx:2962: error: expected primary-expression before ‘*’ token
../scintilla/src/LexUDL.cxx:2962: error: ‘p_MainInfo’ was not declared in this scope
../scintilla/src/LexUDL.cxx:2963: error: expected primary-expression before ‘*’ token
../scintilla/src/LexUDL.cxx:2963: error: ‘p_BufferStateInfo’ was not declared in this scope
../scintilla/src/LexUDL.cxx:2964: error: expected primary-expression before ‘&’ token
../scintilla/src/LexUDL.cxx:2964: error: ‘styler’ was not declared in this scope
../scintilla/src/LexUDL.cxx:2964: error: initializer expression list treated as compound expression
../scintilla/src/LexUDL.cxx:2965: error: expected ‘,’ or ‘;’ before ‘{’ token
../scintilla/src/LexUDL.cxx:2488: warning: ‘int create_line_state(int, int)’ defined but not used
../scintilla/src/LexUDL.cxx:2513: warning: ‘void synchronizeDocStart(unsigned int&, int&, int&, int&, Accessor&, MainInfo*)’ defined but not used
../scintilla/src/LexUDL.cxx:2682: warning: ‘void doActions(Transition*, int&, int&, int, int&, int&, MainInfo*, BufferStateInfo*, Accessor&)’ defined but not used
../scintilla/src/LexUDL.cxx:2845: warning: ‘bool doLookBackTest(Transition*, int, MainInfo*, Accessor&)’ defined but not used
../scintilla/src/LexUDL.cxx:2934: warning: ‘bool lookingAtString(const char*, int, int&, int, Accessor&)’ defined but not used
../scintilla/src/LexUDL.cxx:2957: warning: ‘lookingAtMatch’ defined but not used
error: command '/usr/bin/gcc-4.2' failed with exit status 1
```