Ok here’s the straight dump from GCC4 - ugly stuff!
[mike@localhost makepanda]$ python makepanda.py --everything
-------------------------------------------------------------------
Makepanda Initial Status Report
Makepanda: Prefix Directory: built
Makepanda: Compiler: LINUXA
Makepanda: Optimize: 3
Makepanda: Keep Pkg: PYTHON ZLIB PNG JPEG TIFF VRPN FMOD NVIDIACG NSPR SSL FREETYPE FFTW
Makepanda: Omit Pkg: HELIX MILES MAYA5 MAYA6 MAYA65 MAX5 MAX6 MAX7
Makepanda: Thirdparty dir: thirdparty
Makepanda: DirectX SDK dir: None
Makepanda: Verbose vs. Quiet Level: 1
Makepanda: Don't generate API reference manual
Makepanda: Version ID: 0.0.0
Makepanda: MAYA5 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-maya5
Makepanda: MAYA6 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-maya6
Makepanda: MAYA65 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-maya65
Makepanda: MAX5 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-max5
Makepanda: MAX6 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-max6
Makepanda: MAX7 not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-max7
Makepanda: HELIX not yet supported under linux
Makepanda: I have automatically added this command-line option: --no-helix
Makepanda: You do not have a copy of MILES sound system
Makepanda: I have automatically added this command-line option: --no-miles
Makepanda: Caution: the built/lib directory is not in LD_LIBRARY_PATH
Makepanda: or /etc/ld.so.conf. You must add it before using panda.
-------------------------------------------------------------------
Starting compile in "dtool/src/dtoolutil" (0 sec):
g++ -ftemplate-depth-30 -c -o built/tmp/dtoolutil_composite1.o -I"/usr/include/python2.4" -Ithirdparty/linux-libs-a/nspr/include -Ibuilt/tmp -Idtool/src/dtoolutil -Ibuilt/include -O2 -DBUILDING_DTOOL dtool/src/dtoolutil/dtoolutil_composite1.cxx
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::destroy_node(std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >, _KeyOfValue = std::_Select1st<std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > > >, _Compare = std::less<std::string>, _Alloc = pallocator<pmap<std::string, std::string, std::less<std::string> > >]’:
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:1057: instantiated from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase(std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >, _KeyOfValue = std::_Select1st<std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > > >, _Compare = std::less<std::string>, _Alloc = pallocator<pmap<std::string, std::string, std::less<std::string> > >]’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:570: instantiated from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::~_Rb_tree() [with _Key = std::string, _Val = std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >, _KeyOfValue = std::_Select1st<std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > > >, _Compare = std::less<std::string>, _Alloc = pallocator<pmap<std::string, std::string, std::less<std::string> > >]’
dtool/src/dtoolutil/pandaSystem.cxx:33: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:389: error: no matching function for call to ‘pallocator<pmap<std::string, std::string, std::less<std::string> > >::destroy(std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >*)’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/ext/mt_allocator.h:614: note: candidates are: void __gnu_cxx::__mt_alloc_base<_Tp>::destroy(_Tp*) [with _Tp = pmap<std::string, std::string, std::less<std::string> >]
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::destroy_node(std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’:
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:1057: instantiated from ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase(std::_Rb_tree_node<_Val>*) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:570: instantiated from ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::~_Rb_tree() [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’
dtool/src/dtoolutil/pandaSystem.cxx:220: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:389: error: no matching function for call to ‘pallocator<std::string>::destroy(std::pair<const std::string, std::string>*)’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/ext/mt_allocator.h:614: note: candidates are: void __gnu_cxx::__mt_alloc_base<_Tp>::destroy(_Tp*) [with _Tp = std::string]
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h: In member function ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(const _Val&) [with _Key = std::string, _Val = std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >, _KeyOfValue = std::_Select1st<std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > > >, _Compare = std::less<std::string>, _Alloc = pallocator<pmap<std::string, std::string, std::less<std::string> > >]’:
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:793: instantiated from ‘typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, const _Val&) [with _Key = std::string, _Val = std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >, _KeyOfValue = std::_Select1st<std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > > >, _Compare = std::less<std::string>, _Alloc = pallocator<pmap<std::string, std::string, std::less<std::string> > >]’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:882: instantiated from ‘std::pair<typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator, bool> std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::insert_unique(const _Val&) [with _Key = std::string, _Val = std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >, _KeyOfValue = std::_Select1st<std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > > >, _Compare = std::less<std::string>, _Alloc = pallocator<pmap<std::string, std::string, std::less<std::string> > >]’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_map.h:360: instantiated from ‘std::pair<typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::iterator, bool> std::map<_Key, _Tp, _Compare, _Alloc>::insert(const std::pair<const _Key, _Tp>&) [with _Key = std::string, _Tp = pmap<std::string, std::string, std::less<std::string> >, _Compare = std::less<std::string>, _Alloc = pallocator<pmap<std::string, std::string, std::less<std::string> > >]’
dtool/src/dtoolutil/pandaSystem.cxx:220: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:367: error: no matching function for call to ‘pallocator<pmap<std::string, std::string, std::less<std::string> > >::construct(std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >*, const std::pair<const std::string, pmap<std::string, std::string, std::less<std::string> > >&)’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/ext/mt_allocator.h:610: note: candidates are: void __gnu_cxx::__mt_alloc_base<_Tp>::construct(_Tp*, const _Tp&) [with _Tp = pmap<std::string, std::string, std::less<std::string> >]
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h: In member function ‘std::_Rb_tree_node<_Val>* std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_create_node(const _Val&) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’:
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:793: instantiated from ‘typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, const _Val&) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:902: instantiated from ‘typename std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::insert_unique(std::_Rb_tree_iterator<_Val>, const _Val&) [with _Key = std::string, _Val = std::pair<const std::string, std::string>, _KeyOfValue = std::_Select1st<std::pair<const std::string, std::string> >, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_map.h:384: instantiated from ‘typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::iterator std::map<_Key, _Tp, _Compare, _Alloc>::insert(typename std::_Rb_tree<_Key, std::pair<const _Key, _Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, _Alloc>::iterator, const std::pair<const _Key, _Tp>&) [with _Key = std::string, _Tp = std::string, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_map.h:339: instantiated from ‘_Tp& std::map<_Key, _Tp, _Compare, _Alloc>::operator[](const _Key&) [with _Key = std::string, _Tp = std::string, _Compare = std::less<std::string>, _Alloc = pallocator<std::string>]’
dtool/src/dtoolutil/pandaSystem.cxx:242: instantiated from here
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/bits/stl_tree.h:367: error: no matching function for call to ‘pallocator<std::string>::construct(std::pair<const std::string, std::string>*, const std::pair<const std::string, std::string>&)’
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../../include/c++/4.0.0/ext/mt_allocator.h:610: note: candidates are: void __gnu_cxx::__mt_alloc_base<_Tp>::construct(_Tp*, const _Tp&) [with _Tp = std::string]
Guess Panda3D doesn’t support GCC4 yet?