Hello,
When i try to compile the presence module I have this error:
Thanks Laurent
[root@byll2 lib]# make -f Makefile.ser install Making install in cds make[1]: Entering directory `/home/installsrc/ser-0.10.99-dev35-pa-4/lib/cds' cc -shared -DNAME='"ser"' -DVERSION='"0.10.99-dev35-pa-4"' -DARCH='"x86_64"' -DOS='"linux"' -DCOMPILER='"gcc 3.4.5"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=10099 -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DDBG_QM_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -DSER -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -g -Wall -I/home/installsrc/ser-0.10.99-dev35-pa-4/lib -I/home/installsrc/ser-0.10.99-dev35-pa-4/lib/.. -ldl -lresolv -L/home/installsrc/ser-0.10.99-dev35-pa-4/lib/cds -L/home/installsrc/ser-0.10.99-dev35-pa-4/lib/qsa -o lib_ser_cds.so cds.o dlink.o dstring.o hash_table.o memory.o msg_queue.o ptr_vector.o ref_cntr.o serialize.o sstr.o vector.o /usr/bin/ld: cds.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC cds.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [lib_ser_cds.so] Error 1 make[1]: Leaving directory `/home/installsrc/ser-0.10.99-dev35-pa-4/lib/cds' make: [cds] Error 2 (ignored)
It says
/usr/bin/ld: cds.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC.
Did you try recompiling with that parameter?
On 5/3/06, laurent schweizer laurent.schweizer@gmail.com wrote:
Hello,
When i try to compile the presence module I have this error:
Thanks Laurent
[root@byll2 lib]# make -f Makefile.ser install Making install in cds make[1]: Entering directory `/home/installsrc/ser-0.10.99-dev35-pa-4/lib/cds' cc -shared -DNAME='"ser"' -DVERSION='"0.10.99-dev35-pa-4"' -DARCH='"x86_64"' -DOS='"linux"' -DCOMPILER='"gcc 3.4.5"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=10099 -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DDBG_QM_MALLOC -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_EPOLL -DHAVE_SIGIO_RT -DHAVE_SELECT -DSER -g -O9 -funroll-loops -Wcast-align -Wall -minline-all-stringops -falign-loops -g -Wall -I/home/installsrc/ser-0.10.99-dev35-pa-4/lib -I/home/installsrc/ser-0.10.99-dev35-pa-4/lib/.. -ldl -lresolv -L/home/installsrc/ser-0.10.99-dev35-pa-4/lib/cds -L/home/installsrc/ser-0.10.99-dev35-pa-4/lib/qsa -o lib_ser_cds.so cds.o dlink.o dstring.o hash_table.o memory.o msg_queue.o ptr_vector.o ref_cntr.o serialize.o sstr.o vector.o /usr/bin/ld: cds.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC cds.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[1]: *** [lib_ser_cds.so] Error 1 make[1]: Leaving directory `/home/installsrc/ser-0.10.99-dev35-pa-4/lib/cds' make: [cds] Error 2 (ignored)
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers