[Freeswitch-dev] Invalid rpaths + fix (1.0.4)

Patrick freeswitch-list at puzzled.xs4all.nl
Sun Aug 9 12:18:56 PDT 2009


Hi,

I was reworking the freeswitch.spec file to make it build an RPM on
Fedora 11 and noticed the following:

[..snip a gazillion previous ones..]

ERROR   0002: file '/opt/freeswitch/mod/mod_sndfile.so' contains an
invalid rpath '/opt/freeswitch/mod' in
[/opt/freeswitch/lib64:/opt/freeswitch/mod]

[..snip a gazillion more..]

To solve this issue I had to add in the spec file after configure the
following lines:

# kill rpath madness in the top level libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

# and fix it in the libtool in libs/openzap too
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
libs/openzap/libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'
libs/openzap/libtool

Maybe this could be done on libtool in trunk? If I need to report this
in Jira please let me know.

Regards,
Patrick



More information about the FreeSWITCH-dev mailing list