LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-23-2015, 09:06 AM   #1
astralmaster
LQ Newbie
 
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
sys/types.h: No such file or directory


I am trying to compile a small C program on Slackware 13.37 that uses libpcap libraries. When I do
PHP Code:
gcc app.-lpcap 
it throws error:
PHP Code:
/usr/stuff/app/libpcap/pcap.h:46:25fatal errorsys/types.hNo such file or directory 
If I correctly understand, this has something to do with not having
PHP Code:
kernel-headers 
installed. If so, how can I install kernel-headers on my system? Or am I misunderstanding the problem?

Also, the directory where /sys/types.h is supposed to be located is completely empty - /usr/include/

Last edited by astralmaster; 03-23-2015 at 10:54 AM.
 
Old 03-23-2015, 12:57 PM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
If you did a full install, as recommended, you should have libpcap and the kernel headers.
 
Old 03-23-2015, 01:36 PM   #3
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
sys/types.h
This dir/file is provided by kernel headers as well glibc headers. Though they have different locations. And glibc ones may depend on kernel ones.

So install devel files of both glibc and kernel headers.
 
Old 03-23-2015, 02:12 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Quote:
Originally Posted by veerain View Post
So install devel files of both glibc and kernel headers.
Slackware doesn't divide libraries into development (dev or devel) and runtime packages.
 
Old 03-23-2015, 02:56 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,288

Rep: Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164Reputation: 3164
Slackware 13.37, glibc-2.13(-<arch>-4.txz) provides :
/usr/include/sys/types.h

$ cat /var/log/packages/glibc-2.13* | grep types.h
 
Old 03-23-2015, 11:03 PM   #6
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Quote:
Originally Posted by brianL View Post
Slackware doesn't divide libraries into development (dev or devel) and runtime packages.
OK. Nice for info.
 
  


Reply

Tags
gcc, kernel headers, slackware 13.37


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conflicting type declarations between sys/types.h and linux/types.h Da Shi Cao Programming 3 09-13-2010 11:55 PM
where can i find sys/types.h file? pavan.manipal Programming 4 03-25-2009 12:49 AM
sys/types.h & linux/types.h conflict while compiling johnnyhal Linux - Software 1 12-28-2008 06:39 PM
conflicting redeclaration of sys/types.h and linux/types.h schmil Programming 6 12-11-2008 02:02 PM
duplicate directory tree for only certain file types curmudgeon42 Linux - Software 13 01-22-2005 02:38 PM


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