You are not logged in.

#26 2008-07-13 18:56:49

Koven
Member
Registered: 2006-06-13
Posts: 154

Re: symbolic link error

azleifel wrote:

Got this as well.  The PKGBUILD for lib32-e2fsprogs in ABS (but not the older version still available from the AUR page) uses the install command to copy the libs from the 32 bit package.  The consequence is that the symbolic links get dereferenced and ldconfig gives the errors we all got.  Just to be different, I used:

cp -dp $startdir/src/lib/* $startdir/pkg/opt/lib32/lib/

when I rebuilt lib32-e2fsprogs here.

I did this and now nothing works I can't even boot my Arch x86_64. I get this error message

/bin/mount: error while loading shared libraries:libblkid.so.1:wrong ELF class: ELFCLASS32
/bin/mount: error while loading shared libraries:libblkid.so.1:wrong ELF class: ELFCLASS32
/bin/mknod: '/dev/null': File exists

And so on a lot of errors.. Now I can't even login. Nothing works. It tells me Filessytem check failed but Ican't even make a filesystem check from a Live CD. Any help would be appreciated because I reall don't know how to fix this problem since I applied what you told before.

Regards

Offline

#27 2008-07-13 19:11:22

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: symbolic link error

Koven wrote:
azleifel wrote:

Got this as well.  The PKGBUILD for lib32-e2fsprogs in ABS (but not the older version still available from the AUR page) uses the install command to copy the libs from the 32 bit package.  The consequence is that the symbolic links get dereferenced and ldconfig gives the errors we all got.  Just to be different, I used:

cp -dp $startdir/src/lib/* $startdir/pkg/opt/lib32/lib/

when I rebuilt lib32-e2fsprogs here.

I did this and now nothing works I can't even boot my Arch x86_64. I get this error message

/bin/mount: error while loading shared libraries:libblkid.so.1:wrong ELF class: ELFCLASS32
/bin/mount: error while loading shared libraries:libblkid.so.1:wrong ELF class: ELFCLASS32
/bin/mknod: '/dev/null': File exists

And so on a lot of errors.. Now I can't even login. Nothing works. It tells me Filessytem check failed but Ican't even make a filesystem check from a Live CD. Any help would be appreciated because I reall don't know how to fix this problem since I applied what you told before.

Regards

show us exactly what PKGBUILD you used. But, I think what you did was overwrite your 64 bit e2fsprogs libs with the 32 bit libs. This is why you get the wrong ELF class error.

Did you even use a PKGBUILD? Did you get the PKGBUILD from the abs? are you sure you got the one that was in /var/abs/community/lib32/ dir?

just use a arch install cd and boot up to command line. Then mount your arch partition and chroot in. Then you issue command

pacman -U /var/cache/pacman/pkg/e2fprogs*

make sure u pick the right package out of your cache, research the site to see which version is current.

Last edited by rooloo (2008-07-13 19:16:10)

Offline

#28 2008-07-13 19:19:37

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: symbolic link error

http://wiki.archlinux.org/index.php/Kernel_Panics

you wanna follow that wiki, all up till the part where you re-install a kernel, insteadyo u wanna re-install another package. In your case I think that would be e2fprogs.

I don't think you need mount /proc /sys /dev. That part is just for rebuilding kernel image.

Last edited by rooloo (2008-07-13 19:20:11)

Offline

#29 2008-07-13 21:16:10

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: symbolic link error

Koven wrote:
azleifel wrote:

Got this as well.  The PKGBUILD for lib32-e2fsprogs in ABS (but not the older version still available from the AUR page) uses the install command to copy the libs from the 32 bit package.  The consequence is that the symbolic links get dereferenced and ldconfig gives the errors we all got.  Just to be different, I used:

cp -dp $startdir/src/lib/* $startdir/pkg/opt/lib32/lib/

when I rebuilt lib32-e2fsprogs here.

I did this and now nothing works I can't even boot my Arch x86_64. I get this error message

/bin/mount: error while loading shared libraries:libblkid.so.1:wrong ELF class: ELFCLASS32
/bin/mount: error while loading shared libraries:libblkid.so.1:wrong ELF class: ELFCLASS32
/bin/mknod: '/dev/null': File exists

And so on a lot of errors.. Now I can't even login. Nothing works. It tells me Filessytem check failed but Ican't even make a filesystem check from a Live CD. Any help would be appreciated because I reall don't know how to fix this problem since I applied what you told before.

Regards

I don't know how you managed to do this because running the cp command in my post should just result in an error

[david@darkstar ~]$ cp -dp $startdir/src/lib/* $startdir/pkg/opt/lib32/lib/
cp: cannot stat `/src/lib/*': No such file or directory

Anyway, do try following rooloo's good advice.  If you still want to mess with lib32-e2fsprogs when you're back up and running then what you need to do is copy

# Contributor: mightyjaym <jm.ambrosino@free.fr>
# Maintainer: Mikko Seppälä <t-r-a-y@mbnet.fi>

pkgname=lib32-e2fsprogs
pkgver=1.40.8
pkgrel=1
pkgdesc="Ext2 filesystem utilities"
arch=(x86_64)
url="http://e2fsprogs.sourceforge.net"
license=('GPL' 'LGPL')
depends=('lib32-glibc')
source=(ftp://ftp.archlinux.org/core/os/i686/${pkgname/lib32-/}-${pkgver}-${pkgrel}-i686.pkg.tar.gz)
md5sums=('2594712c089240b8a3aa46277639c49e')

build() {
  install -d $startdir/pkg/opt/lib32/lib/
  cp -dp $startdir/src/lib/* $startdir/pkg/opt/lib32/lib/
}

into a file called PKGBUILD, save it into an empty directory somewhere in your home account, cd to that directory, run makepkg and then do a "pacman -U <insert_name_of_package_here>" as root.

Last edited by azleifel (2008-07-13 21:17:55)

Offline

#30 2008-07-14 14:43:31

Koven
Member
Registered: 2006-06-13
Posts: 154

Re: symbolic link error

Well, what I did was change the cp line by the line someone wrote in a post before. I installed according the AUR manual, you know..

makepkg -s

pacman -U package.tar.gz

After that nothing worked. Now I'm trying to do what rooloo told me but it's not working because. I'm trying to fix this problem. I'll tell you later.

Regards

Offline

#31 2008-07-14 14:55:31

Koven
Member
Registered: 2006-06-13
Posts: 154

Re: symbolic link error

Excellent help guys. Well I think my mistake was installing with aur instead abs. I'll have to read what's the point to install it and not create the same error again.

Regards

Offline

#32 2008-07-15 06:00:50

FilledVoid
Member
Registered: 2008-07-09
Posts: 13

Re: symbolic link error

Hi all,
It seems I'm having the same problem here so I just wanted to confirm what to do before I proceed. Im on an Arch Linux 64 bit machine.

When I try to install anything through pacman I get the following error.

Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
 lua-5.1.3-3-x86_64       346.5K   84.4K/s 00:00:04 [#####################] 100%
 nmap-4.68-2-x86_64      1719.0K  151.1K/s 00:00:11 [#####################] 100%
checking package integrity...
(2/2) checking for file conflicts                   [#####################] 100%
(1/2) installing lua                                [#####################] 100%
(2/2) installing nmap                               [#####################] 100%
/sbin/ldconfig: /opt/lib32/lib/libblkid.so.1 is not a symbolic link

/sbin/ldconfig: /opt/lib32/lib/libe2p.so.2 is not a symbolic link

/sbin/ldconfig: /opt/lib32/lib/libss.so.2 is not a symbolic link

/sbin/ldconfig: /opt/lib32/lib/libext2fs.so.2 is not a symbolic link

/sbin/ldconfig: /opt/lib32/lib/libcom_err.so.2 is not a symbolic link

/sbin/ldconfig: /opt/lib32/lib/libuuid.so.1 is not a symbolic link

[filledvoid@Delegate-X ~]$

So I searched the forum and found this thread. So I installed ABS. I downloaded the ABS Tree and then copied /var/abs/core/e2fsprogs to  a build directory which I have in my home folder /home/filledvoid/abs/e2fsprogs. Now When I opent he PKGBUILD file in it I see the following code in it.

# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
# Maintainer: judd <jvinet@zeroflux.org>

pkgname=e2fsprogs
pkgver=1.40.8
pkgrel=1
pkgdesc="Ext2 filesystem utilities"
arch=('i686' 'x86_64')
license=('GPL' 'LGPL' 'MIT')
url="http://e2fsprogs.sourceforge.net"
groups=('base')
depends=('glibc')
makedepends=('bc')
source=(http://downloads.sourceforge.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.gz
    Makefile-fsck.static.patch
    mke2fs.conf)
md5sums=('450e2fb2461b2296fec770ff8fc147ed'
         'ce2b0daf84e17e8c7880ba3d43020ea3'
         '4ebb30bdb5951f1fc86c1470e4d81532')

build() {
  cd ${startdir}/src/${pkgname}-${pkgver}
  # Remove unnecessary init.d directory
  sed -i '/init\.d/s|^|#|' misc/Makefile.in
  ./configure --prefix=/usr --with-root-prefix="" --enable-elf-shlibs
  # add fsck.static for mkinitrd use
  patch -Np1 -i ../Makefile-fsck.static.patch || return 1
  make || return 1
  make DESTDIR=${startdir}/pkg install install-libs
  make -C ${startdir}/src/${pkgname}-${pkgver}/misc fsck.static || return 1
  install -D -m755 ${startdir}/src/${pkgname}-${pkgver}/misc/fsck.static  ${startdir}/pkg/sbin/fsck.static
  sed -i -e 's/^AWK=.*/AWK=awk/' ${startdir}/pkg/usr/bin/compile_et || return 1
  install -m644 ${startdir}/src/mke2fs.conf ${startdir}/pkg/etc/ || return 1
}

Am I to edit the line 

 install -D -m755 ${startdir}/src/${pkgname}-${pkgver}/misc/fsck.static  ${startdir}/pkg/sbin/fsck.static
cp -dp $startdir/src/lib/* $startdir/pkg/opt/lib32/lib/

I'm sorry if I'm missing the obvious but I'm quite new to the process and would like to make sure fi what I'm doing is correct before I actually break something smile.

Cheers.

Last edited by FilledVoid (2008-07-15 06:03:17)

Offline

#33 2008-07-15 06:44:38

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: symbolic link error

Check to see if you have lib32-e2fsprogs in aur unsupported installed.

Maybe I'm wrong, but I don't think you should have to alter the e2fsprogs PKGBUILD in core, but rather the lib32-e2fsprogs in aur unsupported. Where it uses the cp -rPf in the build line.

See
http://aur.archlinux.org/packages.php?ID=12674

I'm also running x86_64 and did not have to build or alter the e2fsprogs in core to fix this problem. Only the aur lib32-e2fsprogs, where I edited the -rpf to -R, in the PKGBUILD file. or, according to others, -dp works aswell.


-- archlinux 是一个极好的 linux

Offline

#34 2008-07-15 07:19:36

FilledVoid
Member
Registered: 2008-07-09
Posts: 13

Re: symbolic link error

Thank you Leigh and the folks on IRC who helped me through the process. The above fixed my problem.

Offline

#35 2008-07-17 17:49:50

staple
Member
Registered: 2007-09-28
Posts: 81

Re: symbolic link error

can this get fixed in community? who is the maintainer? it would take all of 2 minutes...

Offline

#36 2008-07-18 06:36:47

jstech
Member
From: Baltimore
Registered: 2004-05-06
Posts: 27

Re: symbolic link error

hunterthomson wrote:

I changed the cd line to:

cd -R -P ((the rest of the line here))

You mean cp, not cd, right?

On a slightly related note--I just built a new machine with a dual-core Athlon 64 X2. If I just use vanilla packages from Pacman, will they use both cores? The ABS wiki page makes me think not:
http://wiki.archlinux.org/index.php/ABS … kepkg.conf

Offline

#37 2008-07-18 14:04:27

Neverth
Member
From: Finland - Land of taxes
Registered: 2006-05-16
Posts: 45
Website

Re: symbolic link error

Fixed (?)

Friday, 18 July 2008, 13:47 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed, only affected people with /opt/lib32 stuff in their linker config, I dont have them there so I only heard about it today.
New pkg alredy upped with pkgrel 1.1


Flying is Trying is Dying

Offline

Board footer

Powered by FluxBB