Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-09-2013, 08:39 AM
|
#1
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Rep: 
|
Slackware glibc-2.17
Hello Slackware friends.
If someone of you try to compile new glibc-2.17,this is what you gotta do
put this in diffutils and tar,because they will fail to compile without that line in SlackBuild script.I will test other packages to view if they fail to compile with new glibc
Code:
sed -i -e '/gets is a/d' gnu/stdio.in.h
p.s
Sorry for my english 
This is the packages that i tested and they compile perfect with new glibc
This is the build order that i compile my packages after bild toolchain from my next post
Code:
aaa_base
aaa_elflibs
aalib
alsa-lib
alsa-oss
alsa-utils
atk
attr
audiofile
bin
cairo
cdparanoia
cdrtools
cxxlibs
cyrus-sasl
dbus
dbus-glib
dhcpcd
dialog
e2fsprogs
eject
esound
etc
exiv2
flac
fribidi
gdk-pixbuf2
geeqie
giflib
glib2
gnupg
gtk+2
gvfs
htop
infozip
iputils
kernel-firmware
kmod
lcms
lcms2
libatasmart
libcaca
libcdio
libcroco
libffi
libgcrypt
libgnome-keyring
libmad
libmcs
libmng
libmowgli
libmpc
libnotify
libogg
libpng
libtheora
libvorbis
libwnck
libxklavier
libxml2
lilo
links
lzo
mpg123
nano
network-scripts
pango
phonon
polkit
poppler
procps
sdl
shadow
shared-mime-info
slocate
startup-notification
sysklogd
sysvinit
sysvinit-scripts
udev
udisks2
unrar
util-linux
vte
wget
which
zlib
ALL XFCE-4.10 packages Thunar-1.6.2,exo-0.10.2
ALL packages from X directory
I compile only them because i heve a minimal installation of Slackware64
To build freeglud with MESA-9.0.2 you need this stuff in freeglut.SlackBuild
Code:
sed -i '/PFNGLSHADERSOURCEPROC/s/ \*\*string/\* const \*string/' \
progs/demos/smooth_opengl3/smooth_opengl3.c
Also if you whant opengl 3.0 with r600,r600g driver for ati you need this to configure option for Mesa
Code:
--enable-texture-float \
Last edited by tuxbg; 02-11-2013 at 06:35 AM.
|
|
|
02-10-2013, 04:42 AM
|
#2
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,465
|
just FYI, on Dec 21 2012
Quote:
Originally Posted by -current's ChangeLog
Still testing the new glibc, which removes the gets() function and may or may
not be a safe upgrade yet. It might be safer after the next gcc comes out.
|
consider that the first release candidate (not the final one) of gcc-4.8.0 is, at least (being optimistic), one month away...
As you are basically rebuilding a slackware system from scratch, (if you feel like) could be useful also for others to update the first post with the exact order you follow in building the various packages 
Last edited by ponce; 02-10-2013 at 05:05 AM.
|
|
|
02-10-2013, 06:27 AM
|
#3
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep: 
|
Yes basically i rebuild all my packages with new glibc.First i rebuild my toolchain gcc-4.7.2 following this link http://www.linuxfromscratch.org/lfs/...technotes.html
I use original SlackBuilds
Toolchain build order is
Code:
binutils
mpfr
gmp
mpc
gcc
headers
glibc #Here i add this line to SlackBuild sed -i -e 's/-lgcc_eh//g' Makeconfig
patches for glibc is glibc-2.17-sync-with-linux37.patch and glibc-2.17-no_timezones.patch
binutils
gcc
ncurses
bash
bzip
coreutils
difutils # sed -i -e '/gets is a/d' gnu/stdio.in.h This in SlackBuild
file
findutils
gawk
grep
gzip
make
patch
perl
sed
tar #This line iin SlackBuild sed -i -e '/gets is a/d' gnu/stdio.in.h
xz
Last edited by tuxbg; 02-10-2013 at 06:35 AM.
|
|
|
02-10-2013, 07:09 AM
|
#4
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep: 
|
Other packages successfully build is
This is the build order that i compile this packages
Code:
ConsoleKit
MPlayer
audacious
audacious-plugins
epdfview
flash-player
leafpad
libevent
libsoup
murrine
murrine-themes
p7zip
transmission
xarchiver
xfce4-screenshooter
ttf-bitsream-vera
dejavu
skype_static
openssl #Todays upgrade
openssl-solibs
mozilla-firefox
And one last thing i build all my packages with that CFLAGS -O2 -fpic -pipe -march=native
Last edited by tuxbg; 02-11-2013 at 06:32 AM.
|
|
|
02-11-2013, 06:28 AM
|
#5
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep: 
|
New packages that's compile correctly is all KDE-4.10 deps and all KDE-4.10 with new glibc-2.17.
I will try gcc-4.8 snapshot
All packages are compiled with CFLAGS -O2 -fpic -pipe -march=native
Also i have a one question why Slackware packages are compiled with fPIC instead fpic ?
Last edited by tuxbg; 02-11-2013 at 06:31 AM.
|
|
|
02-11-2013, 09:07 AM
|
#6
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,465
|
I guess because of this
http://tldp.org/HOWTO/Program-Librar...libraries.html
Quote:
create the object files that will go into the shared library using the gcc -fPIC or -fpic flag. The -fPIC and -fpic options enable ``position independent code'' generation, a requirement for shared libraries;
...
Use -fPIC or -fpic to generate code. Whether to use -fPIC or -fpic to generate code is target-dependent. The -fPIC choice always works, but may produce larger code than -fpic (mnenomic to remember this is that PIC is in a larger case, so it may produce larger amounts of code). Using -fpic option usually generates smaller and faster code, but will have platform-dependent limitations, such as the number of globally visible symbols or the size of the code. The linker will tell you whether it fits when you create the shared library. When in doubt, I choose -fPIC, because it always works.
|
|
|
1 members found this post helpful.
|
02-11-2013, 09:14 AM
|
#7
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep: 
|
Ok thanks,i found that Vector Linux use fpic instead fPIC but not on all packages 
|
|
|
02-11-2013, 10:53 AM
|
#8
|
LQ Veteran
Registered: May 2008
Posts: 7,135
|
On x86 family processors I don't believe there is any difference between -fpic and -fPIC, at least that is what the gcc man-page seems to be saying.
|
|
|
02-11-2013, 12:19 PM
|
#10
|
LQ Guru
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,465
|
Quote:
While the architectures supported by Gentoo are quite differently addressing memory, they all share the same characteristic: direct non-PIC-aware addressing is always cheaper (read: faster) than PIC addressing. For example the RISC (Reduced Instruction Set) architectures sparc, ppc and hppa sometimes use more than one assembler command issuing several more opcodes to do what x86 does with a single variable length assembler command, loading a full 32-Bit address for example. Only the AMD64 seems to support some kind of "emulation" mode where it does not seem to make a difference if PIC or normal addressing is used for referring code functions and data to access.
|
-fPIC is enabled in the *.SlackBuilds only for the x86_64 architecture.
|
|
1 members found this post helpful.
|
03-28-2014, 05:50 PM
|
#11
|
Member
Registered: Feb 2014
Posts: 344
Rep: 
|
I decided to update my toolchain. Well actually only glibc and rebuilding the toolchain.
PART 1:
1) U glibc-2.19-1
I just needed to add/delete a patch to the slackbuild and all went well.
2) R zlib-1.2.8-2
Why not huh?
3) R binutils-2.23.52-3
4) R oprofile-0.9.7-5
5) U file-5.17-1
6) R gmp-3.1.2-2
7) R mpfr
9) U libmpc-1.0.2-3
Create symlink:
cd /usr/lib64
ln -s libmpc.so.3 libmpc.so.3
10) R gcc-4.8.2-2
First install gcc-gnat gcc-java and gcc-go and reinstall updated packages including gcc-g++
11) R libtool-2.4.2-3
12) R binutils-2.23.52-4
13) R popt
14) R oprofile
15) R glibc-2.19-2
DONE
PART 2: base rebuild according to LFS book and dependencies according to salix
R zlib, R file, R attr, R acl, R sed, R bzip2, U pkg-config-0.28-1, R shadow, R ncurses
R libtermcap, R procps and U psmisc-22.21
R libcap and U coreutils-8.22
R m4, R flex, U bison-3.0.2, R bash, R libtool, R gdbm, R net-tools
A few updates are available but gave me problems like gdbm and I decided to skip procps-ng.
Net-tools is unmaintained and the slackbuild needed a few extra patches.
R autoconf, U automake-1.14.1, R diffutils, R gawk, R findutils, U gettext-0.18.3.1, R xz
R less, R gzip, R kbd, U kmod-16, R make, R patch, R sysklogd, R sysvinit, U tar, R texinfo.
Again a few could need some updating like kbd but did not try, tar needed a few patches and texinfo is old.
R readline, R bc, R gawk, R man, U man-pages-3.61, R db48, R expat, R openssl and openssl-solibs.
U perl-5.18.2. I tried gdbm > 1.8.3 but somehow the usr/include/gdbm.h does not install.
I should try to upgrade to man-db as well. Readline is also quite old.
R libpng, U freetype-2.5.3, U fuse-2.9.3, R libelf, R libffi, R python, R gamin, U glib2-2.40.0 and R gamin again.
Python could get an update though. Almost there.
R udev, U util-linux-2.24, R udev, U e2fsprogs-1.42.9, U mdadm-3.3, R lvm2, R grub.
I spent a lot of time fixing grub with a few hard to find patches.
R libmnl, R libnfnetfilter_conntrack, R libnl3, U libusb-1.0.18, U libpcap-1.5.3, iptables and iproute2.
U iptables-1.4.21, U iproute2-3.12.0. Almost forgot R nano.
R sysvinit-functions and salix scripts. The scripts are built with SLKBUILD.
R mkinitrd and I rebooted!
If I made some foolish errors, so what, I can go again!
Is there a slackbuild available for the headers?
Last edited by hendrickxm; 03-29-2014 at 12:35 AM.
|
|
|
03-30-2014, 11:10 AM
|
#12
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep: 
|
Quote:
Originally Posted by hendrickxm
I decided to update my toolchain. Well actually only glibc and rebuilding the toolchain.
Create symlink:
cd /usr/lib64
ln -s libmpc.so.3 libmpc.so.3
Is there a slackbuild available for the headers?
|
You need to create libmpc.so.2 symlink to libmcp.so.3,because your gcc search for libmpc-so.2 that is direct dependencies to gcc.
Code:
#!/bin/sh
set -e
CWD=`pwd`
VERSION=${VERSION:-3.10.30}
ARCH=${ARCH:-x86}
BUILD=${BUILD:-1}
TMP=${TMP:-/tmp}
PKG=$TMP/package-kernel-headers
rm -rf $PKG
cd /usr/src/linux-$VERSION
make headers_check || exit 1
make headers_install INSTALL_HDR_PATH=$PKG/usr
cd $PKG
mkdir install
cat $CWD/slack-desc > install/slack-desc
makepkg -l y -c n $TMP/kernel-headers-$VERSION-${ARCH}-$BUILD.txz
|
|
|
03-31-2014, 10:16 AM
|
#13
|
Member
Registered: Feb 2014
Posts: 344
Rep: 
|
Thanks.
The libmpc.so.3 symlink was a typo.
I will update to 3.12 kernel headers since that release is the new LTS.
Next, am I going to think about what packages I can/will upgrade/rebuild and the order.
I used the LFS-book, the dependencies according to salix and toolchain notes in this write-up: http://eerielinux.wordpress.com/2013...x-system-pt-3/ as a lead.
I tried to create packages for an updated kernel but I have not figured out yet how I can rebuild a "huge" kernel package. I tried to change the direcotries in the slackbuild but the buildscript finishes almost instantly without actually building a package.
|
|
|
03-31-2014, 12:39 PM
|
#14
|
Member
Registered: Sep 2012
Location: Bulgaria,Varna
Distribution: Slackware64
Posts: 249
Original Poster
Rep: 
|
You say that you use glibc.Slackbuild to build glibc-2.19.
But do you edit doinst.sh-glibc and doinst.sh-glibc-solibs ?
There is a simlinks to 2.17
|
|
|
03-31-2014, 01:41 PM
|
#15
|
Member
Registered: Feb 2014
Posts: 344
Rep: 
|
Quote:
Originally Posted by tuxbg
You say that you use glibc.Slackbuild to build glibc-2.19.
But do you edit doinst.sh-glibc and doinst.sh-glibc-solibs ?
There is a simlinks to 2.17
|
Yes, I have changed those scriptfiles.
Included are my edited files.
|
|
|
All times are GMT -5. The time now is 11:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|