Menu

#8 srcpd Build Fails on Linux having both glibc & linux headers

Version2
closed
nobody
srcpd (10)
5
2020-05-15
2009-06-04
mesheets
No

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.

The full error details are below---

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

Discussion

  • mesheets

    mesheets - 2009-06-04
    • summary: srcpd Build Fails on Linux with both glibc and linux headers --> srcpd Build Fails on Linux having both glibc & linux headers
     
  • Guido Scholz

    Guido Scholz - 2010-02-11

    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

     
  • Guido Scholz

    Guido Scholz - 2020-05-15
    • status: open --> closed
    • Group: --> Version2
     

Log in to post a comment.