SCTP Discussions

Text archives Help


[SCTP-Discussion] Compilng Socket api error(excess elements in aggregate Init)


Chronological Thread 
  • From: Narendran Manickavasagam <vmnaren AT gmail.com>
  • To: discussion AT sctp.de
  • Subject: [SCTP-Discussion] Compilng Socket api error(excess elements in aggregate Init)
  • Date: Mon Jan 23 11:52:02 2006
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=aQaO2Ihw0nDy09RklcT6pMvgADUYnPeY2IPEN8ih7+Byp/013URDakMxOYlkAMmdaSQyZYZ4Hf9xsA3q7j9CGMT1bsBVCf7+It8daISEtPVD/ffvVbCCISZ3RDBqRRZU/F9RHMXm0fsslw1iSHruLTmLpu+f2/uTX7R72AKva/k=
  • List-id: SCTP Discussions <discussion.sctp.de>

Hello all,
 
I have compile the sctp library ,but unable to compile the socket API library on solaris 5.8 and following is the error message I got .(excess elelments in aggregate initializer).
 
Iam using the following library versions downloaded from sctp.de.
 
1.socketapi-1.7.0.tar.gz
2.sctplib-1.0.4.tar.gz
3.glib-1.2.10.tar.gz
 
I have given below the solaris configuration where am compiling the socket-API

SunOS 5.8 sparc SUNW,Ultra-5_10
 
Do any environ variables need to be set.When I browsed the net,it seems that solaris headers keep on changin for various versions and this might be the cause of the problem..Plz help me in this regard.
 
Error Messg
---------------------
make
make  all-recursive
make[1]: Entering directory
source='thread.cc' object='libsctpsocket_la-thread.lo' libtool=yes \
depfile='.deps/libsctpsocket_la-thread.Plo'
tmpdepfile='.deps/libsctpsocket_la- thread.TPlo' \
depmode=gcc3 /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I..
-I/usr/local/include -g -O2 -D_REENTRANT -D_THREAD_SAFE
-DSCTP_SOCKET_API -Wall -DSOLARIS -D__sun -DSUN -DSUNOS_5 -c -o
libsctpsocket_la-thread.lo `test -f 'thread.cc' || echo './'`thread.cc
 g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -g -O2
-D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -Wall -DSOLARIS -D__sun
-DSUN -DSUNOS_5 -c thread.cc -MT libsctpsocket_la-thread.lo -MF
.deps/libsctpsocket_la-thread.TPlo -MD -MP  -fPIC -DPIC -o
.libs/libsctpsocket_la-thread.o
In file included from /usr/local/include/g++-v3/bits/stl_alloc.h:38,
                from /usr/local/include/g++-v3/bits/std_memory.h:21,
                from /usr/local/include/g++-v3/bits/std_string.h:43,
                from /usr/local/include/g++-v3/bits/localefwd.h:42,
                from /usr/local/include/g++-v3/bits/std_ios.h:43,
                from /usr/local/include/g++-v3/bits/std_ostream.h:39,
                from /usr/local/include/g++-v3/bits/std_iostream.h:40,
                from /usr/local/include/g++-v3/iostream:31,
                from tdsystem.h:83,
                from thread.cc:39:
/usr/local/include/g++-v3/bits/stl_threads.h: In constructor
  `std::_Refcount_Base::_Refcount_Base(unsigned int)':
/usr/local/include/g++-v3/bits/stl_threads.h:85: excess elements in
aggregate
  initializer
/usr/local/include/g++-v3/bits/stl_alloc.h: At global scope:
/usr/local/include/g++-v3/bits/stl_alloc.h: In instantiation of
`std::_STL_mutex_lock std::__default_alloc_template<true,
0>::_S_node_allocator_lock':
/usr/local/include/g++-v3/bits/stl_alloc.h:287:   instantiated from
`std::__default_alloc_template<threads, inst>::_Lock::_Lock() [with bool
threads = true, int inst = 0]'
/usr/local/include/g++-v3/bits/stl_tree.h:309:   instantiated from
`std::_Rb_tree_iterator<_Value, _Value&, _Value*> std::_Rb_tree<_Key,
_Value, _KeyOfValue, _Compare,
_Alloc>::_M_insert(std::_Rb_tree_node_base*, std::_Rb_tree_node_base*,
const _Value&) [with _Key = Thread*, _Value = Thread*, _KeyOfValue =
std::_Identity<Thread*>, _Compare = std::less<Thread*>, _Alloc =
std::allocator<Thread*>]'
/usr/local/include/g++-v3/bits/stl_tree.h:877:   instantiated from
`std::pair<std::_Rb_tree_iterator<_Value, _Value&, _Value*>, bool>
std::_Rb_tree<_Key, _Value, _KeyOfValue, _Compare,
_Alloc>::insert_unique(const _Value&) [with _Key = Thread*, _Value =
Thread*, _KeyOfValue = std::_Identity<Thread*>, _Compare =
std::less<Thread*>, _Alloc = std::allocator<Thread*>]'
/usr/local/include/g++-v3/bits/stl_set.h:125:   instantiated from
`std::pair<typename std::_Rb_tree<_Key, _Key, std::_Identity<_Tp>,
_Compare, _Alloc>::const_iterator, bool> std::set<_Key, _Compare,
_Alloc>::insert(const _Key&) [with _Key = Thread*, _Compare =
std::less<Thread*>, _Alloc = std::allocator<Thread*>]'
thread.cc:136:   instantiated from here
/usr/local/include/g++-v3/bits/stl_alloc.h:494: excess elements in
aggregate
  initializer
make[2]: *** [libsctpsocket_la-thread.lo] Error 1
make[2]: Leaving directory
`/opt/hlrsce/narendran/SCTP/NEWSCTP/socketapi-1.7.0/socketapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/opt/hlrsce/narendran/SCTP/NEWSCTP/socketapi-1.7.0'
make: *** [all] Error 2

regards
VM.Narendran
 



Archive powered by MHonArc 2.6.19+.

Top of page