Apache OpenOffice (AOO) Bugzilla – Issue 110479
soltools' build fails with system-stlport
Last modified: 2010-06-28 15:51:04 UTC
Hi, this works in 3.2.0, but not anymore in DEV300_m74 (tried in cws cmcfixes73, but m74 is the same): system-stlport (usin 4.6) on i386. ============= Building module soltools ============= Entering /home/rene/OpenOffice.org/DEV300_m74/soltools/mkdepend mkout -- version: 1.8 touch /home/rene/OpenOffice.org/DEV300_m74/solver/300/unxlngi6.pro/inc/minormkchanged.flg Compiling: soltools/mkdepend/cppsetup.c cppsetup.c: In function '_my_if_errors': cppsetup.c:122: warning: unused parameter 'ip' cppsetup.c:123: warning: unused parameter 'cp' cppsetup.c:124: warning: unused parameter 'expecting' cppsetup.c: In function '_lookup_variable': cppsetup.c:159: warning: unused variable 'pd' Compiling: soltools/mkdepend/ifparser.c ifparser.c: In function 'parse_number': ifparser.c:105: warning: implicit declaration of function 'atoi' ifparser.c: In function 'parse_value': ifparser.c:161: warning: implicit declaration of function 'strncmp' Compiling: soltools/mkdepend/include.c include.c: In function 'inc_path': include.c:81: warning: implicit declaration of function 'warning1' include.c: In function 'issymbolic': include.c:243: warning: implicit declaration of function 'fatalerr' include.c: In function 'included_by': include.c:304: warning: implicit declaration of function 'warning' Compiling: soltools/mkdepend/main.c In file included from main.c:110: imakemdep.h:596: warning: missing initializer imakemdep.h:596: warning: (near initialization for 'predefs[0].p_next') imakemdep.h:599: warning: missing initializer imakemdep.h:599: warning: (near initialization for 'predefs[1].p_next') imakemdep.h:726: warning: missing initializer imakemdep.h:726: warning: (near initialization for 'predefs[2].p_next') main.c: In function 'catch': main.c:146: warning: implicit declaration of function 'fatalerr' main.c: In function 'main': main.c:353: warning: implicit declaration of function 'warning' main.c:459: warning: implicit declaration of function 'find_includes' main.c:463: warning: implicit declaration of function 'recursive_pr_include' main.c:464: warning: implicit declaration of function 'inc_clean' main.c: In function 'getfile': main.c:498: warning: comparison between signed and unsigned integer expressions main.c: In function 'fatalerr': main.c:733: warning: type of 'x1' defaults to 'int' main.c:733: warning: type of 'x2' defaults to 'int' main.c:733: warning: type of 'x3' defaults to 'int' main.c:733: warning: type of 'x4' defaults to 'int' main.c:733: warning: type of 'x5' defaults to 'int' main.c:733: warning: type of 'x6' defaults to 'int' main.c:733: warning: type of 'x7' defaults to 'int' main.c:733: warning: type of 'x8' defaults to 'int' main.c:733: warning: type of 'x9' defaults to 'int' main.c: In function 'warning': main.c:755: warning: type of 'x1' defaults to 'int' main.c:755: warning: type of 'x2' defaults to 'int' main.c:755: warning: type of 'x3' defaults to 'int' main.c:755: warning: type of 'x4' defaults to 'int' main.c:755: warning: type of 'x5' defaults to 'int' main.c:755: warning: type of 'x6' defaults to 'int' main.c:755: warning: type of 'x7' defaults to 'int' main.c:755: warning: type of 'x8' defaults to 'int' main.c:755: warning: type of 'x9' defaults to 'int' main.c:756: warning: unused parameter 'msg' main.c:755: warning: unused parameter 'x1' main.c:755: warning: unused parameter 'x2' main.c:755: warning: unused parameter 'x3' main.c:755: warning: unused parameter 'x4' main.c:755: warning: unused parameter 'x5' main.c:755: warning: unused parameter 'x6' main.c:755: warning: unused parameter 'x7' main.c:755: warning: unused parameter 'x8' main.c:755: warning: unused parameter 'x9' main.c: In function 'warning1': main.c:779: warning: type of 'x1' defaults to 'int' main.c:779: warning: type of 'x2' defaults to 'int' main.c:779: warning: type of 'x3' defaults to 'int' main.c:779: warning: type of 'x4' defaults to 'int' main.c:779: warning: type of 'x5' defaults to 'int' main.c:779: warning: type of 'x6' defaults to 'int' main.c:779: warning: type of 'x7' defaults to 'int' main.c:779: warning: type of 'x8' defaults to 'int' main.c:779: warning: type of 'x9' defaults to 'int' main.c:780: warning: unused parameter 'msg' main.c:779: warning: unused parameter 'x1' main.c:779: warning: unused parameter 'x2' main.c:779: warning: unused parameter 'x3' main.c:779: warning: unused parameter 'x4' main.c:779: warning: unused parameter 'x5' main.c:779: warning: unused parameter 'x6' main.c:779: warning: unused parameter 'x7' main.c:779: warning: unused parameter 'x8' main.c:779: warning: unused parameter 'x9' main.c: In function 'convert_slashes': main.c:796: warning: unused parameter 'path' main.c: In function 'append_slash': main.c:818: warning: unused variable 'ptr' Compiling: soltools/mkdepend/parse.c parse.c: In function 'find_includes': parse.c:49: warning: implicit declaration of function 'deftype' parse.c:56: warning: implicit declaration of function 'gobble' parse.c:122: warning: implicit declaration of function 'warning' parse.c:129: warning: implicit declaration of function 'add_include' parse.c:147: warning: implicit declaration of function 'warning1' parse.c: In function 'deftype': parse.c:240: warning: implicit declaration of function 'match' parse.c:258: warning: implicit declaration of function 'zero_value' parse.c: In function 'zero_value': parse.c:384: warning: implicit declaration of function 'cppsetup' parse.c: In function 'hash': parse.c:416: warning: unused variable 's' parse.c:415: warning: unused variable 'i' parse.c: In function 'hash_define': parse.c:502: warning: implicit declaration of function 'fatalerr' Compiling: soltools/mkdepend/pr.c pr.c: In function 'add_include': pr.c:42: warning: type of 'failOK' defaults to 'int' pr.c:61: warning: implicit declaration of function 'warning' pr.c:65: warning: implicit declaration of function 'warning1' pr.c:75: warning: implicit declaration of function 'included_by' pr.c:81: warning: implicit declaration of function 'find_includes' pr.c:82: warning: implicit declaration of function 'freefile' Compiling: soltools/mkdepend/collectdircontent.cxx In file included from /usr/include/stlport/stl/_tree.h:591, from /usr/include/stlport/stl/_set.h:34, from /usr/include/stlport/set:38, from /home/rene/OpenOffice.org/DEV300_m74/soltools/mkdepend/collectdircontent.hxx:6, from /home/rene/OpenOffice.org/DEV300_m74/soltools/mkdepend/collectdircontent.cxx:1: /usr/include/stlport/stl/_tree.c: In member function '_STL::pair<_STL::_Rb_tree_iterator<_Value, _STL::_Nonconst_traits<_Value> >, bool> _STL::_Rb_tree<_Key, _Value, _KeyOfValue, _Compare, _Alloc>::insert_unique(const _Value&)': /usr/include/stlport/stl/_tree.c:411: warning: suggest explicit braces to avoid ambiguous 'else' Making: makedepend unx ../unxlngi6.pro/obj/collectdircontent.o: In function `global constructors keyed to _ZN18IncludesCollection10split_pathERKN4_STL12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE': collectdircontent.cxx:(.text+0xc): undefined reference to `_STL::ios_base::_Loc_init::_Loc_init()' collectdircontent.cxx:(.text+0x1e): undefined reference to `_STL::ios_base::_Loc_init::~_Loc_init()' collectdircontent.cxx:(.text+0x2f): undefined reference to `_STL::ios_base::Init::Init()' collectdircontent.cxx:(.text+0x41): undefined reference to `_STL::ios_base::Init::~Init()' ../unxlngi6.pro/obj/collectdircontent.o: In function `T.338': collectdircontent.cxx:(.text+0x12e): undefined reference to `_STL::_Rb_global<bool>::_Rebalance(_STL::_Rb_tree_node_base*, _STL::_Rb_tree_node_base*&)' ../unxlngi6.pro/obj/collectdircontent.o: In function `T.340': collectdircontent.cxx:(.text+0x470): undefined reference to `_STL::_Rb_global<bool>::_Rebalance(_STL::_Rb_tree_node_base*, _STL::_Rb_tree_node_base*&)' ../unxlngi6.pro/obj/collectdircontent.o: In function `_STL::__node_alloc<true, 0>::allocate(unsigned int)': collectdircontent.cxx:(.text._ZN4_STL12__node_allocILb1ELi0EE8allocateEj[_STL::__node_alloc<true, 0>::allocate(unsigned int)]+0x1b): undefined reference to `_STL::__node_alloc<true, 0>::_M_allocate(unsigned int)' ../unxlngi6.pro/obj/collectdircontent.o: In function `_STL::_String_base<char, _STL::allocator<char> >::_M_allocate_block(unsigned int)': collectdircontent.cxx:(.text._ZN4_STL12_String_baseIcNS_9allocatorIcEEE17_M_allocate_blockEj[_STL::_String_base<char, _STL::allocator<char> >::_M_allocate_block(unsigned int)]+0x3b): undefined reference to `_STL::__stl_throw_length_error(char const*)' ../unxlngi6.pro/obj/collectdircontent.o: In function `_STL::__node_alloc<true, 0>::deallocate(void*, unsigned int)': collectdircontent.cxx:(.text._ZN4_STL12__node_allocILb1ELi0EE10deallocateEPvj[_STL::__node_alloc<true, 0>::deallocate(void*, unsigned int)]+0x22): undefined reference to `_STL::__node_alloc<true, 0>::_M_deallocate(void*, unsigned int)' ../unxlngi6.pro/obj/collectdircontent.o: In function `_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >::substr(unsigned int, unsigned int) const': collectdircontent.cxx:(.text._ZNK4_STL12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6substrEjj[_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >::substr(unsigned int, unsigned int) const]+0x24): undefined reference to `_STL::__stl_throw_out_of_range(char const*)' ../unxlngi6.pro/obj/collectdircontent.o: In function `_STL::_Rb_tree<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::_Identity<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > >::insert_unique(_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&)': collectdircontent.cxx:(.text._ZN4_STL8_Rb_treeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES6_NS_9_IdentityIS6_EENS_4lessIS6_EENS4_IS6_EEE13insert_uniqueERKS6_[_STL::_Rb_tree<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::_Identity<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > >::insert_unique(_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const&)]+0x75): undefined reference to `_STL::_Rb_global<bool>::_M_decrement(_STL::_Rb_tree_node_base*)' ../unxlngi6.pro/obj/collectdircontent.o: In function `_STL::_Rb_tree<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > >, _STL::_Select1st<_STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > > >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > > > >::insert_unique(_STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > > const&)': collectdircontent.cxx:(.text._ZN4_STL8_Rb_treeINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4pairIKS6_NS_3setIS6_NS_4lessIS6_EENS4_IS6_EEEEEENS_10_Select1stISE_EESB_NS4_ISE_EEE13insert_uniqueERKSE_[_STL::_Rb_tree<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > >, _STL::_Select1st<_STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > > >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > > > >::insert_unique(_STL::pair<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > const, _STL::set<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> >, _STL::less<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > >, _STL::allocator<_STL::basic_string<char, _STL::char_traits<char>, _STL::allocator<char> > > > > const&)]+0x75): undefined reference to `_STL::_Rb_global<bool>::_M_decrement(_STL::_Rb_tree_node_base*)' Entering /home/rene/OpenOffice.org/DEV300_m74/soltools/adjustvisibility Entering /home/rene/OpenOffice.org/DEV300_m74/soltools/support Making: all_soltools_support.dpslo Making: all_soltools_support.dpobj Compiling: soltools/support/simstr.cxx /bin/bash: line 1: 15000 Segmentation fault LD_LIBRARY_PATH=${LD_LIBRARY_PATH+${LD_LIBRARY_PATH}:}/home/rene/OpenOffice.org/DEV300_m74/solver/300/unxlngi6.pro/lib ../unxlngi6.pro/bin/makedepend @/tmp/mkvaHcsJ > ../unxlngi6.pro/misc/o_simstr.dpcc dmake: Error code 139, while making '../unxlngi6.pro/obj/simstr.obj' dmake: '../unxlngi6.pro/obj/simstr.obj' removed. rene@frodo:~/OpenOffice.org/DEV300_m74/soltools$ Did you change anything here?
on a first glance I don't see either a difference in includes (def.h) nor in the makefile...
there is a change in soltools/util/makefile.pmk to avoid STLport at all in favour of compiler stl. that might hit you here.
CCed: hjs
hjs: ah, indeed. wonder why I oversaw it. anyways, thanks for the hint - attached patch fixes it for me. It cares of two cases: STLPORT4=/usr (first !:=) and STLPORT4=/some/dir as created and used by the current debian/rules: ifneq "$(USE_STLPORT)" "y" CONFIGURE_FLAGS += --without-stlport else CONFIGURE_FLAGS += --with-stlport ifeq "$(USE_SYSTEM_STLPORT)" "y" CONFIGURE_FLAGS+= --with-stlport=$(CURDIR)/stlport endif endif [...] ifeq "$(USE_STLPORT)" "y" ifeq "$(USE_SYSTEM_STLPORT)" "y" # stlport home if [ ! -d stlport ]; then \ mkdir -p stlport; \ ln -sf /usr/include/stlport stlport/stlport; \ ln -sf /usr/lib stlport/lib; \ fi endif endif
Created attachment 68651 [details] patch which works for me
shouldn't we pass this to hjs?
mba: probably. he caused the breakage. Then again, he is CCed...
sorry, didn't realize that i was expected to be the one... taking care in ause120
applied patch
verified
close issue.