Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180167 - lm_sensors-2.10.x doesn't build with 2.6.16.33-xen-herkules-dom0-01
Summary: lm_sensors-2.10.x doesn't build with 2.6.16.33-xen-herkules-dom0-01
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 23:56 UTC by Reto Gantenbein (ganto)
Modified: 2008-03-07 12:24 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Reto Gantenbein (ganto) 2007-05-28 23:56:21 UTC
i cannot successfully emerge the lm_sensors 2.10.x versions. see the output below

Reproducible: Always

Steps to Reproduce:
1. emerge lm_sensors 
2.
3.

Actual Results:  
...
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.16.33-xen-herkules-dom0-01

...

lib/sysfs.c: In function `sensors_init_sysfs':
lib/sysfs.c:40: warning: implicit declaration of function `sysfs_get_mnt_path'
lib/sysfs.c: At top level:
lib/sysfs.c:47: warning: "struct sysfs_device" declared inside parameter list
lib/sysfs.c:47: warning: its scope is only this definition or declaration, which is probably not what you want
lib/sysfs.c: In function `sensors_read_one_sysfs_chip':
lib/sysfs.c:51: error: `SYSFS_PATH_MAX' undeclared (first use in this function)
lib/sysfs.c:51: error: (Each undeclared identifier is reported only once
lib/sysfs.c:51: error: for each function it appears in.)
lib/sysfs.c:55: warning: implicit declaration of function `sysfs_get_device_attr'
lib/sysfs.c:55: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:59: error: dereferencing pointer to incomplete type
lib/sysfs.c:59: error: dereferencing pointer to incomplete type
...
lib/sysfs.c:72: error: dereferencing pointer to incomplete type
lib/sysfs.c:76: error: dereferencing pointer to incomplete type
lib/sysfs.c:82: warning: implicit declaration of function `sysfs_open_attribute'
lib/sysfs.c:82: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:83: warning: implicit declaration of function `sysfs_read_attribute'
lib/sysfs.c:86: error: dereferencing pointer to incomplete type
lib/sysfs.c:86: error: dereferencing pointer to incomplete type
...
lib/sysfs.c:86: error: dereferencing pointer to incomplete type
lib/sysfs.c:89: warning: implicit declaration of function `sysfs_close_attribute'
lib/sysfs.c:91: error: dereferencing pointer to incomplete type
lib/sysfs.c:94: error: dereferencing pointer to incomplete type
lib/sysfs.c:51: warning: unused variable `bus_path'
lib/sysfs.c: In function `sensors_read_sysfs_chips_compat':
lib/sysfs.c:114: warning: implicit declaration of function `sysfs_open_bus'
lib/sysfs.c:114: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:120: warning: implicit declaration of function `sysfs_get_bus_devices'
lib/sysfs.c:120: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:126: warning: implicit declaration of function `dlist_for_each_data'
lib/sysfs.c:126: error: syntax error before "struct"
lib/sysfs.c:132: warning: implicit declaration of function `sysfs_close_bus'
lib/sysfs.c: In function `sensors_read_sysfs_chips':
lib/sysfs.c:146: warning: implicit declaration of function `sysfs_open_class'
lib/sysfs.c:146: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:151: warning: implicit declaration of function `sysfs_get_class_devices'
lib/sysfs.c:151: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:157: error: syntax error before "struct"
lib/sysfs.c:159: error: `dev' undeclared (first use in this function)
lib/sysfs.c:159: warning: implicit declaration of function `sysfs_get_classdev_device'
lib/sysfs.c:154: error: label `exit' used but not defined
lib/sysfs.c: At top level:
lib/sysfs.c:167: error: syntax error before ':' token
lib/sysfs.c: In function `sensors_read_sysfs_bus':
lib/sysfs.c:182: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:188: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:194: error: syntax error before "struct"
lib/sysfs.c:198: error: `dev' undeclared (first use in this function)
lib/sysfs.c:199: error: continue statement not within a loop
lib/sysfs.c:200: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:201: error: continue statement not within a loop
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:211: error: dereferencing pointer to incomplete type
lib/sysfs.c:185: error: label `exit0' used but not defined
lib/sysfs.c:191: error: label `exit1' used but not defined
lib/sysfs.c: At top level:
lib/sysfs.c:223: error: syntax error before ':' token
make: *** [lib/sysfs.ao] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/lm_sensors-2.10.1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  lm_sensors-2.10.1.ebuild, line 90:   Called die

!!! emake user failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.1/temp/build.log'.

Expected Results:  
successful build of lm_sensors

Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6, glibc-2.5-r2, 2.6.16.33-xen-herkules-dom0-01 i686)
=================================================================
System uname: 2.6.16.33-xen-herkules-dom0-01 i686 AMD Athlon(tm)
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 27 May 2007 22:00:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb cjk cracklib crypt hardened midi nls nptl nptlonly pam pic readline ssl tcpd unicode urandom x86 zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 solar (RETIRED) gentoo-dev 2007-05-30 16:33:54 UTC
You are using a kernel that appears to have nothing to do with hardened.
Without a hardened kernel the userland is partially moot.
Reassigning to maintainer.
Comment 2 Reto Gantenbein (ganto) 2007-06-04 23:10:42 UTC
here the same with the hardened-sources:

...
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.20-hardened-r2-herkules-01
...
lib/sysfs.c:188: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:194: error: syntax error before "struct"
lib/sysfs.c:198: error: `dev' undeclared (first use in this function)
lib/sysfs.c:199: error: continue statement not within a loop
lib/sysfs.c:200: warning: assignment makes pointer from integer without a cast
lib/sysfs.c:201: error: continue statement not within a loop
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:204: error: dereferencing pointer to incomplete type
lib/sysfs.c:211: error: dereferencing pointer to incomplete type
lib/sysfs.c:185: error: label `exit0' used but not defined
lib/sysfs.c:191: error: label `exit1' used but not defined
lib/sysfs.c: At top level:
lib/sysfs.c:223: error: syntax error before ':' token
make: *** [lib/sysfs.ao] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-apps/lm_sensors-2.10.1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  lm_sensors-2.10.1.ebuild, line 90:   Called die

!!! emake user failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/sys-apps/lm_sensors-2.10.1/temp/build.log'.



Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6-vanilla, glibc-2.5-r3, 2.6.20-hardened-r2-herkules-01 i686)
=================================================================
System uname: 2.6.20-hardened-r2-herkules-01 i686 AMD Athlon(tm)
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 04 Jun 2007 18:30:01 +0000
ccache version 2.4 [enabled]
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb cjk cracklib crypt hardened midi nls nptl nptlonly pam pic readline ssl tcpd unicode urandom x86 zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Reto Gantenbein (ganto) 2007-06-04 23:11:57 UTC
i also tried with gcc-3.4.6-vanilla profile with same result. any more hints on this?
Comment 4 Robert Buchholz (RETIRED) gentoo-dev 2008-02-19 17:43:43 UTC
Can you reproduce with recent xen kernels?
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2008-03-07 12:24:18 UTC
Get back to us please.