SCTP Discussions

Text archives Help


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


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: Narendran Manickavasagam <vmnaren AT gmail.com>
  • Cc: discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] Compilng Socket api error(excess elements in aggregate Init)
  • Date: Mon Jan 23 14:52:02 2006
  • List-id: SCTP Discussions <discussion.sctp.de>

The Solaris Platform is not supported for the socketapilib, only the sctplib has been ported...

Best regards
Michael

On Jan 23, 2006, at 11:43 Uhr, Narendran Manickavasagam wrote:

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