LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-24-2005, 10:26 AM   #1
alexchao
LQ Newbie
 
Registered: May 2005
Posts: 11

Rep: Reputation: 0
file-4.10 make error


LFS V6,
6.38. File-4.10
Code:
root:/sources/file-4.10# make
make  all-recursive
make[1]: Entering directory `/sources/file-4.10'
Making all in src
make[2]: Entering directory `/sources/file-4.10/src'
if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I..  -DMAGIC='"/usr/share/file/magic"'   -g -O2 -MT compress.lo -MD -MP -MF ".deps/compress.Tpo" \
  -c -o compress.lo `test -f 'compress.c' || echo './'`compress.c; \
then mv -f ".deps/compress.Tpo" ".deps/compress.Plo"; \
else rm -f ".deps/compress.Tpo"; exit 1; \
fi
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT compress.lo -MD -MP -MF .deps/compress.Tpo -c compress.c  -fPIC -DPIC -o .libs/compress.o
compress.c:54:18: zlib.h: No such file or directory
compress.c: In function `uncompressgzipped':
compress.c:256: error: `z_stream' undeclared (first use in this function)
compress.c:256: error: (Each undeclared identifier is reported only once
compress.c:256: error: for each function it appears in.)
compress.c:256: error: parse error before "z"
compress.c:284: error: `z' undeclared (first use in this function)
compress.c:284: error: `Bytef' undeclared (first use in this function)
compress.c:284: error: parse error before ')' token
compress.c:289: error: `Z_NULL' undeclared (first use in this function)
compress.c:294: error: `Z_OK' undeclared (first use in this function)
compress.c:299: error: `Z_SYNC_FLUSH' undeclared (first use in this function)
compress.c:300: error: `Z_STREAM_END' undeclared (first use in this function)
make[2]: *** [compress.lo] Error 1
make[2]: Leaving directory `/sources/file-4.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/file-4.10'
make: *** [all] Error 2
But there IS zlib.h in the /usr/include/

has somebody met this problem?
 
Old 05-24-2005, 10:40 AM   #2
alexchao
LQ Newbie
 
Registered: May 2005
Posts: 11

Original Poster
Rep: Reputation: 0


I copy /usr/include/{zconf.h,zlib.h} to /sources/file-4.10/src
everything work now,

when I make Module-Init-Tools-3.0
I have to copy zconf.h and zlib.h to the sources of Module-Init-Tools-3.0 to compile it,

I wonder why should I copy the headers to the sources?
 
Old 05-25-2005, 08:24 AM   #3
alexchao
LQ Newbie
 
Registered: May 2005
Posts: 11

Original Poster
Rep: Reputation: 0
and so does linux-kernel
the header file stdarg.h in the gcc sources ,copy it to /usr/src/linux-2.6.x/includes/
 
  


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
GCC Make error on Solarias 2.8: libc.a unknown file type vinaybms Solaris / OpenSolaris 1 06-20-2005 01:56 AM
kde 3.4 beta 1 (kdeutils) make file error mkoljack Linux - Software 3 02-08-2005 02:48 AM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM
Error creating make file for knoda ?????? glenn69 Linux - Newbie 4 08-25-2004 05:08 PM
make error with kdenetwork-3.0.5a: no such file or directory olisr72 Linux - Software 1 07-28-2003 04:15 PM

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

All times are GMT -5. The time now is 02:33 AM.

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