← Back to team overview

desktop-packages team mailing list archive

[Bug 905893] Re: psensor 0.6.2.15-1 fails to build in precise due to an unnamed struct in glib

 

BTW, you can pull this version from Debian.  I can't merge it to Ubuntu
unless psensor does away with -pedantic or the glib declaration is
fixed.

** Description changed:

+ Debian glib2.0 version: 2.30.2-4
+ Ubuntu glib2.0 version: 2.31.4.tested-0ubuntu3
+ 
+ 
  When trying to build psensor 0.6.2.15-1 in precise, it fails to due to an unnamed struct in glib:
  gcc -DHAVE_CONFIG_H -I. -I../..   -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libgtop-2.0   -I/usr/include/json   -D_FORTIFY_SOURCE=2 -Wall -Werror -pedantic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -c -o libpsensor_a-cpu.o `test -f 'cpu.c' || echo './'`cpu.c
  In file included from /usr/include/glib-2.0/glib.h:107:0,
-                  from /usr/include/libgtop-2.0/glibtop.h:25,
-                  from /usr/include/libgtop-2.0/glibtop/cpu.h:25,
-                  from cpu.c:25:
+                  from /usr/include/libgtop-2.0/glibtop.h:25,
+                  from /usr/include/libgtop-2.0/glibtop/cpu.h:25,
+                  from cpu.c:25:
  /usr/include/glib-2.0/glib/deprecated/gthread.h:165:4: error: ISO C90 doesn't support unnamed structs/unions [-Werror=edantic]
  cc1: all warnings being treated as errors
  
  make[4]: *** [libpsensor_a-cpu.o] Error 1
  make[4]: Leaving directory `/«PKGBUILDDIR»/src/lib'
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory `/«PKGBUILDDIR»/src'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/«PKGBUILDDIR»'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/«PKGBUILDDIR»'
  dh_auto_build: make -j1 returned exit code 2
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to glib2.0 in Ubuntu.
https://bugs.launchpad.net/bugs/905893

Title:
  psensor 0.6.2.15-1 fails to build in precise due to an unnamed struct
  in glib

Status in “glib2.0” package in Ubuntu:
  New
Status in “psensor” package in Ubuntu:
  Triaged

Bug description:
  Debian glib2.0 version: 2.30.2-4
  Ubuntu glib2.0 version: 2.31.4.tested-0ubuntu3

  
  When trying to build psensor 0.6.2.15-1 in precise, it fails to due to an unnamed struct in glib:
  gcc -DHAVE_CONFIG_H -I. -I../..   -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libgtop-2.0   -I/usr/include/json   -D_FORTIFY_SOURCE=2 -Wall -Werror -pedantic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -c -o libpsensor_a-cpu.o `test -f 'cpu.c' || echo './'`cpu.c
  In file included from /usr/include/glib-2.0/glib.h:107:0,
                   from /usr/include/libgtop-2.0/glibtop.h:25,
                   from /usr/include/libgtop-2.0/glibtop/cpu.h:25,
                   from cpu.c:25:
  /usr/include/glib-2.0/glib/deprecated/gthread.h:165:4: error: ISO C90 doesn't support unnamed structs/unions [-Werror=edantic]
  cc1: all warnings being treated as errors

  make[4]: *** [libpsensor_a-cpu.o] Error 1
  make[4]: Leaving directory `/«PKGBUILDDIR»/src/lib'
  make[3]: *** [all-recursive] Error 1
  make[3]: Leaving directory `/«PKGBUILDDIR»/src'
  make[2]: *** [all-recursive] Error 1
  make[2]: Leaving directory `/«PKGBUILDDIR»'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/«PKGBUILDDIR»'
  dh_auto_build: make -j1 returned exit code 2
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glib2.0/+bug/905893/+subscriptions


References