[lug] gcc compile Q

Kevin Fenzi kevin at scrye.com
Sun Sep 26 14:22:51 MDT 1999


>>>>> "Justin" == Justin  <glowecon at netscape.net> writes:

Justin> I might not be doing this right but...I am getting some errors
Justin> when I run=
Justin>  the
Justin> command:

Justin> [glowecon at c101****-a(pts/2)]>gcc datapipe.c In file included
Justin> from /usr/include/sys/socket.h:34,
Justin>                  from datapipe.c:39:
Justin> /usr/include/bits/socket.h:252: asm/socket.h: No such file or
Justin> directory In file included from /usr/include/errno.h:36,
Justin>                  from datapipe.c:44:
Justin> /usr/include/bits/errno.h:25: linux/errno.h: No such file or
Justin> directory datapipe.c:48: linux/time.h: No such file or
Justin> directory

Justin> Obviously I am missing something...but I have never come
Justin> across that stuf= f before. Any suggestions?

If using redhat, you will need to have the 'kernel-headers' package
installed. If using something else, you will need to put the kernel
source in /usr/src/linux and go there and run 'make symlinks'. 

The program you are trying to compile uses some header files from the
kernel, so you need to have those in where it can find them. Typically 
/usr/include/asm and /usr/include/linux are links into the kernel
source tree (to /usr/src/linux/include/asm and
/usr/src/linux/include/linux). 

Justin>                     Justin

kevin
-- 
Kevin Fenzi
MTS, tummy.com, ltd.
http://www.tummy.com/  KRUD - Kevin's Red Hat Uber Distribution



More information about the LUG mailing list