LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Gcc/Headers (https://www.linuxquestions.org/questions/linux-general-1/gcc-headers-104007/)

trouby 10-14-2003 08:23 PM

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.

Tinkster 10-14-2003 09:07 PM

Help us in trying to help you mate :)

What package, how are you compiling it?

Cheers,
Tink

trouby 10-14-2003 09:09 PM

daemontools (required by tinydns)

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

thanks.

Tinkster 10-14-2003 09:26 PM

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

trouby 10-14-2003 09:29 PM

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?

Tinkster 10-14-2003 09:42 PM

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

trouby 10-14-2003 09:47 PM

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.


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