rpath joy
Michael J. Knox
michael at knox.net.nz
Sun Jun 11 23:24:43 UTC 2006
Michael J. Knox wrote:
> Patrice Dumas wrote:
>
>> On Sun, Jun 11, 2006 at 08:17:32PM +1200, Michael J. Knox wrote:
>>
>>> Hi all,
>>>
>>> I am sure this has been beaten to death, however, I have not been
>>> able to find much info on this.
>>>
>>> I am trying to package up ntop for FE. However, I have a rpath error
>>> on the plugins.. I get this:
>>>
>>> ERROR 0002: file '/usr/lib/ntop/plugins/rrdPlugin.so' contains an
>>> invalid rpath '/home/mjk/rpmbuild/BUILD/ntop-3.2/myrrd/.libs' in
>>> [/home/mjk/rpmbuild/BUILD/ntop-3.2/myrrd/.libs]
>>> error: Bad exit status from /home/mjk/rpmbuild/tmp/rpm-tmp.53484
>>> (%install)
>>
>>
>>
>> Do you have a build log or could you give an explanation on how to
>> reproduce your build?
>>
>> In gnash there are rpath that appear when the plugin dll is copied
>> with cp
>> instead of installed by libtool with libtool --install.
>>
>> The make rule is:
>> $(LIBTOOL) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG)
>> $(plugin_LTLIBRARIES) "$(DESTDIR)$(plugindir)/$(plugin_LTLIBRARIES)"
>>
>
> No, I don't have a build.log, I am just builing this in my normal
> rpmbuild root like so"rpmbuild -bi ntop.spec"
>
> I found a patch from PLD Linux that addresses the problem, the do:
>
> --- ntop/plugins/Makefile.am 2004-11-11 10:12:52.000000000 +0000
> +++ ntop.new/plugins/Makefile.am 2005-01-01 21:09:57.376911224 +0000
> @@ -42,16 +42,6 @@
> #
> # The meat for ntop
> #
> -noinst_PROGRAMS = \
> - icmpPlugin.so \
> - lastSeenPlugin.so \
> - netflowPlugin.so \
> - pdaPlugin.so \
> - rrdPlugin.so \
> - snmpPlugin.so \
> - sflowPlugin.so \
> - xmldumpPlugin.so
> -
> lib_LTLIBRARIES = \
> libicmpPlugin.la \
> liblastSeenPlugin.la \
> --- ntop-3.2/plugins/Makefile.am~ 2006-01-02 02:11:46.000000000 +0200
> +++ ntop-3.2/plugins/Makefile.am 2006-01-02 02:47:33.000000000 +0200
> @@ -42,7 +42,7 @@
> #
> # The meat for ntop
> #
> -lib_LTLIBRARIES = \
> +plugin_LTLIBRARIES = \
> libicmpPlugin.la \
> liblastSeenPlugin.la \
> libnetflowPlugin.la \
>
> seems the change from lib_LTLIBRARES to plugin_LIBRARIES fixes it?
or that the .so's are being installed...
Michael
More information about the fedora-extras-list
mailing list