LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 12-04-2008, 12:31 PM   #1
dianming
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
Syslog.c error


Hey everyone,

I've been using Linux for a few years now, having gone through all the major distributions (openSuSE, Red Hat, Fedora, and now mostly Ubuntu), and now I'm jumping into LFS to learn a little bit more.

I've run into a funny error, though, when trying to compile glibc 2.8.x or 2.9.x(Latest). The config runs flawlessly, but when I run the make command I get this error well into the compile:

../misc/syslog.c: In function ‘__vsyslog_chk’:
../misc/syslog.c:123: sorry, unimplemented: inlining failed in call to ‘syslog’: function body not available
../misc/syslog.c:155: sorry, unimplemented: called from here
make[2]: *** [/mnt/adm/sources/glibc-build/misc/syslog.o] Error 1
make[2]: Leaving directory `/mnt/adm/sources/glibc-src/misc'
make[1]: *** [misc/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/adm/sources/glibc-src'
make: *** [all] Error 2

So `_vsyslog_chk' isn't implemented? Is it a deprecated function?

I'm running Ubuntu Intrepid Ibex 8.10 with all the updates, an Intel Dual-Core 6300 @ 1.86 GHz, 1.8 GB ram.

Anything I can do to get around this?
 
Old 12-04-2008, 02:00 PM   #2
ctg60
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
I received exact the same error when compiling with gcc 4.3, however gcc 4.2 is ok.
 
Old 12-04-2008, 03:45 PM   #3
dianming
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
ctg60 -- Are you also running Ubuntu? I've been looking over the forums, and I haven't seen too much about developing an LFS system with a Ubuntu host. Wonder if it's distro specific...
 
Old 12-04-2008, 05:01 PM   #4
dianming
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Ack -- I compiled gcc 4.2 to replace the 4.3, but I still get the same error!

I didn't start completely over, just ran the gcc 4.2 compilation. Perhaps I would need to start from ground zero because the new compilation didn't overwrite the newer gcc completely?

Another interesting note: I've opened up the syslog.c file in the /misc subdirectory. There is an implementation of the __vsyslog_chk function. So maybe my gcc isn't compiling correctly?
 
Old 12-05-2008, 05:25 AM   #5
ctg60
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
I was using gcc 4.2.4-3ubuntu4. I think you should tried both including the one you compiled yourself see if it is gcc issue.
 
Old 12-05-2008, 11:24 AM   #6
dianming
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hmm....interestingly enough, I compiled both the gcc 4.2.4 and the 4.2.4-3ubuntu4. Neither of them worked; still the same error!

I'm guess I'm going to have to start from the top and see what happens.
 
Old 12-08-2008, 10:24 AM   #7
dianming
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Aha! So I've finally gotten GCC compiled right. I restarted with a Xubuntu host and used all the updated files (even GCC 2.9). I think my problem might have been with the sed command before the configure -- I wasn't running it when cd'd into the GCC source folder. No wonder the command always returned a "file not found" error. Heh.

The build was flawless, and tested without any errors. Cool!
 
Old 12-17-2008, 03:06 PM   #8
ioncrew
LQ Newbie
 
Registered: Dec 2008
Posts: 2

Rep: Reputation: 0
dianming-- are you sure, you use GCC 2.9? or GLIBC-2.9 ?
 
Old 01-20-2009, 02:38 AM   #9
pelvis2
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Same problem but dont understand the workaround(solution)

So diangming you say that the probelm is the gcc that comes by default with the ubuntu distribution and I have to compile or reinstall a better version of it or is it the gcc compiled before? Thats because I'm not using the gcc compiled before to compile glibc as a tool program and get the same compilation problem. Hmmm very strange. because in lfs when compiling the tools it says you dont need any sed command to run before compileing gcc and anyway lfs book says to compile glibc agains ubuntus default gcc not against the gcc you compiled b4. Very strange pls tell me if you know where the problem is

Last edited by pelvis2; 01-20-2009 at 02:44 AM.
 
Old 01-21-2009, 01:59 AM   #10
pelvis2
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
OK guys i have found what the problem was. First of all b4 compiling be sure that CC is set right and make a echo $CC it should be
gcc -B/usr/bin if not run CC="gcc -B/usr/bin" but that wasnt enough in my case i still got the error then i began to read the INSTALL in the source folder and there it says that you should try to avoid as much as posible to compile it as root. And it worked when i tryed to compile it as lfs not as root.

PS: I have also set the profile for root as that for fls as it was explained but that wasnt enough. So profile wasnt the probleme here and settings also not. Very strange but now it works fine as lfs user.

So I advise you to be somthing else as root at least on ubuntu when you compile glibc.
 
Old 12-29-2011, 06:38 PM   #11
itzfritz
Member
 
Registered: Oct 2004
Location: Babylon, New York
Distribution: debian lenny, ubuntu intrepid
Posts: 70

Rep: Reputation: 15
[SOLVED] Syslog.c error

For a resolution to this issue, see http://sourceware.org/bugzilla/show_bug.cgi?id=10375

Code:
Need to add -U_FORTIFY_SOURCE to the gcc invocation. I found this in Ubuntu's Debian packaging for glibc. I believe this is an Ubuntuism. Ubuntu enables -D_FORTIFY_SOURCE=2 by default. 
See Ubuntu's CompilerFlags wiki page.
glibc bug 10375 reports this issue, but it has not been addressed.
source: http://plash.beasts.org/wiki/GlibcBuildIssues
 
  


Reply

Tags
glibc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I/O error in syslog. What drive is it? mpyusko Linux - Hardware 8 10-21-2007 12:28 AM
2.6.5 syslog error hemp4fuel Slackware 1 05-02-2004 10:09 AM
2.6.5 syslog error hemp4fuel Linux - General 1 05-02-2004 10:07 AM
syslog error message saag Linux - Newbie 0 03-20-2004 03:28 PM
Syslog error smokedog Linux - Software 0 02-27-2004 05:33 AM


All times are GMT -5. The time now is 06:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration