Hi,
I got the error attached below when make socketapi-2.1.0 I have sctplib-1.0.7 compiled with –enable-shared and installed under /usr/local/lib My OS is RHEL5 x86_64, I ran ./configure and make socketapi-2.1.0 without any options. What I did wrong here?
Thanks and regards, Leo W
===== sctplib ==== ls -l /usr/local/lib/libsctp* lrwxrwxrwx 1 root root 24 Dec 16 09:34 /usr/local/lib/libsctplib-1060.so.0 -> libsctplib-1060.so.0.0.0 -rwxr-xr-x 1 root root 1865034 Dec 16 09:34 /usr/local/lib/libsctplib-1060.so.0.0.0 -rw-r--r-- 1 root root 2074980 Dec 16 09:34 /usr/local/lib/libsctplib.a -rwxr-xr-x 1 root root 839 Dec 16 09:34 /usr/local/lib/libsctplib.la lrwxrwxrwx 1 root root 24 Dec 16 09:34 /usr/local/lib/libsctplib.so -> libsctplib-1060.so.0.0.0 lrwxrwxrwx 1 root root 16 Jun 5 2008 /usr/local/lib/libsctp.so -> libsctp.so.1.0.7 lrwxrwxrwx 1 root root 16 Jun 5 2008 /usr/local/lib/libsctp.so.1 -> libsctp.so.1.0.7 -rwxr-xr-x 1 root root 26365 Jun 5 2008 /usr/local/lib/libsctp.so.1.0.7 ====== socketapt compile error======== *** Warning: Trying to link with static lib archive /usr/local/lib/libsctplib.a. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because the file extensions .a of this argument makes me believe *** that it is just a static archive that I should not used here. g++ -shared /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-redhat-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 -L/lib64 -lglib-2.0 -lpthread -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2 -L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crtn.o -o .libs/libsctpsocket-2100.so.0.0.0 /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o: In function `_init': (.init+0x0): multiple definition of `_init' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o:(.init+0x0): first defined here /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o: In function `_fini': (.fini+0x0): multiple definition of `_fini' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crti.o:(.fini+0x0): first defined here /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o:(.data.rel.ro+0x0): multiple definition of `__dso_handle' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtbeginS.o:(.data.rel.ro+0x0): first defined here /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o:(.dtors+0x0): multiple definition of `__DTOR_END__' /usr/lib/gcc/x86_64-redhat-linux/4.1.2/crtendS.o:(.dtors+0x0): first defined here collect2: ld returned 1 exit status make[2]: *** [libsctpsocket.la] Error 1 make[2]: Leaving directory `/home/leow/src/seagull/socketapi-2.1.0/socketapi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/leow/src/seagull/socketapi-2.1.0' make: *** [all] Error 2 |
Archive powered by MHonArc 2.6.19+.