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

Michael Jerris mike at jerris.com
Sun Aug 9 21:35:47 PDT 2009


While that mod doesn't need that in the rpath, some others do.  What  
exactly is invalid about it?

On Aug 9, 2009, at 3:18 PM, Patrick <freeswitch- 
list at puzzled.xs4all.nl> wrote:

> 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
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org



More information about the FreeSWITCH-dev mailing list