Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
e2fsck: Error: ext2fs library version out of date!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
j-mr
n00b
n00b


Joined: 26 Sep 2006
Posts: 4

PostPosted: Tue Sep 26, 2006 8:14 pm    Post subject: e2fsck: Error: ext2fs library version out of date! Reply with quote

Hi!
I upgraded my fsck.ext2 (emerge -NDu world) to sys-fs/e2fsprogs-1.39 and now get this error when I run e2fsck (as root):
# e2fsck
Error: ext2fs library version out of date!
e2fsck 1.39 (29-May-2006)
Using EXT2FS Library version 1.38, 30-Jun-2005

As far as I can see, there isn't another package containing the library...
Can you tell me which packages may need an upgrade or how I can get rid of this error without downgrading (version 1.38-r1 works, but the next upgrade would install the broken version again...)?
I'm using AMD64.

thanks,
Jan-Martin
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Tue Sep 26, 2006 8:17 pm    Post subject: Reply with quote

You could try running revdep-rebuild and see if it fixes anything. In any case, it shouldn't hurt to run it.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
j-mr
n00b
n00b


Joined: 26 Sep 2006
Posts: 4

PostPosted: Wed Sep 27, 2006 6:35 am    Post subject: Reply with quote

revdep-rebuild didn't help (it only tried to rebuild openobex-apps, wireshark and micq...)
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Sep 27, 2006 10:31 am    Post subject: Reply with quote

You can try running
Code:
# ldd /sbin/e2fsck
        linux-gate.so.1 =>  (0xffffe000)
        libext2fs.so.2 => /lib/libext2fs.so.2 (0xb7f6c000)
        libcom_err.so.2 => /lib/libcom_err.so.2 (0xb7f69000)
        libblkid.so.1 => /lib/libblkid.so.1 (0xb7f62000)
        libuuid.so.1 => /lib/libuuid.so.1 (0xb7f5f000)
        libc.so.6 => /lib/libc.so.6 (0xb7e47000)
        /lib/ld-linux.so.2 (0xb7f90000)
and looking at /lib/libext2fs.so.2
Code:
lrwxrwxrwx 1 root root 16 Sep  9 15:38 /lib/libext2fs.so.2 -> libext2fs.so.2.4
-rwxr-xr-x 1 root root 99520 Sep  9 15:38 /lib/libext2fs.so.2.4
and comparing the date with that of e2fsck.

If e2fsck is newer then that is the problem, try emerge'ng e2fsprogs again.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
j-mr
n00b
n00b


Joined: 26 Sep 2006
Posts: 4

PostPosted: Wed Sep 27, 2006 3:51 pm    Post subject: Reply with quote

libext2fs.so.2.4 is older (2006-07-21) than e2fsck (2006-09-27)... emering again doesn't work (I tried just emerge e2fsprogs, emerge -C e2fsprogs&&emerge e2fsprogs and renaming the lib and emerge e2fsprogs (the symlink pointed to the renamed file)).
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Sep 27, 2006 4:14 pm    Post subject: Reply with quote

Try this then
Code:
ebuild /usr/portage/sys-fs/e2fsprogs/e2fsprogs-1.39.ebuild install
This will unpack, configure, compile and install a new copy of e2fsprogs in /var/tmp/portage/e2fsprogs-1.39/image/.
Code:
cd /var/tmp/portage/e2fsprogs-1.39/image
# ls -l lib/libext2fs.so*
lrwxrwxrwx 1 root root    14 Sep 27 17:05 lib/libext2fs.so -> libext2fs.so.2
lrwxrwxrwx 1 root root    16 Sep 27 17:05 lib/libext2fs.so.2 -> libext2fs.so.2.4
-rwxr-xr-x 1 root root 99520 Sep 27 17:05 lib/libext2fs.so.2.4
You can then check the size of this new version with the old one in /lib/libext2fs.so.2.4 and replace it. As the name is the same, the symlinks won't need to be remade.

See if e2fsck is happy now.
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
j-mr
n00b
n00b


Joined: 26 Sep 2006
Posts: 4

PostPosted: Wed Sep 27, 2006 5:04 pm    Post subject: Reply with quote

thanks, now it doesn't complain anymore (though I had to delete the old lib and then copy the new one to /lib... shouldn't emerge have done this? Well, it works, so I won't complain...)
Back to top
View user's profile Send private message
wynn
Advocate
Advocate


Joined: 01 Apr 2005
Posts: 2421
Location: UK

PostPosted: Wed Sep 27, 2006 5:43 pm    Post subject: Reply with quote

Quote:
I had to delete the old lib and then copy the new one to /lib... shouldn't emerge have done this?
Yes, it should but rather than try and find out what configuration setting was making it fail, direct action (tm) seemed the quickest fix.

Would you like to add "Solved" to the Subject line of the first post in this thread?
_________________
The avatar is jorma, a "duck" from "Elephants Dream": the film and all the production materials have been made available under a Creative Commons Attribution 2.5 License, see orange.blender.org for details.
Back to top
View user's profile Send private message
yabbadabbadont
Advocate
Advocate


Joined: 14 Mar 2003
Posts: 4791
Location: 2 exits past crazy

PostPosted: Wed Sep 27, 2006 5:54 pm    Post subject: Reply with quote

Also, don't forget to file a bug against the ebuild as it obviously has problems in certain situations.
_________________
Bones McCracker wrote:
On the other hand, regex is popular with the ladies.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum