Author Topic: [solved] CB doesn't build from svn  (Read 2930 times)

Offline keenblade

  • Multiple posting newcomer
  • *
  • Posts: 36
  • tao
    • keenblade
[solved] CB doesn't build from svn
« on: August 19, 2007, 04:26:48 pm »
Actually I have no problem with my C::B installation from svn on gentoo. But another user does. His environment is:
gcc-4.1.1,
glibc-2.5-r0
autoconf:  2.61
automake:  1.10
binutils:  2.16.1-r3
wxGTK-2.8.4.0
And his compile error:
Code: [Select]
wxrc_wxrc.o: In function `XmlResApp::FindStrings(wxXmlNode*)':
wxrc.cpp:(.text+0x5fa): undefined reference to `wxArrayString::Alloc(unsigned int)'
wxrc_wxrc.o: In function `XmlResApp::FindStrings()':
wxrc.cpp:(.text+0x825): undefined reference to `wxArrayString::Alloc(unsigned int)'
wxrc_wxrc.o: In function `wxArrayString::wxArrayString()':
wxrc.cpp:(.text._ZN13wxArrayStringC1Ev[wxArrayString::wxArrayString()]+0xc): undefined reference to `wxArrayString::Init(bool)'
wxrc_wxrc.o: In function `wxStringBase::wxStringBase(char const*)':
wxrc.cpp:(.text._ZN12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x8): undefined reference to `wxStringBase::npos'
wxrc.cpp:(.text._ZN12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x15): undefined reference to `wxStringBase::InitWith(char const*, unsigned int, unsigned int)'
wxrc_wxrc.o: In function `wxStringBase::ConcatSelf(unsigned int, char const*)':
wxrc.cpp:(.text._ZN12wxStringBase10ConcatSelfEjPKc[wxStringBase::ConcatSelf(unsigned int, char const*)]+0x12): undefined reference to `wxStringBase::ConcatSelf(unsigned int, char const*, unsigned int)'
wxrc_wxrc.o: In function `wxString::append(unsigned int, char)':
wxrc.cpp:(.text._ZN8wxString6appendEjc[wxString::append(unsigned int, char)]+0xc): undefined reference to `wxStringBase::append(unsigned int, char)'
wxrc_wxrc.o: In function `wxString::operator=(wxString const&)':
wxrc.cpp:(.text._ZN8wxStringaSERKS_[wxString::operator=(wxString const&)]+0xf): undefined reference to `wxStringBase::operator=(wxStringBase const&)'
wxrc_wxrc.o: In function `wxString::operator=(char const*)':
wxrc.cpp:(.text._ZN8wxStringaSEPKc[wxString::operator=(char const*)]+0x5): undefined reference to `wxStringBase::operator=(char const*)'
wxrc_wxrc.o: In function `wxString::operator=(char)':
wxrc.cpp:(.text._ZN8wxStringaSEc[wxString::operator=(char)]+0xc): undefined reference to `wxStringBase::operator=(char)'
wxrc_wxrc.o: In function `StringSet_wxImplementation_HashTable::StringSet_wxImplementation_HashTable(unsigned int, wxStringHash const&, wxStringEqual const&, StringSet_wxImplementation_KeyEx const&)':
wxrc.cpp:(.text._ZN36StringSet_wxImplementation_HashTableC2EjRK12wxStringHashRK13wxStringEqualRK32StringSet_wxImplementation_KeyEx[StringSet_wxImplementation_HashTable::StringSet_wxImplementation_HashTable(unsigned int, wxStringHash const&, wxStringEqual const&, StringSet_wxImplementation_KeyEx const&)]+0xe): undefined reference to `_wxHashTableBase2::GetNextPrime(unsigned long)'
wxrc_wxrc.o: In function `StringSet_wxImplementation_HashTable::ResizeTable(unsigned int)':
wxrc.cpp:(.text._ZN36StringSet_wxImplementation_HashTable11ResizeTableEj[StringSet_wxImplementation_HashTable::ResizeTable(unsigned int)]+0x10): undefined reference to `_wxHashTableBase2::GetNextPrime(unsigned long)'
wxrc.cpp:(.text._ZN36StringSet_wxImplementation_HashTable11ResizeTableEj[StringSet_wxImplementation_HashTable::ResizeTable(unsigned int)]+0x2e): undefined reference to `_wxHashTableBase2::DummyProcessNode(_wxHashTable_NodeBase*)'
wxrc.cpp:(.text._ZN36StringSet_wxImplementation_HashTable11ResizeTableEj[StringSet_wxImplementation_HashTable::ResizeTable(unsigned int)]+0x3e): undefined reference to `_wxHashTableBase2::CopyHashTable(_wxHashTable_NodeBase**, unsigned int, _wxHashTableBase2*, _wxHashTable_NodeBase**, unsigned long (*)(_wxHashTableBase2*, _wxHashTable_NodeBase*), _wxHashTable_NodeBase* (*)(_wxHashTable_NodeBase*))'
wxrc_wxrc.o: In function `StringSet_wxImplementation_HashTable::HashCopy(StringSet_wxImplementation_HashTable const&)':
wxrc.cpp:(.text._ZN36StringSet_wxImplementation_HashTable8HashCopyERKS_[StringSet_wxImplementation_HashTable::HashCopy(StringSet_wxImplementation_HashTable const&)]+0x2b): undefined reference to `_wxHashTableBase2::CopyHashTable(_wxHashTable_NodeBase**, unsigned int, _wxHashTableBase2*, _wxHashTable_NodeBase**, unsigned long (*)(_wxHashTableBase2*, _wxHashTable_NodeBase*), _wxHashTable_NodeBase* (*)(_wxHashTable_NodeBase*))'
wxrc_wxrc.o: In function `StringSet_wxImplementation_HashTable::clear()':
wxrc.cpp:(.text._ZN36StringSet_wxImplementation_HashTable5clearEv[StringSet_wxImplementation_HashTable::clear()]+0x15): undefined reference to `_wxHashTableBase2::DeleteNodes(unsigned int, _wxHashTable_NodeBase**, void (*)(_wxHashTable_NodeBase*))'
wxrc_wxrc.o: In function `wxBaseArrayPtrVoid::clear()':
wxrc.cpp:(.text._ZN18wxBaseArrayPtrVoid5clearEv[wxBaseArrayPtrVoid::clear()]+0x5): undefined reference to `wxBaseArrayPtrVoid::Clear()'
collect2: ld returned 1 exit status
What is the problem do you think?
« Last Edit: August 20, 2007, 01:30:29 am by keenblade »
Anyway it\'s all the same at the end...

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: CB doesn't build from svn
« Reply #1 on: August 19, 2007, 05:32:11 pm »
It is not a Code::Blocks compilation error, opposed to the title of this thread suggests. The error is from compilation of wxWidgets source, not of C::B source.
Be a part of the solution, not a part of the problem.

Offline keenblade

  • Multiple posting newcomer
  • *
  • Posts: 36
  • tao
    • keenblade
Re: CB doesn't build from svn
« Reply #2 on: August 20, 2007, 01:21:13 am »
It is not a Code::Blocks compilation error, opposed to the title of this thread suggests. The error is from compilation of wxWidgets source, not of C::B source.
Yes, you are right. By cleaning of wxwidget and reinstalling fixed everything. thanks. Since the error is not on my computer, I misunderstood as it belongs to codeblocks.
« Last Edit: August 20, 2007, 01:30:04 am by keenblade »
Anyway it\'s all the same at the end...