[CentOS] linux/magic.h

Sun Oct 25 13:42:46 UTC 2009
Ilya Ponetayev <inste at mail.ru>

On Sun, 25 Oct 2009 21:58:03 +1100
hce <webmail.hce at gmail.com> wrote:

> Hi,
> 
> I had following errors while I was compiling VLC 1.0.2 on CentOS 5.2:
> 
> modules/access/file.c:52:28: error: linux/magic.h: No such file or directory
> .../../../modules/access/file.c: In function ‘IsRemote’:
> .../../../modules/access/file.c:141: error: ‘AFS_SUPER_MAGIC’
> undeclared (first use in this function)
> .../../../modules/access/file.c:141: error: (Each undeclared identifier
> is reported only once
> .../../../modules/access/file.c:141: error: for each function it appears in.)
> .../../../modules/access/file.c:142: error: ‘CODA_SUPER_MAGIC’
> undeclared (first use in this function)
> .../../../modules/access/file.c:143: error: ‘NCP_SUPER_MAGIC’
> undeclared (first use in this function)
> .../../../modules/access/file.c:144: error: ‘NFS_SUPER_MAGIC’
> undeclared (first use in this function)
> .../../../modules/access/file.c:145: error: ‘SMB_SUPER_MAGIC’
> undeclared (first use in this function)
> make[5]: *** [libaccess_file_plugin_la-file.lo] Error 1
> 
> What package is the magic.h belong to? Is the version too old, need be updated?
> 
> There is only a magic.h in /usr/include directory, but not in
> /usr/include/linux directory. There is no AFS_SUPER_MAGIC, .....
> 
> What I am missing here?
> 
> Thank you.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 

I guess you should install kernel-headers package.

-- 
Ilya Ponetayev <inste at mail.ru>