LinuxQuestions.org
Visit Jeremy's Blog.
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 04-27-2011, 06:54 PM   #1
wargus
Member
 
Registered: Mar 2010
Location: Switzerland
Distribution: Slackware
Posts: 98

Rep: Reputation: 23
sysvinit patch and compiling problem


I've tried to recompile sysvinit from -current. I found following 2 problems

In the slackbuild from -current sources, after this line

Code:
if [ "$ARCH" = "x86_64" ]; then
a patch should be applied, but looks as it doesn't since there is a "typo"

Code:
zcat $CWD/sysvinit-2.86-timeval.diff.gz | patch -p1 -E --verbose --backup --suffix=.orig || exit 1
fi

gzip: /root/sysvinit/sysvinit-2.86-timeval.diff.gz: No such file or directory
Hmm...  I can't seem to find a patch in there anywhere.
since the patch is named

Code:
sysvinit-2.86-timeval.patch.gz

Further I cannot run the sysvinit.Slackbuild, it terminates with this error:

Code:
...
gcc -Wall -O2 -fomit-frame-pointer -D_GNU_SOURCE   -c -o sulogin.o sulogin.c
gcc -s  -o sulogin sulogin.o
sulogin.o: In function `main':
sulogin.c:(.text+0xa32): undefined reference to `crypt'
collect2: ld returned 1 exit status
make: *** [sulogin] Error 1
What am I doing wrong?

Thanks for help
 
Old 04-28-2011, 09:01 AM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Sysvinit is the same in 13.1 and -current.

Why are you trying to rebuild the package?
 
Old 04-28-2011, 10:03 AM   #3
wargus
Member
 
Registered: Mar 2010
Location: Switzerland
Distribution: Slackware
Posts: 98

Original Poster
Rep: Reputation: 23
Tried to recompile several packages with canaries and relro. After it didn't work with sysvinit, I tried to simply recompile the original to find out if it's related on these options but didn't even work with the original.

It was more out of curiosity if its possible to add these options (-fstack-protector-all, -Wl,-z,relro,-z,now) to it. Now I wonder if I would need to tweak the toolchain to be able to compile the original.
 
  


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
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 03:45 PM
Patch new kernel post compiling mikieboy Debian 2 04-18-2008 06:29 PM
compiling problem of debian kernel 2.6.15 with 2.6.15-mms patch headlie Linux - Laptop and Netbook 0 01-08-2006 03:30 PM
2.4.22-rc1-ac1 + supermount patch not compiling Mad Merlin Linux - General 2 08-12-2003 08:58 PM
sysvinit editor problem SLACK81 ocularbob Slackware 4 03-19-2003 02:24 PM

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

All times are GMT -5. The time now is 06:02 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