LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   problem in glibc (http://www.linuxquestions.org/questions/linux-from-scratch-13/problem-in-glibc-938012/)

ankit0301 04-04-2012 01:31 AM

problem in glibc
 
i'm using lfs 7.1 and while working with the glibc in chapter 5 i came up with the following error


In file included from ../sysdeps/unix/sysv/linux/syslog.c:10:0:
../misc/syslog.c: In function '__vsyslog_chk':
../misc/syslog.c:144:9: warning: variable 'prioff' set but not used [-Wunused-but-set-variable]
../misc/syslog.c:123:1: sorry, unimplemented: inlining failed in call to 'syslog': function body not available
../misc/syslog.c:155:9: sorry, unimplemented: called from here
make[2]: *** [/mnt/lfs/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1'
make: *** [all] Error 2
lfs@ankit-Inspiron-1012:/mnt/lfs/sources/glibc-build$

please provide help regarding this

druuna 04-04-2012 01:41 AM

Hi,

Have a look at this thread: error compiling glibc under Mint 12 (especially post #10 and onward).

In short: Ububtu isn't suitable as host due to the use of eglibc (check the output of version-check.sh).

I would advise to use a different host (Debian and Slackware are good candidates).

Hope this helps.

ankit0301 04-04-2012 01:55 AM

thanks for your help can i work with debian live cd to build the lfs system or do i have to get it installed on my system

druuna 04-04-2012 02:04 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4644240)
thanks for your help can i work with debian live cd to build the lfs system or do i have to get it installed on my system

I've never used the Debian liveCD. But as long as you make sure the (minor) changes that are needed to make Debian compliant as host are done I don't see why not. It does have a possible downside: You need to implement these changes every time you stop and start (also true for a few parts of LFS).

If at all possible I would suggest not using a liveCD, makes life a lot easier (especially if this is your first LFS build).

Hope this helps.

ankit0301 04-04-2012 02:08 AM

thank you this is my first lfs build i will try to get debian installed on my system and hence work in lfs build. i have a question can i triple boot my system i'm having windows xp and ubuntu 11.10 bt can i have debian also as the third operating system. Thank you

druuna 04-04-2012 02:19 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4644250)
i have a question can i triple boot my system i'm having windows xp and ubuntu 11.10 bt can i have debian also as the third operating system.

Yes, you can boot multiple OS's (assuming you have enough HD space).

There is one thing you need to be aware of: Only one of your OS's takes care of the multi-booting!! I assume that in your case this is done by Ubuntu using grub. If you install a third OS, make sure the bootloader of that new OS isn't installed/activated!! After installing, say, Debian you need to boot into Ubuntu and run sudo grub-update. If all went well you now have an extra entry (Debian) when (re)booting.

Quote:

Thank you
You're welcome :)

ankit0301 04-04-2012 03:01 AM

Quote:

If you install a third OS, make sure the bootloader of that new OS isn't installed/activated!!
how do i make sure that the bootloader isn't installed or activated as sometimes back i was trying to triple boot may system with fedora being the third OS but it caused up an error and none of the OS was loaded.
Thank You

druuna 04-04-2012 03:41 AM

Hi,
Quote:

Originally Posted by ankit0301 (Post 4644283)
how do i make sure that the bootloader isn't installed or activated as sometimes back i was trying to triple boot may system with fedora being the third OS but it caused up an error and none of the OS was loaded.

Most, if not all, Linux distro's ask you about this during the installation process. Debian does for sure. Carefully check all that mentions Grub, MBR or bootloader during the installation and make sure these options are unchecked (they are on by default).

After the installation is finished, the newly installed flavor will not yet be visible/accessible when booting. You need to boot into Ubuntu first, run the command given in my previous post (sudo grub-update), this will pick up the new bootable OS and create an entry for it. Now a third entry is present when you (re)boot.

Hope this helps.

ankit0301 04-04-2012 06:11 AM

thank you for your help


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