LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-19-2015, 12:18 PM   #1
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Rep: Reputation: Disabled
acl & attr install error


I built a recent (6/10) svn version of LFS and i wanted to add the pkg manager from Crux ('pkgutils'). Non LFS requirement is libarchive - I installed that. But, it complained of missing static libs for libarchive, acl, attr, expat, & xz. I rebuilt those to get the static libs but ran into some problems with both acl & attr:

Code:
/bin/make -C libacl install-lib
make[1]: Entering directory '/sources/build/acl-2.2.52/libacl'
cd ../libacl/.libs; 
../../include/install-sh -o root -g root -m 755 -d /usr/lib;
../../include/install-sh -o root -g root -m 644 -T so_dot_version libacl.lai /usr/lib; 
../../include/install-sh -o root -g root -T so_dot_current libacl.lai /usr/lib
../../include/install-sh: line 211:  6989 Bus error               $CP $solib $install_name
sed: error while loading shared libraries: /lib/libacl.so.1: file too short
This during the 'make install-lib' part of acl or attr. The shared library was in fact zero length (but the static lib was built okay). I had to exit & re-enter chroot with PATH=/tools and then i was able to build acl & attr w/ success.

I installed pkgutils and reinstalled acl & attr as 1st two pkgs in package manager database - also no problems. My only question is what went wrong - why did that error happen?

One place i did deviate from the book - /lib is symlinked to /usr/lib (so is /lib64).
 
Old 06-19-2015, 04:01 PM   #2
Krejzi
Member
 
Registered: Jan 2015
Posts: 215

Rep: Reputation: Disabled
I believe this is an issue with libacl.so.* being overwitten by a program that uses it - install or cp. I have seen this before. A fix is to set LD_LIBRARY_PATH to the source/build dir (or a subdirectory inside source/build dir) where the shared library resides before running make install.
 
Old 06-20-2015, 06:01 AM   #3
bryan_S
Member
 
Registered: Aug 2014
Location: N. Florida
Distribution: LinuxfromScratch, OpenSuse, Slackware
Posts: 107

Original Poster
Rep: Reputation: Disabled
Thanks, i will keep that in mind it i see this again - easier than exiting the chroot and changing the PATH. I quess i wont see this issue again on this build since i'm using a package manager now (with lines like 'make DESTDIR=$PKG install' in the build script).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
udev - cannot recognise ATTR value glukoz.ziewa Programming 6 04-16-2012 06:19 AM
acl permission error -------------ubuntu -------------(530 login error) saravanakumar Linux - Networking 1 08-06-2011 11:46 AM
Install error: fatal error attempting to install <pkgpath & name> gmartin Slackware - Installation 24 02-17-2005 04:26 PM
rsync & acl collen Linux - Software 0 12-10-2003 09:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration