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.
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>
On Sun, Oct 25, 2009 at 6:58 AM, hce <webmail.hce at gmail.com> wrote:> I had following errors while I was compiling VLC 1.0.2 on CentOS 5.2:Why not use a repository like rpmforge which provides vlc in a nice shiny prebuilt rpm? Also, are you really still on 5.2? If so, you should very much consider updating via yum update to 5.4, as there are a number of security bugs including kernel and udev exploits which can lead to compromises.> > What package is the magic.h belong to? Is the version too old, need be updated?Yum can be used to figure this out with the 'provides' option.> There is only a magic.h in /usr/include directory, but not in > /usr/include/linux directory. There is no AFS_SUPER_MAGIC, .....Yum can be used to figure this out with the 'provides' option, telling you what provides that dir and the files within it.> What I am missing here?-- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell