On Tue, 10 Apr 2012 09:34:44 +0100
DJ Lucas <[email protected]> wrote:

> Anyway, from a fairly complete system, I have:
> 
> dj [ /opt/icedtea/demo/jvmti ]$ for dir in /lib /usr/lib 
> /opt/icedtea/jre/lib/amd64; do
> >  for lib in $dir/*.so; do
> >  ldd $lib | grep "libXm\.so"&&  echo $lib
> >  done
> >  done
> loader cannot load itself
> ldd: exited with unknown exit code (127)
> ldd: warning: you do not have execution permission for `/lib/libcap.so'
> ldd: warning: you do not have execution permission for `/usr/lib/libc.so'
> ldd: warning: you do not have execution permission for `/usr/lib/libcurses.so'
> ldd: warning: you do not have execution permission for 
> `/usr/lib/libcursesw.so'
>       libXm.so.2 =>  /usr/lib/libXm.so.2 (0x00007fbb38acd000)
> /usr/lib/libDtPrint.so
> ldd: warning: you do not have execution permission for `/usr/lib/libform.so'
> ldd: warning: you do not have execution permission for `/usr/lib/libgcc_s.so'
> ldd: warning: you do not have execution permission for 
> `/usr/lib/libicudata.so'
> ldd: warning: you do not have execution permission for `/usr/lib/libmenu.so'
>       libXm.so.2 =>  /usr/lib/libXm.so.2 (0x00007f81699ae000)
> /usr/lib/libMrm.so
> ldd: warning: you do not have execution permission for 
> `/usr/lib/libncurses.so'
> ldd: warning: you do not have execution permission for `/usr/lib/libpanel.so'
> ldd: warning: you do not have execution permission for 
> `/usr/lib/libpthread.so'
> ldd: warning: you do not have execution permission for 
> `/usr/lib/libpytalloc-util.so'
> ldd: warning: you do not have execution permission for `/usr/lib/libtalloc.so'
>       libXm.so.2 =>  /usr/lib/libXm.so.2 (0x00007f28c8cb6000)
> /usr/lib/libUil.so
> ldd: warning: you do not have execution permission for 
> `/usr/lib/preloadable_libintl.so'
> 
> As an aside, should we be setting 755 perms on these? Seems we had this 
> discussion once before, but the warnings above, while harmless, are kind 
> of annoying when doing an exercise like the above.

Removing the warnings is trivial:

sed -i '/" || e/d;/rni/d' /usr/bin/ldd

I have almost all my libraries chmod 644 and have done for years.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to