LinuxQuestions.org
Visit Jeremy's Blog.
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-29-2005, 01:38 AM   #1
jurp5
LQ Newbie
 
Registered: Nov 2005
Posts: 3

Rep: Reputation: 0
zlib error


Hello,

while compiling file i get this error:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMAGIC='"/usr/share/file/magic"' -g -O2 -c -o compress.lo `test -f 'compress.c' || echo './'`compress.c
rm -f .libs/compress.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMAGIC=\"/usr/share/file/magic\" -g -O2 -c compress.c -MT compress.lo -MD -MP -MF .deps/compress.TPlo -fPIC -DPIC -o .libs/compress.lo

compress.c:49:18: zlib.h: No such file or directory compress.c: In function `uncompressgzipped':
compress.c:253: error: `z_stream' undeclared (first use in this function)
compress.c:253: error: (Each undeclared identifier is reported only once
compress.c:253: error: for each function it appears in.)
compress.c:253: error: parse error before "z"
compress.c:281: error: `z' undeclared (first use in this function)
compress.c:281: error: `Bytef' undeclared (first use in this function)
compress.c:281: error: parse error before ')' token
compress.c:286: error: `Z_NULL' undeclared (first use in this function)
compress.c:291: error: `Z_OK' undeclared (first use in this function)
compress.c:296: error: `Z_SYNC_FLUSH' undeclared (first use in this function)
compress.c:297: error: `Z_STREAM_END' undeclared (first use in this function)

I've recompiled without cflags and copied zlib.h to build dir(then i get a other error)
what is the problem here what should i do?
 
Old 11-29-2005, 03:58 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Re: zlib error

Quote:
Originally posted by jurp5
Hello,

while compiling file i get this error:

/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMAGIC='"/usr/share/file/magic"' -g -O2 -c -o compress.lo `test -f 'compress.c' || echo './'`compress.c
rm -f .libs/compress.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMAGIC=\"/usr/share/file/magic\" -g -O2 -c compress.c -MT compress.lo -MD -MP -MF .deps/compress.TPlo -fPIC -DPIC -o .libs/compress.lo

compress.c:49:18: zlib.h: No such file or directory compress.c: In function `uncompressgzipped':
compress.c:253: error: `z_stream' undeclared (first use in this function)
compress.c:253: error: (Each undeclared identifier is reported only once
compress.c:253: error: for each function it appears in.)
compress.c:253: error: parse error before "z"
compress.c:281: error: `z' undeclared (first use in this function)
compress.c:281: error: `Bytef' undeclared (first use in this function)
compress.c:281: error: parse error before ')' token
compress.c:286: error: `Z_NULL' undeclared (first use in this function)
compress.c:291: error: `Z_OK' undeclared (first use in this function)
compress.c:296: error: `Z_SYNC_FLUSH' undeclared (first use in this function)
compress.c:297: error: `Z_STREAM_END' undeclared (first use in this function)

I've recompiled without cflags and copied zlib.h to build dir(then i get a other error)
what is the problem here what should i do?
What LFS version are you building?
With which package does it happen?
What error do you get if you didn't copied it to the build dir? Why do you copy it to the build dir?
 
Old 12-21-2005, 05:33 PM   #3
lumidoru
LQ Newbie
 
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
lfs issue with zlib

I got the same zlib errors when making File and Module-Init-Tools.
I endded up with the following commands:
cp /usr/include/zlib.h /tools/include
cp /usr/include/zconf.h /tools/include
For some reason the Zlib does not configure properly the path to the .h files.
I am using lfs 6.1 and I had no other erros except this ones related to zlib.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
openssh-3.6p1 configure zlib error fredward Linux - Newbie 5 12-22-2008 05:44 AM
Burning a .dmg file Perl Script giving zlib error zwyrbla Linux - General 1 08-19-2005 04:02 PM
xine configure error zlib does exist degraffenried13 Linux - General 2 12-13-2004 04:51 AM
Trying to run Nicotine, ZLib error ragingtarrasque Linux - Software 0 08-05-2004 02:08 PM
Trying to run nicotine, zlib error ragingtarrasque Linux - Software 0 08-05-2004 01:01 AM

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

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