SCTP Discussions

Text archives Help


[SCTP-Discussion] Re: build problems


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: <Shahrokh.Sheikholaeme AT tietoenator.com> <Shahrokh.Sheikholaeme AT tietoenator.com>
  • Cc: discussion AT sctp.de
  • Subject: [SCTP-Discussion] Re: build problems
  • Date: Mon, 28 Jul 2008 14:10:59 +0200
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

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?

----------------------------------------
How can I fix the static/shared lib problem?
best regards
Shahrokh







Archive powered by MHonArc 2.6.19+.

Top of page