- From: Thomas Dreibholz <dreibh AT iem.uni-due.de>
- To: sctp-discussion AT sctp.de
- Cc: "<Shahrokh.Sheikholaeme AT tietoenator.com>" <Shahrokh.Sheikholaeme AT tietoenator.com>
- Subject: Re: [SCTP-Discussion] Re: build problems
- Date: Mon, 28 Jul 2008 14:58:38 +0200
- List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
- List-id: SCTP Discussions <sctp-discussion.sctp.de>
- Organization: University of Duisburg-Essen
On Montag 28 Juli 2008, Michael Tuexen wrote:
>
On Jul 28, 2008, at 12:37 PM,
>
<Shahrokh.Sheikholaeme AT tietoenator.com>
>
<Shahrokh.Sheikholaeme AT tietoenator.com
>
>
> wrote:
>
>
>
> Hi,
>
> I tried to mail the following email to the mailing list, but I am
>
> obviously not allowed. Please make the email available to the
>
> mailing list.
>
>
You need to subscribe...
>
>
> best regards
>
> Shahrokh
>
>
>
> From: Sheikholaeme Shahrokh
>
> Sent: 28. juli 2008 12:35
>
> To:
>
> 'discussion AT sctp.de'
>
> Subject: build problems
>
>
>
> I've downloaded sctplib-1.0.7 and socketapi-2.1.0. I've built stcp
>
> lib and as a result of "make install", there are following files/
>
> links in /usr/local/lib:
>
>
>
> lrwxrwxrwx 1 root root 24 Jul 28 11:36 libsctplib-1060.so.0 ->
>
> libsctplib-1060.so.0.0.0
>
> -rwxr-xr-x 1 root root 1842944 Jul 28 11:36 libsctplib-1060.so.0.0.0
>
> -rw-r--r-- 1 root root 2051956 Jul 28 11:36 libsctplib.a
>
> -rwxr-xr-x 1 root root 870 Jul 28 11:36 libsctplib.la
>
> lrwxrwxrwx 1 root root 24 Jul 28 11:36 libsctplib.so ->
>
> libsctplib-1060.so.0.0.0
>
> When I build the socket API, then I get a link error:
>
> ..............
>
> *** Warning: Linking the shared library libsctpsocket.la against the
>
> *** static library /usr/local/lib/libsctplib.a is not portable!
>
> g++ -shared -nostdlib /usr/lib64/gcc/x86_64-suse-linux/
>
> 4.1.2/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/
>
> 4.1.2/crtbeginS.o .libs/thread.o .libs/tdstrings.o .libs/
>
> synchronizable.o .libs/sctpsocketwrapper.o .libs/
>
> sctpsocketmaster.o .libs/sctpsocket.o .libs/
>
> sctpnotificationqueue.o .libs/sctpassociation.o .libs/
>
> randomizer.o .libs/internetaddress.o .libs/condition.o .libs/
>
> tools.o .libs/socketaddress.o .libs/staticglobals.o .libs/
>
> internetflow.o .libs/unixaddress.o -Wl,--rpath -Wl,/usr/lib64/gcc/
>
> x86_64-suse-linux/4.1.2 -Wl,--rpath -Wl,/usr/lib64/gcc/x86_64-suse-
>
> linux/4.1.2 /usr/local/lib/libsctplib.a -L/opt/gnome/lib64 /opt/
>
> gnome/lib64/libglib-2.0.so -lpthread -L/usr/lib64/gcc/x86_64-suse-
>
> linux/4.1.2 -L/usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../
>
> lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-
>
> suse-linux/4.1.2/../../../../x86_64-suse-linux/lib -L/usr/lib64/gcc/
>
> x86_64-suse-linux/4.1.2/../../.. /usr/lib64/gcc/x86_64-suse-linux/
>
> 4.1.2/libstdc++.so -lm -lc -lgcc_s /usr/lib64/gcc/x86_64-suse-linux/
>
> 4.1.2/crtendS.o /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../
>
> lib64/crtn.o -Wl,-soname -Wl,libsctpsocket-2100.0 -o .libs/
>
> libsctpsocket-2100.0.0.0
>
> /usr/lib64/gcc/x86_64-suse-linux/4.1.2/../../../../x86_64-suse-linux/
>
> bin/ld: /usr/local/lib/libsctplib.a(distribution.o): relocation
>
> R_X86_64_32 against `CompareInstanceNames' can not be used when
>
> making a shared object; recompile with -fPIC
>
> /usr/local/lib/libsctplib.a: could not read symbols: Bad value
>
> collect2: ld returned 1 exit status
>
> make[2]: *** [libsctpsocket.la] Error 1
>
> make[2]: Leaving directory `/sheiksha/seagull/external-lib-src/
>
> socketapi-2.1.0/socketapi'
>
> make[1]: *** [all-recursive] Error 1
>
> make[1]: Leaving directory `/sheiksha/seagull/external-lib-src/
>
> socketapi-2.1.0'
>
> make: *** [all] Error 2
>
>
Thomas, can you look at it?
Looks like trying to link with the static sctplib library to build a shared
socketapi library.
Please try the latest beta versions of sctplib/socketapi:
http://tdrwww.iem.uni-due.de/dreibholz/rserpool/#Download
sctplib-1.0.8~beta5 and socketapi-2.2.0~beta4. These packages contain
improvements with the build system, may be this already fixes your problems.
Try this for sctplib:
make distclean
./configure --enable-shared --disable-static
make
make install (as root!)
Try this for socketapi:
make distclean
./configure --enable-shared --disable-static
make
If you want static libraries, use "--disable-shared --enable-static" instead.
For further debugging, provide some information about your system: Linux
distribution, 32 or 64 bits, CPU, ... . Also, provide the full output
of "configure" and "make".
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
=======================================================================
Attachment:
signature.asc
Description: This is a digitally signed message part.
Archive powered by MHonArc 2.6.19+.