Last modified: 2008-07-31 15:48:49 UTC
Created attachment 5088 [details] add required header. Relatively old bug since 4.3 has been out for a while, but in 4.3 header dependencies were fixed, and thus wikidiff2.cpp fails to build. ===== g++ -O2 `php-config --includes` -shared -fPIC -o php_wikidiff2.so wikidiff2.cpp wikidiff2_wrap.cpp wikidiff2.cpp: In function 'void line_explode(const char*, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&)': wikidiff2.cpp:401: error: 'strchr' was not declared in this scope wikidiff2.cpp:403: error: 'strlen' was not declared in this scope wikidiff2.cpp: In function 'const char* wikidiff2_do_diff(const char*, const char*, int)': wikidiff2.cpp:423: error: 'strlen' was not declared in this scope wikidiff2.cpp:429: error: 'strdup' was not declared in this scope wikidiff2.cpp:431: error: 'strdup' was not declared in this scope wikidiff2.cpp:433: error: 'strdup' was not declared in this scope make[1]: *** [php_wikidiff2.so] Error 1 make[1]: Leaving directory `/root/wikidiff2' ===== just needs a little love from string.h
Applied in r38301