And allow building with clang, which uses c99 mode by default. How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/phc-0.1.7.log $ make CC=clang CXX=clang++ [...] gmake[2]: Entering directory `/usr/ports/lang/phc/work/phc-0.1.7' clang++ -O2 -pipe -rdynamic -o phc ... lex.yy.o: In function `PHP_lex(Object**, void*)': /usr/ports/lang/phc/work/phc-0.1.7/generated_src/php_scanner.lex:200: undefined reference to `in_word_set' clang++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [phc] Error 1 $ make CC=clang CXX=clang++ [...] gmake[2]: Entering directory `/usr/ports/lang/phc/work/phc-0.1.7/plugins/tutorials' ../../phc_compile_plugin -I../.. -I../../include -O0 -ggdb3 -o Expand_includes.so Expand_includes.cpp In file included from Expand_includes.cpp:2: In file included from ../../include/phc/Tree_transform.h:8: In file included from ../../include/phc/ast.h:13: ../../include/phc/lib/List.h:123:3: error: use of undeclared identifier 'insert' insert(end(), other->begin(), other->end()); ^ this-> Expand_includes.cpp:45:9: note: in instantiation of member function 'List<AST_statement *, std::allocator<AST_statement *> >::push_back_all' requested here out->push_back_all(run->statements); ^ /usr/include/c++/4.2/bits/stl_list.h:793:7: note: must qualify identifier to find this declaration in dependent base class insert(iterator __position, const value_type& __x); ^ /usr/include/c++/4.2/bits/stl_list.h:808:7: note: must qualify identifier to find this declaration in dependent base class insert(iterator __position, size_type __n, const value_type& __x) ^ /usr/include/c++/4.2/bits/stl_list.h:829:9: note: must qualify identifier to find this declaration in dependent base class insert(iterator __position, _InputIterator __first, ^ 1 error generated.
Maintainer of lang/phc, Please note that PR ports/162540 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/162540 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
Responsible Changed From-To: freebsd-ports-bugs->miwi y
State Changed From-To: open->closed Committed. Thanks!
miwi 2011-11-28 11:43:28 UTC FreeBSD ports repository Modified files: lang/phc Makefile Log: - Fix build with CLANG PR: 162540 Submitted by: Jan Beich <jbeich@tormail.net> Approved by: maintainer timeout Feature safe: yes Revision Changes Path 1.7 +7 -0 ports/lang/phc/Makefile _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"