GNOME Bugzilla – Bug 302727
platform dependent .conduit files are installed to platform-independent path
Last modified: 2005-08-10 13:16:31 UTC
Distribution/Version: SuSE Linux 9.3 On AMD64, conduits are installed to .../lib64/..., but *.conduit still points to .../lib/... It causes architecture clash - 64-bit library either tries to load 32-bit conduits or fails. It is not enough to fix it by changing its value - *.conduit files are in platform independent path .../share/... but cannot be shared between platforms. The simplest fix is fixing value and moving these files to platform dependent paths. Correct fix is using proper gnome functions (e. g. gnome_program_locate_file () or gnome_program_module_load ()). (gpilotd-control-applet:31412): libgpilotdcm-WARNING **: unable to g_module_open (/opt/gnome/lib/gnome-pilot/conduits/libbackup_conduit.so), reason /opt/gnome/lib/gnome-pilot/conduits/libbackup_conduit.so: cannot open shared object file: no such file or directory Related: bug 129534, bug 129540
Created attachment 46011 [details] [review] Patch to conduit.in files to use appropriate library directory Patch from Fedora Core
Created attachment 46012 [details] [review] Patch to add a GNOME_PILOT_CONDUIT_SEARCH_PATH variable to configure.in Patch from Fedora Core
Created attachment 46013 [details] [review] Patch to the conduit management code to use GNOME_PILOT_CONDUIT_SEARCH_PATH Patch from Fedora Core
I've attached 3 patches for this issue that I apply when building gnome-pilot for Fedora Core.
Notes to patches: - It needs to change Conduitdir in Makefile.am to GNOME_PILOT_CONDUIT_SEARCH_PATH - You should patch Makefile.am instead of Makefile.in (patch can be applied after replace) - You cannot use AC_DEFINE_UNQUOTED for @libdir@ in configure.in (it cannot be properly expanded). I guess that following in Makefile.am is the simplest way (not yet tested): AM_CFLAGS=-DGNOME_PILOT_CONDUIT_SEARCH_PATH=\"$(LIBDIR)/share/gnome-pilot/conduits\" I would prefer libdir/gnome-pilot/something instead of libdir/share/gnome-pilot/conduits.
I am confirming this bug.
I didn't quite fix it this way, but this is fixed now in CVS.