! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Build error due to includes ordering
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Robby Workman editbugs 2008-09-10 03:47:38 CEST
Created attachment 1813 
Simple patch to invert includes of types.h and apm_bios.h

In file included from ./libapm.h:21,
                 from battery.c:39:
/usr/include/sys/types.h:62: error: conflicting types for ‘dev_t’
/usr/include/linux/types.h:19: error: previous declaration of ‘dev_t’ was here
/usr/include/sys/types.h:67: error: conflicting types for ‘gid_t’
/usr/include/linux/types.h:53: error: previous declaration of ‘gid_t’ was here
/usr/include/sys/types.h:72: error: conflicting types for ‘mode_t’
/usr/include/linux/types.h:21: error: previous declaration of ‘mode_t’ was here
/usr/include/sys/types.h:77: error: conflicting types for ‘nlink_t’
/usr/include/linux/types.h:22: error: previous declaration of ‘nlink_t’ was here
/usr/include/sys/types.h:82: error: conflicting types for ‘uid_t’
/usr/include/linux/types.h:52: error: previous declaration of ‘uid_t’ was here
In file included from /usr/include/sys/types.h:133,
                 from ./libapm.h:21,
                 from battery.c:39:
/usr/include/time.h:105: error: conflicting types for ‘timer_t’
/usr/include/linux/types.h:28: error: previous declaration of ‘timer_t’ was here
In file included from /usr/include/sys/types.h:220,
                 from ./libapm.h:21,
                 from battery.c:39:
/usr/include/sys/select.h:78: error: conflicting types for ‘fd_set’
/usr/include/linux/types.h:18: error: previous declaration of ‘fd_set’ was here
In file included from ./libapm.h:21,
                 from battery.c:39:
/usr/include/sys/types.h:235: error: conflicting types for ‘blkcnt_t’
/usr/include/linux/types.h:151: error: previous declaration of ‘blkcnt_t’ was here
make[2]: *** [xfce4_battery_plugin-battery.o] Error 1
Comment 1 Robby Workman editbugs 2008-09-10 13:01:51 CEST

*** This bug has been marked as a duplicate of bug 4359 ***

Bug #4372

Reported by:
Robby Workman
Reported on: 2008-09-10
Last modified on: 2010-11-09

People

Assignee:
Xfce-Goodies Maintainers
CC List:
1 user

Version

Version:
0.5.1 or older

Attachments

Additional information