Hi, I'm using CentOS 5.4 x86-64 and just mod_xml_ldap causes this compile error. I've found an exactly same issue in the list by Keith Laaks that responded by Patrick. Patrick says : I had the same issue and MikeJ (one of the core developers) looked at it. Conclusion was that it is an openldap issue and iirc the solution is to libtoolize libraries/liblutil/Makefile.in so that when running configure a Makefile with proper compiler flags is generated in libraries/liblutil/ My point is : 1) As I found in openldap 2.4.19, the package already is libtool support. if I try libtoolize on openldap package , then : You should update your `aclocal.m4' by running aclocal. Putting files in AC_CONFIG_AUX_DIR, `build'. libtoolize: `config.guess' exists: use `--force' to overwrite libtoolize: `config.sub' exists: use `--force' to overwrite libtoolize: `ltmain.sh' exists: use `--force' to overwrite 2) Anthony says : "CentOS 5.4 appears to have some bugs in the toolchain and libc" Is this issue because of those bugs? How I can workaround that? Regards, -- afshin making all mod_xml_ldap Creating mod_xml_ldap.so... /usr/bin/ld: /root/freeswitch-1.0.5-20100106-0400/libs/openldap-2.4.19/libraries/liblutil/liblutil.a(sasl.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC /root/freeswitch-1.0.5-20100106-0400/libs/openldap-2.4.19/libraries/liblutil/liblutil.a: could not read symbols: Bad value collect2: ld returned 1 exit status gcc -DWITH_OPENLDAP -DLDAP_DEPRECATED -I/root/freeswitch-1.0.5-20100106-0400/libs/openldap-2.4.19/include -I/root/freeswitch-1.0.5-20100106-0400/src/include -I/root/freeswitch-1.0.5-20100106-0400/src/include -I/root/freeswitch-1.0.5-20100106-0400/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -shared -o .libs/mod_xml_ldap.so -shared -Wl,-x .libs/mod_xml_ldap.o /root/freeswitch-1.0.5-20100106-0400/.libs/libfreeswitch.so -L/root/freeswitch-1.0.5-20100106-0400/libs/apr-util/xml/expat/lib /root/freeswitch-1.0.5-20100106-0400/libs/apr-util/xml/expat/lib/.libs/libexpat.a /root/freeswitch-1.0.5-20100106-0400/libs/apr/.libs/libapr-1.a -luuid -lrt -lcrypt -lpthread -L/root/freeswitch-1.0.5-20100106-0400/libs/srtp -L/usr/kerberos/lib64 -ldl -lz -lncurses /root/freeswitch-1.0.5-20100106-0400/libs/openldap-2.4.19/libraries/libldap_r/.libs/libldap_r.a -lsasl2 -lssl -lcrypto -pthread /root/freeswitch-1.0.5-20100106-0400/libs/openldap-2.4.19/libraries/liblber/.libs/liblber.a -lm -lresolv /root/freeswitch-1.0.5-20100106-0400/libs/openldap-2.4.19/libraries/liblutil/liblutil.a -Wl,--rpath -Wl,/usr/local/freeswitch/lib -Wl,--rpath -Wl,/usr/local/freeswitch/mod make[5]: *** [mod_xml_ldap.so] Error 1 make[4]: *** [all] Error 1 make[3]: *** [mod_xml_ldap-all] Error 1 make[2]: *** [all-recursive] Error 1