LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-10-2004, 06:56 PM   #1
Zamochit
LQ Newbie
 
Registered: Oct 2004
Location: Oregon
Distribution: Slackware ATM
Posts: 10

Rep: Reputation: 0
glibc-2.3.3-lfs-5.1 error


Hi, first off I'm sorry if this is a stupid question but I couldn't find an answer anywhere else. ok, while running "make AUTOCONF=no" I encountered errors. When searching google and such I found someone that said running "make AUTOCONF=no install" had worked when the first hadn't. Either way I ended up with this error.

Quote:
gcc -B/tools/bin/ dl-runtime.c -c -std=gnu99 -O2 -Wall -Winline
-Wstrict-prototypes -Wwrite-strings -g -mpreferred-stack-boundary=2
-fexceptions -fasynchronous-unwind-tables -I../include -I.
-I/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/glibc-build/elf -I.. -I../libio
-I/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/glibc-build -I../sysdeps/i386/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/i386
-I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread
-I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv
-I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686
-I../linuxthreads/sysdeps/i386 -I../sysdeps/unix/sysv/linux/i386
-I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common
-I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix
-I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686
-I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754
-I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/include -isystem /tools/include
-D_LIBC_REENTRANT -include ../include/libc-symbols.h -o
/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/glibc-build/elf/dl-runtime.o -MD -MP
-MF /mnt/lfs/sources/glibc-2.3.3-lfs-5.1/glibc-build/elf/dl-runtime.o.dt
dl-runtime.c:57: error: conflicting types for `fixup'
../sysdeps/i386/dl-machine.h:158: error: previous declaration of `fixup'
dl-runtime.c:137: error: conflicting types for `profile_fixup'
../sysdeps/i386/dl-machine.h:161: error: previous declaration of
`profile_fixup'
make[2]: ***
[/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/glibc-build/elf/dl-runtime.o] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.3-lfs-5.1'
make: *** [install] Error 2
I'd be gratefull for any help. The distro I'm building out of is SUSE 9.1
 
Old 11-12-2004, 01:39 AM   #2
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
interesting...

...
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/include
...

looks like it pulled in the hosts fixed includes

Was your PATH set correctly so your newly created gcc in /tools was used as opposed to your hosts?
 
Old 11-12-2004, 10:39 PM   #3
Zamochit
LQ Newbie
 
Registered: Oct 2004
Location: Oregon
Distribution: Slackware ATM
Posts: 10

Original Poster
Rep: Reputation: 0
I thought it was. I've been very carefull about double checking stuff I type from the book. I totally bit myself in the ass mistyping commands once before.

Is there any way for me to check the PATH now?
 
Old 11-14-2004, 06:30 PM   #4
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
Easiest way to ensure your path is set correctly is to export it in the lfs users .bash_profile
(you are building as a non-root user aren't you?).

When you su - lfs you can check path simply via "echo $PATH" or to see your whole environment "env".

HTH
[R]
 
Old 11-14-2004, 08:30 PM   #5
Zamochit
LQ Newbie
 
Registered: Oct 2004
Location: Oregon
Distribution: Slackware ATM
Posts: 10

Original Poster
Rep: Reputation: 0
First off thank you for even answering my question. I'm a totall so I don't know alot of basic stuff. I figured this might be a good way to learn.

Tomorrow when I am better rested I will go mess with it. Tonight I have almost been up 24 hours. Would probably only botch the thing up worse than I already have.

In case I didn't mention, thank you for the point in the right direction.
 
Old 11-16-2004, 12:05 AM   #6
Zamochit
LQ Newbie
 
Registered: Oct 2004
Location: Oregon
Distribution: Slackware ATM
Posts: 10

Original Poster
Rep: Reputation: 0
Update: I went back in the book and found "Setting up the environment" Turns out I'm a stupid@$$. I misstyped in the .bashrc script. I put 'PATH=/tools/bin:/bin:/usr/bin' as 'PSTH=/tools/bin:/bin:/usr/bin'

I'm assuming that affects the stuff I made before getting to the error so I'm gonna delete everything in $LFS/tools and all the extracted folders and start over at the beginning of chapter 5.

At least you saved me from starting over at "Install linux host system"
 
Old 11-16-2004, 01:01 AM   #7
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 122

Rep: Reputation: 16
LOL ;-) Happens to the best of us :-)

Should go a bit smoother this time around methinks

Regards
[R]
 
Old 12-03-2004, 04:08 PM   #8
trainpic
Member
 
Registered: Apr 2004
Location: Ohio
Distribution: Ubuntu 6.06 LTS (Ubuntu, Edubuntu, Ubuntu Server)
Posts: 77
Blog Entries: 2

Rep: Reputation: 15
Hey.
I have the exact same problem. I have tried building under Redhat 7.3, Fedora Core 2 and RedHat 9.0, on two different systems. I ran
Code:
echo $PATH
and it showed the correct path. (Is there an environment variable for compile libraries?). No clue why this doesn't work.
 
Old 01-13-2005, 06:00 AM   #9
jobesd
LQ Newbie
 
Registered: Nov 2001
Posts: 29

Rep: Reputation: 15
glibc-2.3.3 error

Has anyone found out how to get by this ERROR?

lfs-museum/5.1/chapter05/glibc.html

Code:
dl-runtime.c:56: error: conflicting types for 'fixup'
../sysdeps/i386/dl-machine.h:158: error: previous declaration of 'fixup' was here
dl-runtime.c:56: error: conflicting types for 'fixup'
../sysdeps/i386/dl-machine.h:158: error: previous declaration of 'fixup' was here
dl-runtime.c:141: error: conflicting types for 'profile_fixup'
../sysdeps/i386/dl-machine.h:161: error: previous declaration of 'profile_fixup' was here
dl-runtime.c:141: error: conflicting types for 'profile_fixup'
../sysdeps/i386/dl-machine.h:161: error: previous declaration of 'profile_fixup' was here
../sysdeps/i386/dl-machine.h:158: warning: 'fixup' declared `static' but never defined
../sysdeps/i386/dl-machine.h:161: warning: 'profile_fixup' declared `static' but never defined
make[2]: *** [/mnt/lfs/build/glibc-build/elf/dl-runtime.o] Error 1
make[2]: Leaving directory `/mnt/lfs/build/glibc-build/glibc-2.3.3/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/build/glibc-build/glibc-2.3.3'
make: *** [all] Error 2



.bashrc
Code:
set +h
umask 022
LFS=/mnt/lfs
LC_ALL=POSIX
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH
echo $PATH gives me
Code:
/tools/bin:/bin:/usr/bin


jobesd
 
  


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
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM
Error in Glibc Chapter-6 LFS ver-6..Help pls?? chakkaradeepcc Linux From Scratch 10 05-23-2005 12:33 PM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
make glibc error (LFS) gatblast45 Linux - Software 3 12-21-2004 11:30 AM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:33 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
Open Source Consulting | Domain Registration