Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177956 - app-laptop/acpi4asus-0.32-r1s doesn't build against kernel-2.6.21
Summary: app-laptop/acpi4asus-0.32-r1s doesn't build against kernel-2.6.21
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: kernel-2.6.21
  Show dependency tree
 
Reported: 2007-05-10 18:50 UTC by Pacho Ramos
Modified: 2007-05-12 22:29 UTC (History)
0 users

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


Attachments
cvs.patch (cvs.patch,4.91 KB, patch)
2007-05-11 11:48 UTC, Pacho Ramos
Details | Diff
ebuilds-diff (ebuilds-diff,402 bytes, patch)
2007-05-11 11:48 UTC, Pacho Ramos
Details | Diff
040-r1_to_041.diff (ebuilds diff) (040-r1_to_041.diff,578 bytes, patch)
2007-05-12 20:26 UTC, Pacho Ramos
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2007-05-10 18:50:44 UTC
I get:
  CC [M]  /var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.o
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:926: error: unknown field 'owner' specified in initializer
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:926: warning: initialization makes integer from pointer without a cast
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:927: error: unknown field 'get_brightness' specified in initializer
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:927: warning: initialization makes integer from pointer without a cast
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:928: error: unknown field 'update_status' specified in initializer
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:928: warning: initialization makes integer from pointer without a cast
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c: In function 'update_bl_status':
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:1371: error: invalid type argument of '->'
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c: In function 'asus_hotk_get_info':
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:1814: error: 'ACPI_TABLE_ID_DSDT' undeclared (first use in this function)
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:1814: error: (Each undeclared identifier is reported only once
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:1814: error: for each function it appears in.)
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:1814: warning: passing argument 3 of 'acpi_get_table' from incompatible pointer type
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c: In function 'asus_acpi_init':
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:2064: error: 'acpi_specific_hotkey_enabled' undeclared (first use in this function)
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:2095: warning: passing argument 4 of 'backlight_device_register' from incompatible pointer type
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:2105: error: 'struct backlight_device' has no member named 'sem'
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:2106: error: invalid type argument of '->'
/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.c:2107: error: 'struct backlight_device' has no member named 'sem'
make[2]: *** [/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver/asus_acpi.o] Error 1
make[1]: *** [_module_/var/tmp/portage/app-laptop/acpi4asus-0.32-r1/work/acpi4asus-0.32/driver] Error 2
make[1]: se sale del directorio `/usr/src/linux-2.6.21-gentoo'
make: *** [default] Error 2

!!! ERROR: app-laptop/acpi4asus-0.32-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4066:   Called src_compile
  acpi4asus-0.32-r1.ebuild, line 32:   Called linux-mod_src_compile
  linux-mod.eclass, line 516:   Called die

!!! Unable to make  KDIR=/usr/src/linux  .
!!! 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/app-laptop/acpi4asus-0.32-r1/temp/build.log'.



Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2007-05-10 18:50:49 UTC
My emerge --info:
Portage 2.1.2.2 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r2, 2.6.21-ck i686)
=================================================================
System uname: 2.6.21-ck i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 10 May 2007 10:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
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.61
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="-O2 -pipe -fomit-frame-pointer -march=pentium-m -mfpmath=sse -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=pentium-m -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ "
LANG="es_ES.UTF-8"
LC_ALL="es_ES.UTF-8"
LINGUAS="es es_ES en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa arts asf audiofile avi bash-completion bcmath beagle bidi bitmap-fonts bonobo bzip2 bzlib cairo caps cdb cddb cdparanoia cdr cdrparanoia cli cpdflib cracklib cross crypt css cups curl curlwrappers dbus divx4linux dri dts dv dvb dvd dvdr dvdread emerald encode escreen esd exif fam fbcon ffmpeg firefox flac foomaticdb fortran ftp galago gb gcj gd gif gimp gimpprint glitz glut glx gmp gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal iconv imagemagick imlib ipv6 isdnlog jabber jack java jikes jpeg kde kdeenablefinal kdehiddenvisibility latex lcms ldap lesstif libg++ libnotify logrotate mad mbox midi mikmod mime ming mmap mmx mmxext mng modplug mono motif mp3 mpeg mpi mplayer musepack musicbrainz nas ncurses nethack nls nocd nptl nptlonly nsplugin ntfs nvidia ogg oggvorbis openal opengl opnegl pam pcmcia pcre pdf pdflib perl pic png pnp posix ppds pppd python qt qt3 qt4 quicktime readline real reflection reiserfs rpm rtc ruby scanner sdl seamonkey session slang slp smp sndfile sockets socks5 speex spell spl sse sse2 sse3 ssl startup-notification svg syslog tcltk tcpd tetex tga theora threads tiff timidity tk truetype truetype-fonts trusted type1-fonts unicode usb userlocales v4l v4l2 vcd videos vim vorbis wifi win32codecs wma wmf wxwindows x86 xcomposite xine xml xorg xpm xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" DVB_CARDS="usb-dib0700 bcm3510 dibusb-usb1 dibusb-usb2 nxt2002 nxt200x or51132 or51211 sp8870 sp887x tda1004x ttpci ttusb-dec usb-a800 usb-bluebird usb-dtt200u usb-umt usb-vp702x usb-vp7045 usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="es es_ES en_US" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS


Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-05-10 18:59:33 UTC
Does 0.40-r1 work?
Comment 3 Pacho Ramos gentoo-dev 2007-05-11 11:21:49 UTC
(In reply to comment #2)
> Does 0.40-r1 work?
> 

No, 0.40 series don't work with kernels >2.6.19 :-/
Comment 4 Pacho Ramos gentoo-dev 2007-05-11 11:47:57 UTC
Seems an upstream problem
Comment 5 Pacho Ramos gentoo-dev 2007-05-11 11:48:23 UTC
Created attachment 118849 [details, diff]
cvs.patch
Comment 6 Pacho Ramos gentoo-dev 2007-05-11 11:48:47 UTC
Created attachment 118850 [details, diff]
ebuilds-diff
Comment 7 Pacho Ramos gentoo-dev 2007-05-11 11:50:55 UTC
Seems that works, but I get a warning of an undefined symbol, also, I have asked upstream for a 0.42 release
Comment 8 Stefan Schweizer (RETIRED) gentoo-dev 2007-05-11 11:54:22 UTC
What do I need to do to make it working? How can I get the latest version working? Please give me some pointers as to how this works because I dont have the hardware.

But from looking at it it looks like I do not even need to build a kernel module because we could use it from the kernel?
Comment 9 Pacho Ramos gentoo-dev 2007-05-11 12:20:01 UTC
(In reply to comment #8)
> What do I need to do to make it working? How can I get the latest version
> working? Please give me some pointers as to how this works because I dont have
> the hardware.

Sorry, yesterday, I sent a bug to bugs.gentoo.org and, later, to upstream. Upstream tell me that for make it work with kernel 2.6.21 I have to use CVS code (the patch is generated with a diff between 0.41 and CVS code, only asus-laptop.c has been changed. I knew all this AFTER sending the bug report (I have read my emails one hour ago), then, if you want, I will close the bug as "LATER" because 0.42 release will fix this (and seems that current CVS code still doesn't want fine.

> But from looking at it it looks like I do not even need to build a kernel
> module because we could use it from the kernel?
> 

I will try with asus_acpi from the kernel, I used to use this package because it let me update the module without need to update the kernel or wait for a new kernel release (kernel release cicle is longer than acpi4asus one)

I attached the ebuild diff and the patch for:
1. Make a version bump to 0.41 version (that works fine using kernel 2.6.20)
2. Trying to make it work in 2.6.21 until upstream release a newer version

Also, could be nice change HOMEPAGE from http://sourceforge.net/projects/acpi4asus to http://acpi4asus.sourceforge.net/. Thanks :-)

Thanks a lot and sorry for the inconvenience
Comment 10 Pacho Ramos gentoo-dev 2007-05-12 20:26:04 UTC
Created attachment 119048 [details, diff]
040-r1_to_041.diff (ebuilds diff)

Now, the attached ebuild diff and the patch works FINE in kernel 2.6.20 and 2.6.21 :-D

Thanks a lot
Comment 11 Stefan Schweizer (RETIRED) gentoo-dev 2007-05-12 22:29:13 UTC
thank you very much! Committed for you