Luke Brooks on 29 Aug 2013 10:03:59 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Compiler can't find linux/sys.h


Is it possible that gcc's not looking in /usr/src/kernels/2.6.32-358.14.1.el6.x86_64/include?  Maybe you could try adding the include directory to the gcc command in the makefile.  Modifying the libraries make variable or something along those lines.


On Tue, Aug 27, 2013 at 11:33 AM, Eric Lucas <eric@lucii.org> wrote:
I'm trying to compile opendx 4.4.4 on CentOS 6.

I run ./configure, then make (like always!)

Eventually it fails with this message:

memory.c:69:23: error: linux/sys.h: No such file or directory

Looking through the config.log file I see that it couldn't find that file either but did not complain or croak:

configure:29353: checking for linux/sys.h
configure:29368: gcc -E   conftest.c
conftest.c:182:38: error: linux/sys.h: No such file or directory

It correctly identifies the kernel version and the header files ARE installed:

/usr/src/kernels/2.6.32-358.14.1.el6.x86_64/include/linux/sys.h

So, how do I fix this??

TIA
Eric

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug