LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-04-2017, 11:02 AM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
/etc/ld.so.conf


What should a proper /etc/ld.so.conf look like in a stock Slackware 14.2 64-bit?

I installed 14.2 64-bit in a VM for testing and the contents are for a 32-bit system.

Is this correct or should the paths be appended with '64', or should there be both 32-bit and 64-bit paths in the file?

Thanks.
 
Old 03-04-2017, 11:28 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
This is on a stock 14.2 Slackware64 system.

Code:
root@slackrepo:~# cat /etc/ld.so.conf
/lib64
/usr/lib64
/usr/local/lib64
/usr/x86_64-slackware-linux/lib64
/usr/lib64/seamonkey
 
Old 03-04-2017, 11:30 AM   #3
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
This laptop is a 32 bit running 14.2
Quote:
/lib
/usr/lib
/usr/local/lib
/usr/i586-slackware-linux/lib
/usr/lib/seamonkey
The 64 bit machine is busy running FreeBSD right now and will have to call you back later....
 
Old 03-04-2017, 12:48 PM   #4
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Okay, this is funny. I have not had sufficient stimulants ofr the day. I also cannot read.

My VM is 32-bit and not 64-bit. Time for a Homer Simpson Doh!

I installed 64-bit in the VM. The output of ld.so.conf looks like that posted by bassmadrigal. I am curious though. The path /usr/x86_64-slackware-linux/lib64 does not exist. Instead I find /usr/x86_64-slackware-linux/lib.
 
Old 03-04-2017, 02:17 PM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by upnort View Post
I am curious though. The path /usr/x86_64-slackware-linux/lib64 does not exist. Instead I find /usr/x86_64-slackware-linux/lib.
Looks like it happens in this section of binutils.SlackBuild

Code:
# Move ldscripts to /usr/lib${LIBDIRSUFFIX}, and then put symlinks in place
mv $PKG/usr/${TARGET}/lib/ldscripts $PKG/usr/lib${LIBDIRSUFFIX}
( cd $PKG/usr/${TARGET}
  ln -s /usr/lib${LIBDIRSUFFIX}/ldscripts lib/ldscripts
  for FILE in ar as ld ld.bfd ld.gold nm objcopy objdump ranlib strip ; do
    if [ -r "/usr/bin/$FILE" ]; then
      rm -f bin/$FILE
      ln -s /usr/bin/$FILE bin/$FILE
    fi
  done
)
Pat may want to change this line:

Code:
ln -s /usr/lib${LIBDIRSUFFIX}/ldscripts lib/ldscripts
to this line

Code:
ln -s /usr/lib${LIBDIRSUFFIX}/ldscripts lib${LIBDIRSUFFIX}/ldscripts
Otherwise, he would need to do something in this section of etc.SlackBuild so it doesn't change the lib on that particular folder.

Code:
# Fix for ARCH:
sed -i -e "s#/i586-slackware-linux#/${ARCH}-slackware-linux#" etc/ld.so.conf.new
# Fix paths if lib64 is needed:
if [ "$ARCH" = "x86_64" ]; then
  sed -i -e "s#/lib#/lib64#" etc/ld.so.conf.new
fi
I feel like the first one would be the better option.
 
Old 03-04-2017, 02:26 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
I posted about this to the Request for current thread with a potential patch for the SlackBuild to fix it.
 
2 members found this post helpful.
Old 03-04-2017, 05:37 PM   #7
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
I am always happy when I learn I have a rational reason to be confused.

For now I am leaving my ld.so.conf at /usr/x86_64-slackware-linux/lib. I will wait to see what Pat decides to do in current and then backport any necessary changes.
 
  


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
keyboard not work after create /etc/X11/xorg.conf.d/50-synaptics.conf file mshlinux Gentoo 2 07-27-2015 03:13 AM
Can't open grub.conf/lilo.conf with kate being root cola Slackware 6 09-28-2009 07:26 AM
/etc/hosts, /etc/resolve.conf and /etc/host.conf config probs below_average Linux - Networking 1 12-08-2004 10:07 PM
SUSE 9.1: named.conf works, but including separate conf files doesn't??? registering Linux - Distributions 0 06-09-2004 04:03 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:24 PM.

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