SCTP Discussions

Text archives Help


RE: [SCTP-Discussion] Compile socketapi-2.1.0 error


Chronological Thread 
  • From: "WANG Leo" <goat AT alcatel-lucent.com>
  • To: "Thomas Dreibholz" <dreibh AT iem.uni-due.de>
  • Cc: sctp-discussion AT sctp.de
  • Subject: RE: [SCTP-Discussion] Compile socketapi-2.1.0 error
  • Date: Thu, 18 Dec 2008 09:14:35 +0800
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Thomas,

I manually add link flags and finally build it. See below

Thanks and regard,
Leo W

add -Xlinker -zmuldefs options to avoid 'multiple definition of' error
example:
/bin/sh ../libtool --mode=link g++ -Xlinker -zmuldefs -g -O2 -DLINUX -Wall
-g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include
-o libsctpsocket.la -rpath /usr/local/lib -version-info 0:0:0 -release 2100
thread.lo tdstrings.lo synchronizable.lo sctpsocketwrapper.lo
sctpsocketmaster.lo sctpsocket.lo sctpnotificationqueue.lo sctpassociation.lo
randomizer.lo internetaddress.lo condition.lo tools.lo socketaddress.lo
staticglobals.lo internetflow.lo unixaddress.lo /usr/local/lib/libsctplib.so
-L/lib64 -lglib-2.0 -lpthread

/bin/sh ../libtool --mode=link g++ -Xlinker -zmuldefs -g -O2 -DLINUX -Wall
-g3 -O0 -D_REENTRANT -D_THREAD_SAFE -DSCTP_SOCKET_API -I/usr/local/include
-o libcppsocketapi.la -rpath /usr/local/lib -version-info 0:0:0 -release 2100
libcppsocketapi_la-packetaddress.lo libcppsocketapi_la-tdsocket.lo
libcppsocketapi_la-breakdetector.lo libcppsocketapi_la-timedthread.lo
libcppsocketapi_la-trafficclassvalues.lo libcppsocketapi_la-streamsrcdest.lo
libcppsocketapi_la-ringbuffer.lo ../socketapi/libsctpsocket.la



-----Original Message-----
From: Thomas Dreibholz
[mailto:dreibh AT iem.uni-due.de]

Sent: 2008年12月17日 16:56
To: WANG Leo
Cc:
sctp-discussion AT sctp.de
Subject: Re: [SCTP-Discussion] Compile socketapi-2.1.0 error

On Dienstag 16 Dezember 2008, WANG Leo wrote:
> Thomas,
>
> Thanks for your quick response.
> As for the --enable-shared I typed wrong in the email but did correctly
> when I compile.
>
> And I 'make clean' and tried './configure' both with and without
> '--enabled-shared' on sctplib and socketapi. I still get the same error in
> previous email. Any further suggestion on debugging this issue?

Could you try "make distclean" and "./autogen.sh" in the main directory of
socketapi? Please send the file config.log which is produced by that. Does
this work? This should create a static version.

After that, try "./configure" and "make" again to try creating a shared
version.


I will also send you the latest sctplib and socketapi sources from our SVN
repository to try them. You will receive them in another e-mail.


Best regards
--
=======================================================================
Dr. Thomas Dreibholz

University of Duisburg-Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
-----------------------------------------------------------------------
E-Mail:
dreibh AT iem.uni-due.de
Homepage: http://www.iem.uni-due.de/~dreibh
=======================================================================




Archive powered by MHonArc 2.6.19+.

Top of page