LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 10-14-2003, 09:23 PM   #1
trouby
Member
 
Registered: Sep 2003
Posts: 59

Rep: Reputation: 15
Gcc/Headers


I'm trying to compile some packages by my own,

I get an error "dir.h no such file or directory"

I could find that header (and some others) under /usr/include/sys directory but the compile doesn't seek for that,

on the package file I try to compile I see "#include <sys/dir.h>"
how do I make the compiler look into /usr/include/sys ?

thanks.
 
Old 10-14-2003, 10:07 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Help us in trying to help you mate :)

What package, how are you compiling it?

Cheers,
Tink
 
Old 10-14-2003, 10:09 PM   #3
trouby
Member
 
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
daemontools (required by tinydns)

I just get an error "dir.h no such file" although this file exists under /usr/include/sys

thanks.
 
Old 10-14-2003, 10:26 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Never seen those ... now, are you getting that error
from running make, are you firing up the compiler
manually? If it's from a Makefile, the first thing to check
would be whether the appropriate path(s) to includes
is/are set .... look at your Makefile and locate
-I, or a variable called INCLUDE.

Cheers,
Tink
 
Old 10-14-2003, 10:29 PM   #5
trouby
Member
 
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
What tells the compile to look into /usr/include or any other include directories by default?

when you specify in the source code include <aaa.h> where the compile look by default?

(if you'r not specifying the -I)


by the way, did you ever use daemontools?
 
Old 10-14-2003, 10:42 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
By default it should look in /usr/include,
if the source has an include directive like
#include <sys/dir.h>
the compiler should find /usr/include/sys/dir.h

If it doesn't, you need to pass this information
to the compiler via
Code:
-I /usr/include
And no, I haven't used daemontools ...

And you still haven't told me HOW you're
trying to compile them.

Cheers,
Tink
 
Old 10-14-2003, 10:47 PM   #7
trouby
Member
 
Registered: Sep 2003
Posts: 59

Original Poster
Rep: Reputation: 15
you just run an install script, which calls another script that calls another one I have to look inside the code and try to manage that, anyway, your information helped me much, I'll try to solve that prob

thanks a lot.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare Suse/Novell 3 11-29-2004 03:13 PM
Problem compiling apache 2.0, ssl headers and gcc may be keys. eblakely Red Hat 0 04-16-2004 03:12 PM
gcc compiler error / linux headers install help SciYro Linux - Software 2 12-07-2003 02:44 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 05:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM


All times are GMT -5. The time now is 11:11 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration