LinuxQuestions.org
Review your favorite Linux distribution.
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-23-2008, 04:48 PM   #1
usef62
Member
 
Registered: Dec 2006
Posts: 50

Rep: Reputation: 15
problem with glibc-2.5.1 at lfs 6.3


LFS 6.3 at chapter 5.6. Glibc-2.5.1
OS suse 11
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)

i have problem in ( make )

...lfs/source/glibc-build> make
.
.
.
gconv_open.c: In function ‘__gconv_open’:
gconv_open.c:59: warning: ‘ptr’ may be used uninitialized in this function
gcc -B/tools/bin/ gconv.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/home/masoud/Desktop/lfs/source/glibc-build/iconv -I/home/masoud/Desktop/lfs/source/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -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 -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv.o -MD -MP -MF /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv.o.dt -MT /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv.o
gcc -B/tools/bin/ gconv_close.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/home/masoud/Desktop/lfs/source/glibc-build/iconv -I/home/masoud/Desktop/lfs/source/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -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 -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv_close.o -MD -MP -MF /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv_close.o.dt -MT /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv_close.o
gcc -B/tools/bin/ gconv_db.c -c -std=gnu99 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -g -Wstrict-prototypes -mpreferred-stack-boundary=2 -I../include -I/home/masoud/Desktop/lfs/source/glibc-build/iconv -I/home/masoud/Desktop/lfs/source/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -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../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -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 -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.3/include -isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -o /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv_db.o -MD -MP -MF /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv_db.o.dt -MT /home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv_db.o
gconv_db.c: In function ‘find_derivation’:
gconv_db.c:422: error: ‘INT_MAX’ undeclared (first use in this function)
gconv_db.c:422: error: (Each undeclared identifier is reported only once
gconv_db.c:422: error: for each function it appears in.)
make[2]: *** [/home/masoud/Desktop/lfs/source/glibc-build/iconv/gconv_db.o] Error 1
make[2]: Leaving directory `/home/masoud/Desktop/lfs/source/glibc-2.5.1/iconv'
make[1]: *** [iconv/subdir_lib] Error 2
make[1]: Leaving directory `/home/masoud/Desktop/lfs/source/glibc-2.5.1'
make: *** [all] Error 2

??????????????

please help me
 
Old 11-24-2008, 08:15 PM   #2
jimmerlin
LQ Newbie
 
Registered: Oct 2008
Posts: 8

Rep: Reputation: 0
did you use gcc from LFS?

maybe gcc from you suse won't work,in order to use gcc from LFS,you have to define variable PATH,and /tools/bin should before /usr/bin,so when you make,it will found gcc in /tools instead of /usr/bin,i think the gcc from LFS will work,check it out,i maybe wrong
 
Old 11-25-2008, 06:54 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I think, the LFS livecd (or cd) should be used for this.

"glibc" cannot be compiled with the gcc included in Suse 11.

Last edited by knudfl; 11-26-2008 at 03:34 PM.
 
  


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
glibc 2.3.6 on LFS 5.6 profeta64 Linux From Scratch 5 12-04-2007 01:42 AM
Cross-lfs Glibc-2.4 EXS Linux From Scratch 1 06-09-2006 02:03 PM
LFS 6.0 Chapter 6: compiling glibc problem Sakur Linux From Scratch 3 08-13-2005 11:39 PM
Glibc-2.3.3-lfs-5.1 EPM_Students Linux From Scratch 1 02-12-2005 06:37 AM
Glibc (2.3.3-lfs-5.1) Mystified Linux From Scratch 2 12-02-2004 05:14 PM

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

All times are GMT -5. The time now is 09:42 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