Chapter 6.38 File-4.10 - my first make error - how do I fix?

David Fix 6gwlse302 at sneakemail.com
Tue May 31 19:25:51 PDT 2005


> -----Original Message-----
> Sent: Tuesday, May 31, 2005 9:30 PM
> Subject: Chapter 6.38 File-4.10 - my first make error - how do I fix?
> 
> This is my complete output.  Can you tell me how to fix this? 
>  I have not had 
> any make errors up to now, so this is confusing.  Could this 
> have anything to 
> do with my first question on my /bin/bin issue?
> 
> Copy from bash:
> 
> 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 magic.lo -MD -MP -MF 
> ".deps/magic.Tpo" \
>   -c -o magic.lo `test -f 'magic.c' || echo './'`magic.c; \
> then mv -f ".deps/magic.Tpo" ".deps/magic.Plo"; \
> else rm -f ".deps/magic.Tpo"; exit 1; \
> fi
> mkdir .libs
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> magic.lo -MD -MP -MF .deps/magic.Tpo -c magic.c  -fPIC -DPIC 
> -o .libs/magic.o
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> magic.lo -MD -MP -MF .deps/magic.Tpo -c magic.c -o magic.o 
> >/dev/null 2>&1
> if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. 
> -I. -I..  
> -DMAGIC='"/usr/share/file/magic"'   -g -O2 -MT apprentice.lo 
> -MD -MP -MF 
> ".deps/apprentice.Tpo" \
>   -c -o apprentice.lo `test -f 'apprentice.c' || echo 
> './'`apprentice.c; \
> then mv -f ".deps/apprentice.Tpo" ".deps/apprentice.Plo"; \
> else rm -f ".deps/apprentice.Tpo"; exit 1; \
> fi
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> apprentice.lo -MD -MP -MF .deps/apprentice.Tpo -c 
> apprentice.c  -fPIC -DPIC 
> -o .libs/apprentice.o
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> apprentice.lo -MD -MP -MF .deps/apprentice.Tpo -c apprentice.c -o 
> apprentice.o >/dev/null 2>&1
> if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. 
> -I. -I..  
> -DMAGIC='"/usr/share/file/magic"'   -g -O2 -MT softmagic.lo 
> -MD -MP -MF 
> ".deps/softmagic.Tpo" \
>   -c -o softmagic.lo `test -f 'softmagic.c' || echo 
> './'`softmagic.c; \
> then mv -f ".deps/softmagic.Tpo" ".deps/softmagic.Plo"; \
> else rm -f ".deps/softmagic.Tpo"; exit 1; \
> fi
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> softmagic.lo -MD -MP -MF .deps/softmagic.Tpo-c softmagic.c  
> -fPIC -DPIC 
> -o .libs/softmagic.o
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> softmagic.lo -MD -MP -MF .deps/softmagic.Tpo-c softmagic.c -o 
> softmagic.o 
> >/dev/null 2>&1
> if /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. 
> -I. -I..  
> -DMAGIC='"/usr/share/file/magic"'   -g -O2 -MT ascmagic.lo 
> -MD -MP -MF 
> ".deps/ascmagic.Tpo" \
>   -c -o ascmagic.lo `test -f 'ascmagic.c' || echo './'`ascmagic.c; \
> then mv -f ".deps/ascmagic.Tpo" ".deps/ascmagic.Plo"; \
> else rm -f ".deps/ascmagic.Tpo"; exit 1; \
> fi
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> ascmagic.lo -MD -MP -MF .deps/ascmagic.Tpo -c ascmagic.c  -fPIC -DPIC 
> -o .libs/ascmagic.o
> gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -DMAGIC=\"/usr/share/file/magic\" -g -O2 -MT 
> ascmagic.lo -MD -MP -MF .deps/ascmagic.Tpo -c ascmagic.c -o 
> ascmagic.o 
> >/dev/null 2>&1
> 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
> 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
> -- 
> http://linuxfromscratch.org/mailman/listinfo/lfs-support
> FAQ: http://www.linuxfromscratch.org/lfs/faq.html
> Unsubscribe: See the above information page
> 
> 


Seems to me that you haven't installed zlib...  Maybe you missed it?  Give
that a try!  :)

	Dave 




More information about the lfs-support mailing list