SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] Trouble compiling socketapi-2.2.5


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
  • To: sctp-discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] Trouble compiling socketapi-2.2.5
  • Date: Tue, 03 Sep 2013 23:35:49 +0200
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>
  • Organization: University of Duisburg-Essen, Institute for Experimental Mathematics

Hi Pedro,

please try an up-to-date version of sctplib and socketapi. See
http://www.exp-math.uni-essen.de/~dreibh/rserpool/#Download .

The latest versions are:
- socketapi-2.2.7
- sctplib-1.0.14


Tirsdag 3. september 2013 14.07.03 skrev
pedrobrochado AT net.sapo.pt:
> Hi,
>
> I am having trouble compiling socketapi-2.2.5. Can you help, please?
>
> System information:
> fedora 19 x86_64, kernel - 3.9.5
> gcc version 4.8.1 20130603 (Red Hat 4.8.1-1) (GCC)
> Glib versions installed
> glib.x86_64 1.2.10
> glib2.x86_64 2.36.3
>
> So far I've managed to build sctplib-1.0.11 successfully:
>
> [test@localhost sctplib-1.0.11]$ ./configure
> --prefix=/home/test/sctp_build/install_dir - OK
> [test@localhost sctplib-1.0.11]$ make && make install - OK
> [test@localhost sctp_build]$ ls -R /home/test/sctp_build/install_dir
>
> >> [test@localhost sctplib-1.0.11]$ ls -R /home/test/sctp_build/install_dir
> >> /home/test/sctp_build/install_dir:
> >> include lib
> >>
> >> /home/test/sctp_build/install_dir/include:
> >> sctp.h
> >>
> >> /home/test/sctp_build/install_dir/lib:
> >> libsctplib.a libsctplib.la libsctplib.so libsctplib.so.1
> >> libsctplib.so.1.0.8
>
> Howevern when I try to build socketapi-2.2.5 with the newly compiled
> sctplib-1.0.11 I have the following errors (I also have tried to
> install sctplib-1.0.11 on default folder, I also tried versions
> sctplib-1.0.4 and socketapi-1.7.0 and got the same error)
>
> [test@localhost socketapi-2.2.5]$ ./configure
> --with-sctplib=/home/test/sctp_build/install_dir
> --prefix=/home/test/sctp_build/install_dir - OK
>
> >> The socketapi package has been configured with the following options:
> >> Build with Maintainer Mode : no
> >>
> >> Build with SCTP over UDP : sctplib libraries :
> >> -L/home/test/sctp_build/install_dir/lib -lsctplib
> >>
> >> glib_LIBS : -lglib-2.0 Thread Libraries
> >>
> >> : -lpthread
> >>
> >> CFLAGS : -g -O2 -I/usr/include/glib-2.0
> >>
> >> -I/usr/lib64/glib-2.0/include -DLINUX -Wall -O3 -g0 -D_REENTRANT
> >> -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include
> >>
> >> CXXFLAGS : -g -O2 -DLINUX -Wall -O3 -g0
> >>
> >> -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include
> >>
> >> LDFLAGS :
> [test@localhost socketapi-2.2.5]$ make
>
> >> make all-recursive
> >> make[1]: Entering directory `/home/test/sctp_build/socketapi-2.2.5'
> >> Making all in socketapi
> >> make[2]: Entering directory
> >> `/home/test/sctp_build/socketapi-2.2.5/socketapi'
> >> Making all in docs
> >> make[3]: Entering directory
> >> `/home/test/sctp_build/socketapi-2.2.5/socketapi/docs'
> >> make[3]: Nothing to be done for `all'.
> >> make[3]: Leaving directory
> >> `/home/test/sctp_build/socketapi-2.2.5/socketapi/docs'
> >> make[3]: Entering directory
> >> `/home/test/sctp_build/socketapi-2.2.5/socketapi'
> >> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
> >> -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> >> -g -O2 -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE
> >> -DSCTP_SOCKET_API -I/home/test/sctp_build/install_dir/include -MT
> >> thread.lo -MD -MP -MF .deps/thread.Tpo -c -o thread.lo thread.cc
> >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I..
> >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2
> >> -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include -MT thread.lo -MD -MP
> >> -MF .deps/thread.Tpo -c thread.cc -fPIC -DPIC -o .libs/thread.o
> >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I..
> >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2
> >> -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include -MT thread.lo -MD -MP
> >> -MF .deps/thread.Tpo -c thread.cc -o thread.o >/dev/null 2>&1
> >> mv -f .deps/thread.Tpo .deps/thread.Plo
> >> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
> >> -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> >> -g -O2 -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE
> >> -DSCTP_SOCKET_API -I/home/test/sctp_build/install_dir/include -MT
> >> tdstrings.lo -MD -MP -MF .deps/tdstrings.Tpo -c -o tdstrings.lo
> >> tdstrings.cc
> >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I..
> >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2
> >> -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include -MT tdstrings.lo -MD
> >> -MP -MF .deps/tdstrings.Tpo -c tdstrings.cc -fPIC -DPIC -o
> >> .libs/tdstrings.o
> >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I..
> >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2
> >> -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include -MT tdstrings.lo -MD
> >> -MP -MF .deps/tdstrings.Tpo -c tdstrings.cc -o tdstrings.o
> >>
> >> >/dev/null 2>&1
> >>
> >> mv -f .deps/tdstrings.Tpo .deps/tdstrings.Plo
> >> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
> >> -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> >> -g -O2 -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE
> >> -DSCTP_SOCKET_API -I/home/test/sctp_build/install_dir/include -MT
> >> synchronizable.lo -MD -MP -MF .deps/synchronizable.Tpo -c -o
> >> synchronizable.lo synchronizable.cc
> >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I..
> >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2
> >> -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include -MT synchronizable.lo
> >> -MD -MP -MF .deps/synchronizable.Tpo -c synchronizable.cc -fPIC
> >> -DPIC -o .libs/synchronizable.o
> >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I..
> >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2
> >> -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include -MT synchronizable.lo
> >> -MD -MP -MF .deps/synchronizable.Tpo -c synchronizable.cc -o
> >> synchronizable.o >/dev/null 2>&1
> >> mv -f .deps/synchronizable.Tpo .deps/synchronizable.Plo
> >> /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H
> >> -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
> >> -g -O2 -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE
> >> -DSCTP_SOCKET_API -I/home/test/sctp_build/install_dir/include -MT
> >> sctpsocketwrapper.lo -MD -MP -MF .deps/sctpsocketwrapper.Tpo -c -o
> >> sctpsocketwrapper.lo sctpsocketwrapper.cc
> >> libtool: compile: g++ -DHAVE_CONFIG_H -I. -I..
> >> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g -O2
> >> -DLINUX -Wall -O3 -g0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API
> >> -I/home/test/sctp_build/install_dir/include -MT
> >> sctpsocketwrapper.lo -MD -MP -MF .deps/sctpsocketwrapper.Tpo -c
> >> sctpsocketwrapper.cc -fPIC -DPIC -o .libs/sctpsocketwrapper.o
> >> In file included from tdmessage.h:220:0,
> >>
> >> from sctpsocketwrapper.cc:61:
> >> tdmessage.icc: In member function 'SocketAddress*
> >> SocketMessage<size>::getAddress() const':
> >> tdmessage.icc:78:49: error: no matching function for call to
> >> 'SocketAddress::createSocketAddress(sockaddr*&, long unsigned int&)'
> >>
> >> (sockaddr*)&Address,sizeof(Address)));
> >>
> >> ^
> >>
> >> tdmessage.icc:78:49: note: candidates are:
> >> In file included from internetaddress.h:44:0,
> >>
> >> from sctpsocket.h:46,
> >> from extsocketdescriptor.h:44,
> >>
> >> from sctpsocketwrapper.cc:40:
> >> socketaddress.h:200:26: note: static SocketAddress*
> >> SocketAddress::createSocketAddress(integer)
> >>
> >> static SocketAddress* createSocketAddress(const integer family);
> >>
> >> ^
> >>
> >> socketaddress.h:200:26: note: candidate expects 1 argument, 2 provided
> >> socketaddress.h:209:26: note: static SocketAddress*
> >> SocketAddress::createSocketAddress(cardinal, const String&) <near
> >> match>
> >>
> >> static SocketAddress* createSocketAddress(const cardinal flags,
> >>
> >> const String& name);
> >>
> >> ^
> >>
> >> socketaddress.h:209:26: note: no known conversion for argument 1
> >> from 'sockaddr*' to 'cardinal {aka unsigned int}'
> >> socketaddress.h:219:26: note: static SocketAddress*
> >> SocketAddress::createSocketAddress(cardinal, const String&, card16)
> >>
> >> static SocketAddress* createSocketAddress(const cardinal flags,
> >>
> >> ^
> >>
> >> socketaddress.h:219:26: note: candidate expects 3 arguments, 2 provided
> >> socketaddress.h:231:26: note: static SocketAddress*
> >> SocketAddress::createSocketAddress(cardinal, sockaddr*, socklen_t)
> >>
> >> static SocketAddress* createSocketAddress(const cardinal flags,
> >>
> >> ^
> >>
> >> socketaddress.h:231:26: note: candidate expects 3 arguments, 2 provided
> >> sctpsocketwrapper.cc: In function 'ssize_t sctp_sendmsg(int, const
> >> void*, size_t, const sockaddr*, socklen_t, uint32_t, uint32_t,
> >> uint16_t, uint32_t, uint32_t)':
> >> sctpsocketwrapper.cc:3285:4: warning: narrowing conversion of
> >> 'flags' from 'uint32_t {aka unsigned int}' to 'int' inside { } is
> >> ill-formed in C++11 [-Wnarrowing]
> >>
> >> };
> >> ^
> >>
> >> sctpsocketwrapper.cc: In function 'ssize_t sctp_sendx(int, const
> >> void*, size_t, const sockaddr*, int, const sctp_sndrcvinfo*, int)':
> >> sctpsocketwrapper.cc:3362:4: warning: narrowing conversion of
> >> 'addrcnt' from 'int' to 'socklen_t {aka unsigned int}' inside { }
> >> is ill-formed in C++11 [-Wnarrowing]
> >>
> >> };
> >> ^
> >>
> >> make[3]: *** [sctpsocketwrapper.lo] Error 1
> >> make[3]: Leaving directory
> >> `/home/test/sctp_build/socketapi-2.2.5/socketapi' make[2]: ***
> >> [all-recursive] Error 1
> >> make[2]: Leaving directory
> >> `/home/test/sctp_build/socketapi-2.2.5/socketapi' make[1]: ***
> >> [all-recursive] Error 1
> >> make[1]: Leaving directory `/home/test/sctp_build/socketapi-2.2.5'
> >> make: *** [all] Error 2
>
> Best regards,
> Pedro

--
Best regards / Mit freundlichen Grüßen / Med vennlig hilsen

=======================================================================
Thomas Dreibholz

Simula Research Laboratory
Simula Innovation AS, Network Systems Group
Visiting address: Martin Linges vei 17, 1364 Fornebu, Norway
Mailing address: P.O.Box 134, 1325 Lysaker, Norway
-----------------------------------------------------------------------
E-Mail:
dreibh AT simula.no
Homepage: http://simula.no/people/dreibh
=======================================================================

Attachment: signature.asc
Description: This is a digitally signed message part.




Archive powered by MHonArc 2.6.19+.

Top of page