[Freeswitch-users] mod_xml_ldap compile issue.

Patrick freeswitch-list at puzzled.xs4all.nl
Fri Dec 18 07:29:35 PST 2009



On 12/18/2009 02:13 PM, Keith Laaks wrote:
> Hi,
>
> I am having an issue getting mod_xml_ldap to compile properly....
>
> <cut-cut>
> making all mod_xml_cdr
>
> making all mod_xml_ldap
> Creating mod_xml_ldap.la...
> /usr/bin/ld:
> /home/keithl/freeswitch/freeswitch.trunk/libs/openldap-2.4.19/libraries/liblutil/liblutil.a(sasl.o):
> relocation R_X86_64_32S against `.rodata' can not be used when making a
> shared object; recompile with -fPIC
> /home/keithl/freeswitch/freeswitch.trunk/libs/openldap-2.4.19/libraries/liblutil/liblutil.a:
> could not read symbols: Bad value
> collect2: ld returned 1 exit status
> cat: .libs/mod_xml_ldap.log: No such file or directory
> make[5]: *** [mod_xml_ldap.la] Error 1
> make[4]: *** [all] Error 1
> make[3]: *** [mod_xml_ldap-all] Error 1
> make[2]: *** [all-recursive] Error 1
> ------------------------------------------------------------------------
> I notice the openldap library has been bumped up to .19 - not sure if that
> may have anything to do with it.
>
> At revision 15995 on a 2.6.31-15-generic Ubuntu x86_64 GNU/Linux notebook.
>
> mod_ldap compiles OK, but mod_xml_ldap fails as per the above.
>
> What am I doing working here ?

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/

Patches welcome :)

Regards,
Patrick




More information about the FreeSWITCH-users mailing list