SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] COMPILE ERROR


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: amar deka <amar_nitw2000 AT yahoo.co.in>
  • Cc: Thomas Dreibholz <dreibh AT iem.uni-due.de>, discussion AT sctp.de, rajahammad AT gmail.com, "Nils O. Selåsdal" <NOS AT Utel.no>
  • Subject: Re: [SCTP-Discussion] COMPILE ERROR
  • Date: Sun Mar 6 08:02:00 2005
  • List-id: SCTP Discussions <discussion.sctp.de>

You might need to add
-L/usr/local/lib
and please keep in mind that the new sctp library
is called
libsctplib
and not
libsctp
anymore.

So you need

gcc -o server -L/usr/local/lib -lsctplib -lglib echo_server.c sctp_wrapper.c

Best regards
Michael

On Mar 6, 2005, at 6:32 Uhr, amar deka wrote:


hi
thanks!
i am able to recover from the errors by
compiling
gcc -oserver -lsctp -lglib echo_server.c
sctp_wrapper.c

but when i tried to execute
./server
it gives me the following error

./server: error while loading shared libraries:
libsctp.so.1: cannot open shared object file: No such
file or directory

i checked my /usr/local/lib
it has 1.libsctp.la 2.libsctp.so.1.0.1 and links to
the second files.

then i tried to copy the libray files to /usr/lib
and the errors get removed.
now ./server working but its not echoing as xpected.
can u help?

amar

--- "Nils O. Selåsdal"
<NOS AT Utel.no>
wrote:
amar deka wrote:
hi all

i have installed sctplib-1.0.1 and socketapi-1.3.1

by the following commands
./configure
make
make install
as root and the path for the above was
/root/sctplib-1.0.1
/root/socketapi-1.3.1

it was fine ..
but when i compile the sample programs in the
/root/sctplib-1.0.1/sctplib/programs viz.
echoserver.c
it gives me the followowing errors

[root@localhost programs]# gcc -lsctp -lglib
It seems "make" didn't cause this error, but rather
you tried
to compile it yourself. You should look at the
makefiles on what they
do, it is RIGHT there.

Notably, all examples uses the sctp_wrapper.c , so
you want
to compile and link that in as well..


we also tried

modprobe sctp
insmode sctp

but none of them worked.

we are running on mandrake linux 9.1
with kernel 2.4.21 that comes with it.

we also tried to upgrade the kernel to 2.6.9 which
has

support for sctp.
with folowing steps
make oldconfig
make
make modules
make modules_install
make install

If you have support for SCTP in the kernel, there is
no reason to use
sctplib.
see lksctp.sf.net for info/examples etc on the in
(linux) kernel SCTP
support.
These are 2 different project with diffrent goals.
(Both implement the
SCTP protocol ofcourse..)


-- Nils O. Selåsdal
www.utelsystems.com


_______________________________________________________________________ _
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony
_______________________________________________
discussion mailing list
discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/discussion






Archive powered by MHonArc 2.6.19+.

Top of page