LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   glibc-2.3.3-lfs-5.1 error (https://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-2-3-3-lfs-5-1-error-253415/)

Zamochit 11-10-2004 06:56 PM

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

mdh 11-12-2004 01:39 AM

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?

Zamochit 11-12-2004 10:39 PM

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?

mdh 11-14-2004 06:30 PM

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]

Zamochit 11-14-2004 08:30 PM

First off thank you for even answering my question. I'm a totall :newbie: 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.

Zamochit 11-16-2004 12:05 AM

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" ;)

mdh 11-16-2004 01:01 AM

LOL ;-) Happens to the best of us :-)

Should go a bit smoother this time around methinks

Regards
[R]

trainpic 12-03-2004 04:08 PM

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.

jobesd 01-13-2005 06:00 AM

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


All times are GMT -5. The time now is 05:49 AM.