LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   file-4.10 make error (https://www.linuxquestions.org/questions/linux-from-scratch-13/file-4-10-make-error-326602/)

alexchao 05-24-2005 10:26 AM

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?

alexchao 05-24-2005 10:40 AM

:)

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?

alexchao 05-25-2005 08:24 AM

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


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