| Author |
Message |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Sat 17 Mar 2012, 19:17 Post subject:
|
|
Done!
Version 0.6 is now also usable on libs. See first post!
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Mon 19 Mar 2012, 07:28 Post subject:
|
|
Thanks again
|
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 2524 Location: Ontario
|
Posted: Thu 22 Mar 2012, 19:52 Post subject:
|
|
When I install gnac (an Ubuntu application) I get this:
| Code: |
ldd gnac
linux-gate.so.1 => (0xffffe000)
libgstbase-0.10.so.0 => not found
libgstpbutils-0.10.so.0 => not found
libgsttag-0.10.so.0 => not found
libgstreamer-0.10.so.0 => not found
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7794000)
libunique-1.0.so.0 => not found
|
If you could grep the expression 'not found'
all the lines representing needed libraries could
be collected and put at the head.
_____________________________________________
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Fri 23 Mar 2012, 21:59 Post subject:
|
|
| don570 wrote: | When I install gnac (an Ubuntu application) I get this:
| Code: |
ldd gnac
linux-gate.so.1 => (0xffffe000)
libgstbase-0.10.so.0 => not found
libgstpbutils-0.10.so.0 => not found
libgsttag-0.10.so.0 => not found
libgstreamer-0.10.so.0 => not found
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7794000)
libunique-1.0.so.0 => not found
|
If you could grep the expression 'not found'
all the lines representing needed libraries could
be collected and put at the head. |
Should be possible to do. Will give it a try within the next days.
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Wed 12 Sep 2012, 14:25 Post subject:
RSHsDepCheck-0.7.pet Subject description: Now missing dependencies listed at top of text |
|
Version 0.7 uploaded!
RSHsDepCheck-0.7.pet - now missing dependencies listed at top of text
Link is in the first post.
RSH
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
don570

Joined: 10 Mar 2010 Posts: 2524 Location: Ontario
|
Posted: Wed 12 Dec 2012, 21:32 Post subject:
|
|
I was testing it today and decided to try it on Carolina distro
This is simple (but tricky) to do. Extract the pet and you will see
that /root now has two folders rather than one.
It's the second folder that puts an entry to the 'SendTo' item.
_______________________________________________
| Description |
Thunar compatible
|

Download |
| Filename |
RSHsDepCheck-0.8.pet |
| Filesize |
5.28 KB |
| Downloaded |
113 Time(s) |
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4014 Location: Arizona, U.S.A.
|
Posted: Wed 12 Dec 2012, 21:49 Post subject:
|
|
RSH; One other thing you may want to include...
To capture the "wrong library version" errors with: ldd -v
I stumbled upon this in 528-005 PolarPup.
It`s app. gparted doesn`t work as it has a wrong version of libstdc++
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Fri 14 Dec 2012, 11:29 Post subject:
|
|
| sunburnt wrote: | RSH; One other thing you may want to include...
To capture the "wrong library version" errors with: ldd -v
I stumbled upon this in 528-005 PolarPup.
It`s app. gparted doesn`t work as it has a wrong version of libstdc++ |
Hi sunburnt.
Please send me a wrong lib, or better, a (the) text message which returns from ldd on a wrong lib.
Will give it a try, but need to see some Info/Data.
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Fri 14 Dec 2012, 22:21 Post subject:
|
|
I've had a look again into the script and found option -v is already used.
| Code: | # get full info from ldd
exec ldd -v "$CHKDPAPPNAME" >> "$INFFILE" &
|
So, if I would know, what kind of message (text) returns on a wrong library, I could collect these messages to present on top of the list as well like the missing ones.
Just waiting for the Info...
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4014 Location: Arizona, U.S.A.
|
Posted: Sat 15 Dec 2012, 02:46 Post subject:
|
|
Hi RHS; This is from Puppy528-005 PolarPup in which gparted doesn`t work.
The error is easy to filter, as I`ve done in AppPkg builder`s "List Libs. script".
| Code: | sh-4.1# ldd -v /mnt/sda3/AppPkg/build/gparted_0.11.0-2_i386.AppPkg_NotFinished/.AppPkg/gparted_0.11.0-2_i386.app/usr/sbin/gpartedbin
/mnt/sda3/AppPkg/build/gparted_0.11.0-2_i386.AppPkg_NotFinished/.AppPkg/gparted_0.11.0-2_i386.app/usr/sbin/gpartedbin:
/usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
(required by /mnt/sda3/AppPkg/build/gparted_0.11.0-2_i386.AppPkg_NotFinished/.AppPkg/gparted_0.11.0-2_i386.app/usr/sbin/gpartedbin)
### Next is the the "normal" lib. deps. list.
### And then a long list of all lib`s. versions.
### A shortened example below:
### You can see: libstdc++.so.6 (GLIBCXX_3.4.15) => not found
Version information:
/mnt/sda3/AppPkg/build/gparted_0.11.0-2_i386.AppPkg_NotFinished/.AppPkg/gparted_0.11.0-2_i386.app/usr/sbin/gpartedbin:
libgcc_s.so.1 (GCC_3.0) => /lib/libgcc_s.so.1
libgcc_s.so.1 (GLIBC_2.0) => /lib/libgcc_s.so.1
libpthread.so.0 (GLIBC_2.1) => /lib/libpthread.so.0
libpthread.so.0 (GLIBC_2.0) => /lib/libpthread.so.0
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libstdc++.so.6 (GLIBCXX_3.4.11) => /usr/lib/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.9) => /usr/lib/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4.15) => not found
libstdc++.so.6 (CXXABI_1.3) => /usr/lib/libstdc++.so.6
libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/libstdc++.so.6
/lib/libparted.so.0:
libdl.so.2 (GLIBC_2.1) => /lib/libdl.so.2
libdl.so.2 (GLIBC_2.0) => /lib/libdl.so.2
libdevmapper.so.1.02.1 (Base) => /lib/libdevmapper.so.1.02.1 |
Last edited by sunburnt on Sat 15 Dec 2012, 03:03; edited 1 time in total
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Sat 15 Dec 2012, 03:01 Post subject:
|
|
Hi sunburnt.
As I see, the "not found" in /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found is the hint, right?
Inside RSHsDepCheck the "ldd" command is used four times:
1. --version
2. --help
3. -v
4. -u
| Code: | # get full info from ldd
exec ldd -v "$CHKDPAPPNAME" >> "$INFFILE" &
sleep 2
echo "${chkundepsttl}" >> "$INFFILE" &
# get unused deps from/of ldd
exec ldd -u "$CHKDPAPPNAME" >> "$INFFILE" & |
Text "not found" is 'grep'-ed to put these lines on top of the list.
| Code: | fpath="$INFFILE"
echo "" >> "$TEMPFILE2"
while read list; do
echo "$list" > /tmp/ldd_format_tmp
if (grep "not found" /tmp/ldd_format_tmp) then
echo "$list" >> "$TEMPFILE2"
fi
done < $fpath
|
So, I'm not sure what else to do!?
RSH
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4014 Location: Arizona, U.S.A.
|
Posted: Sat 15 Dec 2012, 03:27 Post subject:
|
|
I only used ldd -v , and only used it once.
This code gives all missing libs. and also all wrong versions of libs.
| Code: | MissLibs=`ldd -v $Lib |grep 'not found' |sed 's/^..//'`
echo "$MissLibs" |
The "echo" outputs:
| Code: | | libstdc++.so.6 (GLIBCXX_3.4.15) => not found |
If a returned line has like "(GLIBCXX_3.4.15)", then it`s a wrong lib.
The part: (GLIBC is the clue to it being a bad lib. instead of a missing one.
Last edited by sunburnt on Sat 15 Dec 2012, 03:40; edited 1 time in total
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Sat 15 Dec 2012, 03:38 Post subject:
|
|
I do (did) use all these options, because I'd wanted to see every Information available by "ldd" - because as I start to wrote this program I did not know "ldd". So, I had to be informed in a full way somehow.
It (ldd) was totally new to me.
Also because of this I did choose to "echo" some manually created comments for my use (just to give me as the 'newbie' on "ldd" a better overview - these sometimes huge lists has been shocking to me as I'd saw them in the beginning.
That's all why it is like it is.
But, does that mean, there's nothing more to do on this by myself?
This would be nice...
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
sunburnt

Joined: 08 Jun 2005 Posts: 4014 Location: Arizona, U.S.A.
|
Posted: Sat 15 Dec 2012, 03:44 Post subject:
|
|
I`m not sure what you mean...
Do you have it parsing the bad lib. versions as well as the missing ones?
My script lists first the wrong versions, then the missing ones, then good ones.
Like:
| Code: | Lib. file name:
### Bad version Libs.:
### Missing Libs.:
### Good Libs.: |
|
|
Back to top
|
|
 |
RSH

Joined: 05 Sep 2011 Posts: 1564 Location: Germany
|
Posted: Sat 15 Dec 2012, 04:33 Post subject:
|
|
Hi.
This is the content of the output of 'RSHsDepCheck-0.7'. Used on abiword, the 'libabiword-2.8.so has been manually removed at first.
| Quote: |
libabiword-2.8.so => not found
-------------------------------------------------------------------------------
### ! ! ! Check Dependencies ! ! ! ###
### A Right-Click Dependencies Checker Tool by RSH for Puppy Linux - GPL2 ###
-------------------------------------------------------------------------------
Check Dependencies of: abiword
-------------------------------------------------------------------------------
### Version ###
-------------------------------------------------------------------------------
ldd (Ubuntu EGLIBC 2.11.1-0ubuntu7) 2.11.1
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
-------------------------------------------------------------------------------
### Help ###
-------------------------------------------------------------------------------
Usage: ldd [OPTION]... FILE...
--help print this help and exit
--version print version information and exit
-d, --data-relocs process data relocations
-r, --function-relocs process data and function relocations
-u, --unused print unused direct dependencies
-v, --verbose print all information
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.
-------------------------------------------------------------------------------
### Full Information ###
-------------------------------------------------------------------------------
Information to Application: abiword
linux-gate.so.1 => (0xffffe000)
libabiword-2.8.so => not found
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb775b000)
libc.so.6 => /lib/libc.so.6 (0xb7601000)
libm.so.6 => /lib/libm.so.6 (0xb75db000)
/lib/ld-linux.so.2 (0xb7862000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb75bc000)
Version information:
/root/puppy-reference/usr-bin/abiword:
libstdc++.so.6 (CXXABI_1.3) => /usr/lib/libstdc++.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/usr/lib/libstdc++.so.6:
libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
libgcc_s.so.1 (GCC_4.2.0) => /lib/libgcc_s.so.1
libgcc_s.so.1 (GLIBC_2.0) => /lib/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.3) => /lib/libgcc_s.so.1
libgcc_s.so.1 (GCC_3.0) => /lib/libgcc_s.so.1
libc.so.6 (GLIBC_2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.3.2) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
/lib/libc.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.3) => /lib/ld-linux.so.2
ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
/lib/libm.so.6:
ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
/lib/libgcc_s.so.1:
libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
libc.so.6 (GLIBC_2.2.4) => /lib/libc.so.6
libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
-------------------------------------------------------------------------------
### Dependencies ###
-------------------------------------------------------------------------------
Unused direct dependencies:
libabiword-2.8.so
/usr/lib/libstdc++.so.6
-------------------------------------------------------------------------------
### ! ! ! End of Information ! ! ! ###
-------------------------------------------------------------------------------
|
_________________ Useful Software for Puppy!
LazY Puppy - a Paradise Puppy! - DE & EN ISO 2.0.2-0.0.5 available
|
|
Back to top
|
|
 |
|