Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 11-15-2005, 02:58 AM   #1
Dhaval Motghare
LQ Newbie
Registered: Nov 2005
Location: India
Distribution: Fedora core
Posts: 3

Rep: Reputation: 0
Unhappy LFS-6.1 error in File-4.13, "cannot find zlib.h"

While building the File-4.13 package i got
error that "cannot find zlib.h "
I have reinstalled the zlib package but i get the same error.
I have also applied the patch for File-4.13.

LFS -6.1
Fedora core 2
6.38. File-4.13

Dhaval Motghare
Old 11-15-2005, 06:14 AM   #2
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Strange it should look for it in /usr/include thats where the file should be.

What I notice is that if you use cflags you can get problems.
Unset them with the following command.
export CFLAGS="-O2 -march=i686" &&
and rebuild zlib and then retry file again.

Hope it works for you then...
A quote.
Zlib is known to build its shared library incorrectly if CFLAGS is specified in the environment. If using a specified CFLAGS variable, be sure to add the -fPIC directive to the CFLAGS variable for the duration of the configure command below, then remove it afterwards.

Last edited by mr_demilord; 11-15-2005 at 06:16 AM.


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
LFS 6.1 step 5.7: "ld: no input file" when compiling dummy.c zonk Linux From Scratch 6 09-05-2005 02:51 AM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 08:52 PM
LFS: Linux 2.6.x Error: Checkbin: "Too old version" DarthBane Linux From Scratch 4 06-17-2004 09:12 PM
UT demo error: "Can't find file for package 'SDLGLDrv'" r_jensen11 Linux - Software 2 04-13-2004 10:49 PM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 04:31 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 05:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration