srcpd-2.0.12 builds fail in li100main.c when both glibc headers and linux headers are present on the system.
The file li100-main.c includes the following lines:
#ifdef linux
#include <linux/serial.h>
#include <sys/io.h>
#endif
If these lines are removed, srcpd will then build successfully.
make[2]: Entering directory `/home/slitaz/wok/srcpd/srcpd-2.0.12/src'
i486-pc-linux-gnu-gcc -D_REENTRANT -DSYSCONFDIR=\"/usr/etc\" -DHAVE_CONFIG_H -I. -I/usr/include/libxml2 -g -O2 -pthread -MT li100-main.o -MD -MP -MF .deps/li100-main.Tpo -c -o li100-main.o li100-main.c
In file included from /usr/include/sys/param.h:52,
from config-srcpd.h:31,
from li100-main.c:25:
/usr/include/sys/types.h:62: error: conflicting types for 'dev_t'
/usr/include/linux/types.h:13: note: previous declaration of 'dev_t' was here
/usr/include/sys/types.h:67: error: conflicting types for 'gid_t'
/usr/include/linux/types.h:27: note: previous declaration of 'gid_t' was here
/usr/include/sys/types.h:72: error: conflicting types for 'mode_t'
/usr/include/linux/types.h:15: note: previous declaration of 'mode_t' was here
/usr/include/sys/types.h:77: error: conflicting types for 'nlink_t'
/usr/include/linux/types.h:16: note: previous declaration of 'nlink_t' was here
/usr/include/sys/types.h:82: error: conflicting types for 'uid_t'
/usr/include/linux/types.h:26: note: previous declaration of 'uid_t' was here
In file included from /usr/include/sys/types.h:133,
from /usr/include/sys/param.h:52,
from config-srcpd.h:31,
from li100-main.c:25:
/usr/include/time.h:104: error: conflicting types for 'timer_t'
/usr/include/linux/types.h:22: note: previous declaration of 'timer_t' was here
In file included from /usr/include/sys/types.h:220,
from /usr/include/sys/param.h:52,
from config-srcpd.h:31,
from li100-main.c:25:
/usr/include/sys/select.h:78: error: conflicting types for 'fd_set'
/usr/include/linux/types.h:12: note: previous declaration of 'fd_set' was here
In file included from /usr/include/sys/param.h:52,
from config-srcpd.h:31,
from li100-main.c:25:
/usr/include/sys/types.h:235: error: conflicting types for 'blkcnt_t'
/usr/include/linux/types.h:119: note: previous declaration of 'blkcnt_t' was here
make[2]: *** [li100-main.o] Error 1
make[2]: Leaving directory `/home/slitaz/wok/srcpd/srcpd-2.0.12/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/slitaz/wok/srcpd/srcpd-2.0.12/src'
make: *** [all-recursive] Error 1
Hi,
sorry for the late response, I just found your report. I guess this bug is fixed in svn. Can you run a test?
Guido