Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 38226 - em8300-modules will not build after upgrading kernel to 2.4.22-r4, i2c related
Summary: em8300-modules will not build after upgrading kernel to 2.4.22-r4, i2c related
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-14 15:14 UTC by Munir Nassar
Modified: 2004-04-13 20:12 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 Munir Nassar 2004-01-14 15:14:20 UTC
I built a new kernel (sys-kernel/gentoo-sources/gentoo-sources-2.4.22-r4.ebuild) and now em8300-modules will not build with the following errors:

>>> Source unpacked.
rm -f *.o
gcc -D__KERNEL__ -DMODULE  -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -g
 -I ../include -I /lib/modules/2.4.22-gentoo-r4/build/include/ -O2 -fomit-frame-
pointer -Wall -DEM8300_VIDEOMODE_DEFAULT=EM8300_VIDEOMODE_NTSC -DEM8300_AUDIOMOD
E_DEFAULT=EM8300_AUDIOMODE_ANALOG -DEM8300_VERSION=\""0.13.0"\" -DCONFIG_ADV717X
_PIXELPORT16BIT -DCONFIG_ADV717X_PIXELPORTNTSC -DCONFIG_EM8300_DICOMNTSC -DCONFI
G_EM8300_DICOMFIX -DCONFIG_EM8300_DICOMCTRL -DMODVERSIONS -include /lib/modules/
2.4.22-gentoo-r4/build/include/linux/modversions.h   -c -o em8300_main.o em8300_
main.c
In file included from /lib/modules/2.4.22-gentoo-r4/build/include/asm/semaphore.
h:39,
                 from /lib/modules/2.4.22-gentoo-r4/build/include/linux/fs.h:204
,
                 from em8300_main.c:26:
/lib/modules/2.4.22-gentoo-r4/build/include/asm/system.h: In function `__set_64b
it_var':
/lib/modules/2.4.22-gentoo-r4/build/include/asm/system.h:189: warning: dereferen
cing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.22-gentoo-r4/build/include/asm/system.h:189: warning: dereferen
cing type-punned pointer will break strict-aliasing rules
In file included from em8300_main.c:57:
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h: At top level:
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h:51: warning: `s
truct i2c_adapter' declared inside parameter list
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h:51: warning: it
s scope is only this definition or declaration, which is probably not what you w
ant
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h:52: warning: `s
truct i2c_adapter' declared inside parameter list
In file included from encoder.h:4,
                 from em8300_main.c:59:
../include/linux/em8300.h:276: error: field `i2c_ops_1' has incomplete type
../include/linux/em8300.h:280: error: field `i2c_ops_2' has incomplete type
em8300_main.c: In function `release_em8300':
em8300_main.c:203: error: dereferencing pointer to incomplete type
make: *** [em8300_main.o] Error 1

!!! ERROR: media-video/em8300-modules-0.13.0 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)


Reproducible: Always
Steps to Reproduce:
1. emerge gentoo-sources-2.4.22-r4
2. build, make sure i2c is enabled
3. emerge em8300-modules

Actual Results:  
# emerge em8300-modules
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/em8300-modules-0.13.0 to /
>>> md5 src_uri ;-) em8300-0.13.0.tar.gz
>>> Unpacking source...
>>> Unpacking em8300-0.13.0.tar.gz to /var/tmp/portage/em8300-modules-0.13.0/wor
k
>>> Source unpacked.
rm -f *.o
gcc -D__KERNEL__ -DMODULE  -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -g
 -I ../include -I /lib/modules/2.4.22-gentoo-r4/build/include/ -O2 -fomit-frame-
pointer -Wall -DEM8300_VIDEOMODE_DEFAULT=EM8300_VIDEOMODE_NTSC -DEM8300_AUDIOMOD
E_DEFAULT=EM8300_AUDIOMODE_ANALOG -DEM8300_VERSION=\""0.13.0"\" -DCONFIG_ADV717X
_PIXELPORT16BIT -DCONFIG_ADV717X_PIXELPORTNTSC -DCONFIG_EM8300_DICOMNTSC -DCONFI
G_EM8300_DICOMFIX -DCONFIG_EM8300_DICOMCTRL -DMODVERSIONS -include /lib/modules/
2.4.22-gentoo-r4/build/include/linux/modversions.h   -c -o em8300_main.o em8300_
main.c
In file included from /lib/modules/2.4.22-gentoo-r4/build/include/asm/semaphore.
h:39,
                 from /lib/modules/2.4.22-gentoo-r4/build/include/linux/fs.h:204
,
                 from em8300_main.c:26:
/lib/modules/2.4.22-gentoo-r4/build/include/asm/system.h: In function `__set_64b
it_var':
/lib/modules/2.4.22-gentoo-r4/build/include/asm/system.h:189: warning: dereferen
cing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.22-gentoo-r4/build/include/asm/system.h:189: warning: dereferen
cing type-punned pointer will break strict-aliasing rules
In file included from em8300_main.c:57:
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h: At top level:
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h:51: warning: `s
truct i2c_adapter' declared inside parameter list
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h:51: warning: it
s scope is only this definition or declaration, which is probably not what you w
ant
/lib/modules/2.4.22-gentoo-r4/build/include/linux/i2c-algo-bit.h:52: warning: `s
truct i2c_adapter' declared inside parameter list
In file included from encoder.h:4,
                 from em8300_main.c:59:
../include/linux/em8300.h:276: error: field `i2c_ops_1' has incomplete type
../include/linux/em8300.h:280: error: field `i2c_ops_2' has incomplete type
em8300_main.c: In function `release_em8300':
em8300_main.c:203: error: dereferencing pointer to incomplete type
make: *** [em8300_main.o] Error 1

!!! ERROR: media-video/em8300-modules-0.13.0 failed.
!!! Function src_compile, Line 42, Exitcode 2
!!! (no error message)


Expected Results:  
compiled the modules as it did under gentoo-sources-2.4.20-r5


# emerge info
Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0,
2.4.22-gentoo-r4)
=================================================================
System uname: 2.4.22-gentoo-r4 i686 Pentium II (Klamath)
Gentoo Base System version 1.4.3.12
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium2 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium2 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts artswrappersuid avi berkdb crypt cups dumb-allegro
dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++
libwww lirc mad mikmod mmx motif mpeg ncurses nls offensive oggvorbis openal
opengl oss pam pdflib perl png ppds python qt quicktime readline sdl slang spell
sse ssl svga tcpd tiff truetype usb v4l x86 xml2 xmms xosd xv zlib"
Comment 1 Jason Cox (RETIRED) gentoo-dev 2004-04-08 22:08:31 UTC
Is this taken care of in later releases?
Comment 2 Jason Cox (RETIRED) gentoo-dev 2004-04-13 20:12:42 UTC
This bug has gotten stale. I'm closing this one unless I hear otherwise.