Hi,
I just wanted to write some basic SCTP applications using sctplib-1.0.7 and Socketapi-2.1.0 . I ran into problems when compiling Socketapi-2.1.0 . I am using a SUN Ultra Server with Solaris 8 OS installed on it.
I have installed sctplib-1.0.7 using ./configure , make and make install successfully.
I am able to run ./configure on Socketapi-2.1.0 also. But when I run “make” it results in a compilation problem.
Please can you help me to solve this. The trace is below.
/socketapi-2.1.0/> make
make all-recursive
make[1]: Entering directory `/SIP_LoadBalancer/socketapi-2.1.0'
Making all in socketapi
make[2]: Entering directory `/SIP_LoadBalancer/socketapi-2.1.0/socketapi'
source='thread.cc' object='thread.lo' libtool=yes \
depfile='.deps/thread.Plo' tmpdepfile='.deps/thread.TPlo' \
depmode=gcc /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c -o thread.lo `test -f 'thread.cc' || echo './'`thread.cc
mkdir .libs
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c thread.cc -Wp,-MD,.deps/thread.TPlo -fPIC -DPIC -o .libs/thread.o
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c thread.cc -Wp,-MD,.deps/thread.TPlo -o thread.o >/dev/null 2>&1
source='tdstrings.cc' object='tdstrings.lo' libtool=yes \
depfile='.deps/tdstrings.Plo' tmpdepfile='.deps/tdstrings.TPlo' \
depmode=gcc /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c -o tdstrings.lo `test -f 'tdstrings.cc' || echo './'`tdstrings.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c tdstrings.cc -Wp,-MD,.deps/tdstrings.TPlo -fPIC -DPIC -o .libs/tdstrings.o
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c tdstrings.cc -Wp,-MD,.deps/tdstrings.TPlo -o tdstrings.o >/dev/null 2>&1
source='synchronizable.cc' object='synchronizable.lo' libtool=yes \
depfile='.deps/synchronizable.Plo' tmpdepfile='.deps/synchronizable.TPlo' \
depmode=gcc /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c -o synchronizable.lo `test -f 'synchronizable.cc' || echo './'`synchronizable.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c synchronizable.cc -Wp,-MD,.deps/synchronizable.TPlo -fPIC -DPIC -o .libs/synchronizable.o
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c synchronizable.cc -Wp,-MD,.deps/synchronizable.TPlo -o synchronizable.o >/dev/null 2>&1
source='sctpsocketwrapper.cc' object='sctpsocketwrapper.lo' libtool=yes \
depfile='.deps/sctpsocketwrapper.Plo' tmpdepfile='.deps/sctpsocketwrapper.TPlo' \
depmode=gcc /bin/bash ../admin/depcomp \
/bin/bash ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c -o sctpsocketwrapper.lo `test -f 'sctpsocketwrapper.cc' || echo './'`sctpsocketwrapper.cc
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -g -O2 -D_XPG4_2 -D__EXTENSIONS__ -DSOLARIS -D__sun -DSUN -DSUNOS_5 -Wall -g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include -c sctpsocketwrapper.cc -Wp,-MD,.deps/sctpsocketwrapper.TPlo -fPIC -DPIC -o .libs/sctpsocketwrapper.o
sctpsocketwrapper.cc: In function `int ext_sendmsg_singlebuffer(int, const msghdr *, int)':
sctpsocketwrapper.cc:2379: `MSG_FLUSH' undeclared (first use this function)
sctpsocketwrapper.cc:2379: (Each undeclared identifier is reported only once
sctpsocketwrapper.cc:2379: for each function it appears in.)
sctpsocketwrapper.cc:2436: warning: control reaches end of non-void function `ext_sendmsg_singlebuffer(int, const msghdr *, int)'
make[2]: *** [sctpsocketwrapper.lo] Error 1
make[2]: Leaving directory `/SIP_LoadBalancer/socketapi-2.1.0/socketapi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/SIP_LoadBalancer/socketapi-2.1.0'
make: *** [all] Error 2
Pradeep B. | Tech Mahindra R&D
9/7 , Hosur Road , Bangalore - 29
( Office: +91 80 40243657 | Cell: +91 99002 06330
Email: pradeepb AT techmahindra.com
www.techmahindra.com
============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally and http://tim.techmahindra.com/Disclaimer.html internally within Tech Mahindra. ============================================================================================================================ |
Archive powered by MHonArc 2.6.19+.