LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Some help for temporary system (http://www.linuxquestions.org/questions/linux-from-scratch-13/some-help-for-temporary-system-4175436811/)

Only_Jeck 11-12-2012 02:26 PM

Some help for temporary system
 
Open this new thread to ask u help in "makin' temporary system" phase, chapter 5.
At the moment, I'm trying to compile glibc.
Decompressed glibc and entered in its directory, i digited:

Code:

if [ ! -r /usr/include/rpc/types.h ]; then
  su -c 'mkdir -p /usr/include/rpc'
  su -c 'cp -v sunrpc/rpc/*.h /usr/include/rpc'
fi

but no results.. And in "make" phase, I got this:

Code:

checking for -z relro option... no
configure: error: linker with -z relro support required

This last one I can't understand..

spiky0011 11-12-2012 02:37 PM

Can you post the output of version-check
And when you ran the configure command you should of been in glibc-build

Only_Jeck 11-12-2012 02:45 PM

version-check of.. what?
I am in glibc-build. And I see now, the warning message in config phase

Code:

configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: msgfmt makeinfo autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.

Yes, the book said it. I read the install file, but don't understand how to fix this warning..

spiky0011 11-12-2012 02:52 PM

Did you read this page and make nessecary additions to host?
http://www.linuxfromscratch.org/lfs/.../hostreqs.html
Half way down there is a script to run to make sure host is compliant.
Run the script post output back here

Only_Jeck 11-13-2012 04:58 AM

Code:

bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
version-check.sh: line 8: bison: command not found
yacc not found
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
version-check.sh: line 17: gawk: command not found
/usr/bin/awk -> /usr/bin/mawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-32-generic-pae (buildd@roseapple) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012
version-check.sh: line 27: m4: command not found
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 33: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.1.0alpha
gcc compilation OK


spiky0011 11-13-2012 05:08 AM

Hi
Well there is the problem ypur host is not cmpiant
That is why i said read the book. You must fix all the noncompilant
Packages

Bison . Gawk. Makeinfo. M4. Bin/sh should point to bash

Only_Jeck 11-13-2012 05:21 AM

I thought ubuntu was enough recent to have all ok, and I didn't take care about it. Sorry.

Code:

bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-32-generic-pae (buildd@roseapple) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK

Now it's ok?

druuna 11-13-2012 05:24 AM

Quote:

Originally Posted by Only_Jeck (Post 4828216)
I thought ubuntu was enough recent to have all ok, and I didn't take care about it. Sorry.

Code:

bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-32-generic-pae (buildd@roseapple) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK

Now it's ok?

Not it isn't.

This is mentioned in the book and mentioned by spiky0011. How hard can it be?

Only_Jeck 11-13-2012 05:43 AM

How can I set the point to bash?

druuna 11-13-2012 05:49 AM

Quote:

Originally Posted by Only_Jeck (Post 4828232)
How can I set the point to bash?

As root user:
Code:

rm /bin/sh
ln -s /bin/bash /bin/sh


Only_Jeck 11-13-2012 06:03 AM

Code:

bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
...

bash or dash?

druuna 11-13-2012 06:05 AM

Quote:

Originally Posted by Only_Jeck (Post 4828244)
Code:

bash, version 4.2.24(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
...

bash or dash?

http://www.linuxfromscratch.org/lfs/.../hostreqs.html

https://www.linuxquestions.org/quest...1/#post4828210

https://www.linuxquestions.org/quest...1/#post4828232

https://www.linuxquestions.org/quest...1/#post4828238

Only_Jeck 11-13-2012 06:10 AM

Code:

root@giacomo-notebook:~# rm /bin/sh
root@giacomo-notebook:~# ln -s /bin/bash /bin/sh
root@giacomo-notebook:~# exit
exit
giacomo@giacomo-notebook:~$ ls -al /bin/sh
lrwxrwxrwx 1 root root 9 nov 13 12:05 /bin/sh -> /bin/bash

And then, the script:

Code:

root@giacomo-notebook:~# bash version-check.sh
bash, version 4.2.24(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils for Ubuntu) 2.22
bison (GNU Bison) 2.5
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2,  Version 1.0.6, 6-Sept-2010.
Coreutils:  8.13
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
(Ubuntu EGLIBC 2.15-0ubuntu10.3) 2.15
grep (GNU grep) 2.10
gzip 1.4
Linux version 3.2.0-32-generic-pae (buildd@roseapple) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012
m4 (GNU M4) 1.4.16
GNU Make 3.81
patch 2.6.1
Perl version='5.14.2';
GNU sed version 4.2.1
tar (GNU tar) 1.26
Texinfo: makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.1.0alpha
gcc compilation OK


spiky0011 11-13-2012 06:15 AM

All looks good now. I would start from the beginning
again and remove all old dir

Only_Jeck 11-13-2012 06:18 AM

Thank you. Ok, it will be done


All times are GMT -5. The time now is 03:18 PM.