Hi

Having compiled and run sipp for some years now under RedHat 9, I'm trying to 
build it under Centos 6.5.

I do  make  pcapplay_ossl

It compiles a number of modules OK, and then I get lots of "cannot bind packed 
field" errors when it tries to compile message.cpp

Please see the attached file.

This compiles just fine under RedHat 9!

Sorry to trouble you, but I'm rather stuck.

Kind regards,
Steve
g++   -D__LINUX -pthread -fpack-struct -DSVN_VERSION="\"unknown\"" 
-D_USE_OPENSSL -DOPENSSL_NO_KRB5 -DPCAPPLAY      -I. -I/usr/include/openssl  -c 
-o message.o message.cpp                                                        
                                                                                
                             
In file included from 
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ios:43,    
                                                                  
                 from 
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/ostream:40,
                                                                  
                 from 
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/iostream:40,
                                                                 
                 from stat.hpp:37,                                              
                                                                                
        
                 from scenario.hpp:32,                                          
                                                                                
        
                 from sipp.hpp:64,                                              
                                                                                
        
                 from message.cpp:39:                                           
                                                                                
        
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:
 In member function ‘std::ios_base::fmtflags 
std::ios_base::setf(std::ios_base::fmtflags)’:                                
                                                                                
                                                
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:585:
 error: cannot bind packed field 
‘((std::ios_base*)this)->std::ios_base::_M_flags’ to 
‘std::_Ios_Fmtflags&’                                                       
                                                                                
     
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:
 In member function ‘std::ios_base::fmtflags 
std::ios_base::setf(std::ios_base::fmtflags, std::ios_base::fmtflags)’:       
                                                                                
                                                
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:602:
 error: cannot bind packed field 
‘((std::ios_base*)this)->std::ios_base::_M_flags’ to 
‘std::_Ios_Fmtflags&’                                                       
                                                                                
     
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:603:
 error: cannot bind packed field 
‘((std::ios_base*)this)->std::ios_base::_M_flags’ to 
‘std::_Ios_Fmtflags&’                                                       
                                                                                
     
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:
 In member function ‘void std::ios_base::unsetf(std::ios_base::fmtflags)’:  
       
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:615:
 error: cannot bind packed field 
‘((std::ios_base*)this)->std::ios_base::_M_flags’ to 
‘std::_Ios_Fmtflags&’                                                       
                                                                                
     
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:
 In member function ‘long int& std::ios_base::iword(int)’:                  
       
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:749:
 error: cannot bind packed field ‘__word->std::ios_base::_Words::_M_iword’ 
to ‘long int&’                                                              
                                                                                
                
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:
 In member function ‘void*& std::ios_base::pword(int)’:                     
       
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/ios_base.h:770:
 error: cannot bind packed field ‘__word->std::ios_base::_Words::_M_pword’ 
to ‘void*&’                                                                 
                                                                                
                
message.cpp: At global scope:                                                   
                                                                                
        
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp:87: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                     
message.cpp: In constructor ‘SendingMessage::SendingMessage(scenario*, char*, 
bool)’:                                                                       
            
message.cpp:265: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:279: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:289: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:306: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:310: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp: In static member function ‘static void 
SendingMessage::parseAuthenticationKeyword(scenario*, MessageComponent*, 
char*)’:                                   
message.cpp:528: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:529: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:543: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:550: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
message.cpp:552: warning: deprecated conversion from string constant to 
‘char*’                                                                     
                    
In file included from 
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:61,    
                                                                  
                 from sipp.hpp:48,                                              
                                                                                
        
                 from message.cpp:39:                                           
                                                                                
        
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_map.h:
 In member function ‘_Tp& std::map<_Key, _Tp, _Compare, 
_Alloc>::operator[](const _Key&) [with _Key = std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, _Tp = int (*)(call*, 
MessageComponent*, char*, int), _Compare = std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, _Alloc = 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> >]’:   
                                                                                
                    
message.cpp:592:   instantiated from here                                       
                                                                                
        
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_map.h:451:
 error: cannot bind packed field ‘__i.std::_Rb_tree_iterator<_Tp>::operator* 
[with _Tp = std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, 
int)>]()->std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, 
int)>::second’ to ‘int (*&)(call*, MessageComponent*, char*, int)’        
                                                                                
                                                                         
In file included from 
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/map:60,    
                                                                  
                 from sipp.hpp:48,                                              
                                                                                
        
                 from message.cpp:39:                                           
                                                                                
        
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:
 In member function ‘std::_Rb_tree_node_base*& std::_Rb_tree<_Key, _Val, 
_KeyOfValue, _Compare, _Alloc>::_M_rightmost() [with _Key = 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Val = 
std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)>, 
_KeyOfValue = std::_Select1st<std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)> >, _Compare = std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, _Alloc = 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> >]’:   
                                                                                
                                                                  
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:1212:
   instantiated from ‘std::_Rb_tree_iterator<_Val> std::_Rb_tree<_Key, _Val, 
_KeyOfValue, _Compare, 
_Alloc>::_M_insert_unique_(std::_Rb_tree_const_iterator<_Val>, const _Val&) 
[with _Key = std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, _Val = std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)>, _KeyOfValue = std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, _Compare = 
std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> 
> >, _Alloc = std::allocator<std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)> >]’                                           
                                              
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_map.h:540:
   instantiated from ‘typename std::_Rb_tree<_Key, std::pair<const _Key, 
_Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename 
_Alloc::rebind<std::pair<const _Key, _Tp> >::other>::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, typename 
_Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator, const 
std::pair<const _Key, _Tp>&) [with _Key = std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, _Tp = int (*)(call*, 
MessageComponent*, char*, int), _Compare = std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, _Alloc = 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> >]’    
                                                 
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_map.h:450:
   instantiated from ‘_Tp& std::map<_Key, _Tp, _Compare, 
_Alloc>::operator[](const _Key&) [with _Key = std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, _Tp = int (*)(call*, 
MessageComponent*, char*, int), _Compare = std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, _Alloc = 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> >]’    
                                                                                
               
message.cpp:592:   instantiated from here                                       
                                                                                
        
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:474:
 error: cannot bind packed field ‘((std::_Rb_tree<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)>, std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> > 
>*)this)->std::_Rb_tree<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)>, std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> > 
>::_M_impl.std::_Rb_tree<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)>, std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> > 
>::_Rb_tree_impl<std::less<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >, 
false>::_M_header.std::_Rb_tree_node_base::_M_right’ to 
‘std::_Rb_tree_node_base*&’                  
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:
 In member function ‘std::_Rb_tree_node_base*& std::_Rb_tree<_Key, _Val, 
_KeyOfValue, _Compare, _Alloc>::_M_leftmost() [with _Key = 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, _Val = 
std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)>, 
_KeyOfValue = std::_Select1st<std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)> >, _Compare = std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, _Alloc = 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> >]’:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:1224:
   instantiated from ‘std::_Rb_tree_iterator<_Val> std::_Rb_tree<_Key, _Val, 
_KeyOfValue, _Compare, 
_Alloc>::_M_insert_unique_(std::_Rb_tree_const_iterator<_Val>, const _Val&) 
[with _Key = std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, _Val = std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)>, _KeyOfValue = std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, _Compare = 
std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> 
> >, _Alloc = std::allocator<std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)> >]’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_map.h:540:
   instantiated from ‘typename std::_Rb_tree<_Key, std::pair<const _Key, 
_Tp>, std::_Select1st<std::pair<const _Key, _Tp> >, _Compare, typename 
_Alloc::rebind<std::pair<const _Key, _Tp> >::other>::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, typename 
_Alloc::rebind<std::pair<const _Key, _Tp> >::other>::iterator, const 
std::pair<const _Key, _Tp>&) [with _Key = std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, _Tp = int (*)(call*, 
MessageComponent*, char*, int), _Compare = std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, _Alloc = 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> >]’
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_map.h:450:
   instantiated from ‘_Tp& std::map<_Key, _Tp, _Compare, 
_Alloc>::operator[](const _Key&) [with _Key = std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, _Tp = int (*)(call*, 
MessageComponent*, char*, int), _Compare = std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, _Alloc = 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> >]’
message.cpp:592:   instantiated from here
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:466:
 error: cannot bind packed field ‘((std::_Rb_tree<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)>, std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> > 
>*)this)->std::_Rb_tree<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)>, std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> > 
>::_M_impl.std::_Rb_tree<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, std::pair<const std::basic_string<char, 
std::char_traits<char>, std::allocator<char> >, int (*)(call*, 
MessageComponent*, char*, int)>, std::_Select1st<std::pair<const 
std::basic_string<char, std::char_traits<char>, std::allocator<char> >, int 
(*)(call*, MessageComponent*, char*, int)> >, std::less<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >, 
std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >, int (*)(call*, MessageComponent*, char*, int)> > 
>::_Rb_tree_impl<std::less<std::basic_string<char, std::char_traits<char>, 
std::allocator<char> > >, false>::_M_header.std::_Rb_tree_node_base::_M_left’ 
to ‘std::_Rb_tree_node_base*&’
make[1]: *** [message.o] Error 1
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Sipp-users mailing list
Sipp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sipp-users

Reply via email to