RSPlib Discussions

Text archives Help


Re: [RSPlib-Discusssion] linking to rsplib and socketapi


Chronological Thread 
  • From: "Marjan Bozinovski" <marjanb AT cpk.auc.dk>
  • To: "Thomas Dreibholz" <dreibh AT exp-math.uni-essen.de>, <rsplib-discussion AT sctp.de>
  • Subject: Re: [RSPlib-Discusssion] linking to rsplib and socketapi
  • Date: Fri Mar 21 13:57:00 2003
  • List-id: RSPlib Discussions <rsplib-discussion.sctp.de>

Thank you Thomas, I solved the problem.

The problem was, I actually ordered the included
libraries -lrsplib, -lsctpsocket, -lsctp and -lglib before
the compiler call for the file 'trns.o'. By putting the
libraries after calling 'trns.o', the source got
successfully compiled.

Best regards,
Marjan


----- Original Message -----
From: "Thomas Dreibholz"
<dreibh AT exp-math.uni-essen.de>
To: "Marjan Bozinovski"
<marjanb AT cpk.auc.dk>;
<rsplib-discussion AT sctp.de>
Sent: Friday, March 21, 2003 1:09 PM
Subject: Re: [RSPlib-Discusssion] linking to rsplib and
socketapi


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Freitag, 21. März 2003 10:29 schrieb Marjan Bozinovski:
> Hi,
>
> I am now trying to port the rsplib, socketapi and sctp to
another
> application under Linux SuSE 7.3. Therefore, in the
MakeFile of the
> application I included the directories where the necessary
header files
> are, and tried to link it
with -lrsplib, -lsctpsocket, -lsctp and -lglib.
> But, I definitely did not do it properly so the following
error was
> displayed:
>
>
> ----------------------------------------------------------
-----------------
>-----
>
> trns.o: In function `cleanUp(void)':
> trns.o(.text+0x19): undefined reference to `ext_close'
> trns.o(.text+0x2b): undefined reference to `rspCleanUp'
> trns.o: In function `initAll(void)':
> trns.o(.text+0x47): undefined reference to `rspInitialize'
> trns.o(.text+0x83): undefined reference to
`installBreakDetector'
> trns.o: In function `connectToUAS(int *)':
> trns.o(.text+0xe6): undefined reference to `ext_socket'
> trns.o(.text+0x125): undefined reference to `fputaddress'
> trns.o(.text+0x146): undefined reference to
`setNonBlocking'
> trns.o(.text+0x158): undefined reference to `getSocklen'
> trns.o(.text+0x16d): undefined reference to `ext_connect'
> trns.o(.text+0x272): undefined reference to `ext_select'
> trns.o(.text+0x2da): undefined reference to `ext_close'
> collect2: ld returned 1 exit status
> make: *** [sipsrv] Error 1
>
> ----------------------------------------------------------
-----------------
>-----

Are you really sure that the compiler call for this file
(trns.*) contains the
libraries? If yes, try to reorder the included libraries,
e.g. if -lsctp is
given as the last library, try it as first library etc. and
see if there are
any changes.


Best regards
- --
============================================================
===========
Dipl.-Inform. Thomas Dreibholz

University of Essen, Room ES210
Inst. for Experimental Mathematics
Ellernstraße 29
Computer Networking Technology Group D-45326
Essen/Germany
- ----------------------------------------------------------
-------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage: http://www.exp-math.uni-essen.de/~dreibh
============================================================
===========
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+ewDz32BbsHYPLWURAkT8AJ9Mm1AIBSTtm5g5HDCYz9W7SbhX2QCf
Uepl
e/FG8dOubFzBC6/QpLxktf4=
=fLj8
-----END PGP SIGNATURE-----






Archive powered by MHonArc 2.6.19+.

Top of page