Linux-DVB-1.01 fails compile with " expected identifier before numeric constant" in /usr/src/linux/include/linux/stddef.h
Kent Fredric
kentfredric at gmail.com
Sat Jun 13 18:13:38 CEST 2015
Apologies. It appears I failed to attach the log in question:
-------------- next part --------------
make --jobs=4 --load-average=1.0 -j1 OTHERLDFLAGS=-Wl,-O1 -Wl,-z,combreloc -Wl,--sort-common -Wl,--as-needed -Wl,--hash-style=both
cp DVB.pm blib/lib/Linux/DVB.pm
Running Mkbootstrap for Linux::DVB ()
chmod 644 "DVB.bs"
"/usr/bin/perl" "/usr/lib64/perl5/5.20.2/ExtUtils/xsubpp" -typemap "/usr/lib64/perl5/5.20.2/ExtUtils/typemap" -typemap "typemap" DVB.xs > DVB.xsc && mv DVB.xsc DVB.c
x86_64-pc-linux-gnu-gcc -c -I/usr/src/linux/include -D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -mtune=native -O3 -pipe -pg -DVERSION=\"1.01\" -DXS_VERSION=\"1.01\" -fPIC "-I/usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE" DVB.c
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/handy.h:77:0,
from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:2370,
from DVB.xs:2:
/usr/src/linux/include/linux/stddef.h:11:2: error: expected identifier before numeric constant
false = 0,
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:14:26: error: conflicting types for 'fd_set'
typedef __kernel_fd_set fd_set;
^
In file included from /usr/include/sys/types.h:219:0,
from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676,
from DVB.xs:2:
/usr/include/sys/select.h:75:5: note: previous declaration of 'fd_set' was here
} fd_set;
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:15:25: error: conflicting types for 'dev_t'
typedef __kernel_dev_t dev_t;
^
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676:0,
from DVB.xs:2:
/usr/include/sys/types.h:60:17: note: previous declaration of 'dev_t' was here
typedef __dev_t dev_t;
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:19:17: error: conflicting types for 'nlink_t'
typedef __u32 nlink_t;
^
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676:0,
from DVB.xs:2:
/usr/include/sys/types.h:75:19: note: previous declaration of 'nlink_t' was here
typedef __nlink_t nlink_t;
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:25:26: error: conflicting types for 'timer_t'
typedef __kernel_timer_t timer_t;
^
In file included from /usr/include/sys/types.h:132:0,
from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676,
from DVB.xs:2:
/usr/include/time.h:103:19: note: previous declaration of 'timer_t' was here
typedef __timer_t timer_t;
^
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/handy.h:77:0,
from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:2370,
from DVB.xs:2:
/usr/src/linux/include/linux/types.h:29:17: error: two or more data types in declaration specifiers
typedef _Bool bool;
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:45:26: error: conflicting types for 'loff_t'
typedef __kernel_loff_t loff_t;
^
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676:0,
from DVB.xs:2:
/usr/include/sys/types.h:44:18: note: previous declaration of 'loff_t' was here
typedef __loff_t loff_t;
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:111:17: error: conflicting types for 'uint64_t'
typedef __u64 uint64_t;
^
In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4/include/stdint.h:9:0,
from /usr/include/netinet/in.h:23,
from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:1055,
from DVB.xs:2:
/usr/include/stdint.h:55:27: note: previous declaration of 'uint64_t' was here
typedef unsigned long int uint64_t;
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:112:17: error: conflicting types for 'u_int64_t'
typedef __u64 u_int64_t;
^
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676:0,
from DVB.xs:2:
/usr/include/sys/types.h:203:1: note: previous declaration of 'u_int64_t' was here
__u_intN_t (64, __DI__);
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:113:17: error: conflicting types for 'int64_t'
typedef __s64 int64_t;
^
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676:0,
from DVB.xs:2:
/usr/include/sys/types.h:197:1: note: previous declaration of 'int64_t' was here
__intN_t (64, __DI__);
^
In file included from /usr/include/linux/dvb/frontend.h:29:0,
from DVB.xs:7:
/usr/src/linux/include/linux/types.h:134:23: error: conflicting types for 'blkcnt_t'
typedef unsigned long blkcnt_t;
^
In file included from /usr/lib64/perl5/5.20.2/x86_64-linux-thread-multi/CORE/perl.h:676:0,
from DVB.xs:2:
/usr/include/sys/types.h:248:22: note: previous declaration of 'blkcnt_t' was here
typedef __blkcnt64_t blkcnt_t; /* Type to count number of disk blocks. */
^
Makefile:332: recipe for target 'DVB.o' failed
More information about the perl
mailing list