> On Sat, Feb 21, 2015 at 10:38:22AM -0800, Paul Rogers wrote:
> > Following BLFS-7.6 book to install a somewhat more recent version, 24.24
> > --> 24.25.  I find it installs fine with --prefix=/usr, but without or
> > with --prefix=/usr/local it can't find its own shared libraries during
> > "make install".  /etc/ld.so.conf has /usr/local/lib, of course, and
> > ldconf was run at the conclusion of installing prerequisite libraries.
> > Since the BLFS book diddles three of the upstream Makefiles, although it
> > doesn't appear to me those would cause this symptom of a configuration
> > flaw, I hesitate to report it upstream without consultation here.
> > 
> 
>  I do not understand what you are saying.  The package's own shared
> libraries are in .libs/ and get installed from there.  I think you
> mean it cannot find a library from one of it's dependencies.  If so,
> and you have mixed /usr and /usr/local, perhaps you have multiple
> .pc files from the different installs and it has used the "wrong"
> one ?
> 

What I am saying is...
I have captured all the data for this attempt to install gtk-2.24.25 in
/usr/local, including /usr/{,local}/pkgconfig/*.  Most of the BLFS I've
installed comes from BLFS-20121102, and most of it is installed in
/usr/local.  What do you want to see, specifically?  I suppose you have
enough doubts about my build process/environment, perhaps the thing that
would work best is to remove the --prefix=/usr from your build script
and see if you get this same failure.  This may be another example of a
Makefile screaming bloody murder and dying before its time, but I tend
to take "No such file" errors seriously, even though it apparently was
actually installed.

Here is the operative part of my build script  (note no --prefix):
sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in &&
sed -i 's#.*@man_#man_#' docs/reference/gtk/Makefile.in &&
sed -i -e 's#pltcheck.sh#$(NULL)#g' gtk/Makefile.in &&
(./configure --target="$CTARGET" --with-x \
  --sysconfdir=/etc 2>&1 | tee log.conf && exit $PIPESTATUS) &&
(make -j $MMPF 2>&1 | tee log.make && exit $PIPESTATUS) &&
pio `basename $0` &&
(make install 2>&1 | tee log.inst && exit $PIPESTATUS) &&

Here is what happens in install:
...
make  install-data-hook
make[4]: Entering directory `/usr/local/src/gtk+-2.24.25/modules/input'
/bin/sh /usr/local/src/gtk+-2.24.25/install-sh -d /etc/gtk-2.0
/usr/local/bin/gtk-query-immodules-2.0 >
/usr/local/lib/gtk-2.0/2.10.0/immodules.cache
/usr/local/bin/gtk-query-immodules-2.0: error while loading shared
libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such
file or directory
make[4]: *** [install-data-hook] Error 127
make[4]: Leaving directory `/usr/local/src/gtk+-2.24.25/modules/input'
make[3]: *** [install-data-am] Error 2
make[3]: Leaving directory `/usr/local/src/gtk+-2.24.25/modules/input'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/usr/local/src/gtk+-2.24.25/modules/input'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/gtk+-2.24.25/modules'
make: *** [install-recursive] Error 1

And when I recover from the aborted install, here is what my "package
installation observer" found had been installed (from the "removal
script" it produces):
...
# rmdir  /usr/local/share
  rm -f  /usr/local/lib/libgtk-x11-2.0.so.0.2400.25
  rm -f  /usr/local/lib/libgtk-x11-2.0.so.0
  rm -f  /usr/local/lib/libgtk-x11-2.0.so
  rm -f  /usr/local/lib/libgtk-x11-2.0.la
  rm -f  /usr/local/lib/libgdk-x11-2.0.so.0.2400.25
  rm -f  /usr/local/lib/libgdk-x11-2.0.so.0
  rm -f  /usr/local/lib/libgdk-x11-2.0.so
  rm -f  /usr/local/lib/libgdk-x11-2.0.la
  rm -f  /usr/local/lib/gtk-2.0/include/gdkconfig.h
  rmdir  /usr/local/lib/gtk-2.0/include
  rm -f  /usr/local/lib/gtk-2.0/2.10.0/immodules/im-xim.so
  rm -f  /usr/local/lib/gtk-2.0/2.10.0/immodules/im-xim.la
  rm -f  /usr/local/lib/gtk-2.0/2.10.0/immodules/im-viqr.so
...
-- 
Paul Rogers
paulgrog...@fastmail.fm
Rogers' Second Law: "Everything you do communicates."
(I do not personally endorse any additions after this line. TANSTAAFL :-)

        

-- 
http://www.fastmail.com - Faster than the air-speed velocity of an
                          unladen european swallow

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to