LinuxQuestions.org
Review your favorite Linux distribution.
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 11-15-2005, 01: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

--
Regards
Dhaval Motghare
 
Old 11-15-2005, 05:14 AM   #2
mr_demilord
Member
 
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.
Code:
export CFLAGS="-O2 -march=i686" &&
    CXXFLAGS=$CFLAGS
and rebuild zlib and then retry file again.

Hope it works for you then...
A quote.
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 05:16 AM.
 
  


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

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

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

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