Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 178974 - net-dialup/fritzcapi-2.6.43 error: unknown field `driver' specified in initializer
Summary: net-dialup/fritzcapi-2.6.43 error: unknown field `driver' specified in initia...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
: 175377 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-18 08:20 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2010-07-21 23:02 UTC (History)
3 users (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 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-05-18 08:20:26 UTC
On x86 with hardened-sources net-dialup/fritzcapi-2.6.43 fails with:

CC [M]  /var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.o
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:85: error: unknown field `driver' specified in initializer
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:85: warning: braces around scalar initializer
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:85: warning: (near initialization for `usb_driver.name')
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:87: error: field name not in record or union initializer
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:87: error: (near initialization for `usb_driver.name')
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:87: warning: initialization from incompatible pointer type
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:88: error: field name not in record or union initializer
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:88: error: (near initialization for `usb_driver.name')
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:88: warning: excess elements in scalar initializer
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.c:88: warning: (near initialization for `usb_driver.name')
make[2]: *** [/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c: In function `select_config':
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:226: warning: pointer type mismatch in conditional expression
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c: In function `reset':
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:254: warning: passing arg 3 of `select_config' from incompatible pointer type
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:759:53: macro "INIT_WORK" passed 3 arguments, but takes just 2
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c: In function `start_closing_worker':
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:759: error: `INIT_WORK' undeclared (first use in this function)
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:759: error: (Each undeclared identifier is reported only once
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:759: error: for each function it appears in.)
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c: In function `usb_write':
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:979: warning: passing arg 6 of `usb_fill_bulk_urb' from incompatible pointer type
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c: In function `usb_read':
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:1008: warning: passing arg 6 of `usb_fill_bulk_urb' from incompatible pointer type
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c: At top level:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.c:671: warning: 'closing_worker' defined but not used
make[2]: *** [/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src/driver.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/e2220pc/src] Error 2

When compiling the e2220pc fcusb fcusb2 fxusb fxusb_CZ e5520pc modules.

emerge --info
Portage 2.1.2.2 (hardened/x86/2.6, gcc-3.4.6, glibc-2.3.6-r5, 2.6.18-hardened-hostname i686)
=================================================================
System uname: 2.6.18-hardened-hostname i686 AMD Geode(tm)
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 18 May 2007 03:00:01 +0000
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r3, 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="i586-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O3 -march=i686 -msse -mmmx -mfpmath=sse -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
LC_ALL="en_GB.UTF-8"
LINGUAS="en"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi apache2 bash-completion berkdb clamav crypt gd hardened hardenedphp imap jpeg libwww lm_sensors maildir mailwrapper midi mysql nls nptl pam pam-mysql pic png prelude readline sasl snmp ssl urandom vhosts x86 xml xorg 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" LINGUAS="en" USERLAND="GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-05-18 08:21:18 UTC
Woops, sorry. Assigning to maintainer.
Comment 2 Stefan Kiesler 2007-06-29 11:43:56 UTC
Any progress on this issue?
I'm experiencing the same problem with suspend2-sources-2.6.20-r6. Exactly the same errors like "unknown field 'driver'" and the INIT_WORK macro when trying to compile the fxusb_CZ module.
Comment 3 Stefan Kiesler 2007-06-30 09:07:13 UTC
For what it's worth, my emerge --info:

Portage 2.1.2.7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.20-suspend2-r6 i686)
=================================================================
System uname: 2.6.20-suspend2-r6 i686 AMD Athlon(tm) processor
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 22 Jun 2007 15:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
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="-march=athlon -O2 -pipe"
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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.mirror.icd.hu/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
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.europe.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib acl acpi alsa apache2 audiofile avi bitmap-fonts bzip2 cairo cdr cli cracklib crypt cscope cups dbus doc dri dts dvd dvdr dvdread eds emboss encode evo exif fam firefox flac flash fortran gd gif ginac glut gphoto2 gpm gstreamer gtk gtk2 hal iconv icq imagemagick imlib isdnlog jack java javascript joystick jpeg jpeg2k kde kdexdeltas kerberos ladcca ldap libg++ lm_sensors mad midi mikmod mmx mng mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection sdl session speex spell spl ssl svg svga tcltk tcpd tetex threads tidy tiff truetype truetype-fonts type1-fonts usb v4l vcd vhosts vorbis win32codecs wmf wxwindows x86 xml xml2 xorg xv xvid zlib" ALSA_CARDS="als4000" 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" FRITZCAPI_CARDS="fxusb_CZ" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv fbdev vesa radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Stefan Kiesler 2007-06-30 12:29:03 UTC
 * Preparing fxusb_CZ module
mkdir -p '/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work'/var/lib/fritz
make -C '/usr/src/linux'  M=/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src modules
make[1]: Entering directory `/usr/src/linux-2.6.20-suspend2-r6'
  CC [M]  /var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.o
  CC [M]  /var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.o
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:91: Fehler: unbekanntes Feld »driver« in Initialisierung angegeben
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:91: Warnung: geschweifte Klammern um Skalar-Initialisierung
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:91: Warnung: (nahe der Initialisierung für »usb_driver.name«)
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:93: Fehler: Feldname nicht in Datensatz- oder union-Initialisierung
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:93: Fehler: (nahe der Initialisierung für »usb_driver.name«)
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:93: Warnung: Initialisierung von inkompatiblem Zeigertyp
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:94: Fehler: Feldname nicht in Datensatz- oder union-Initialisierung
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:94: Fehler: (nahe der Initialisierung für »usb_driver.name«)
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:94: Warnung: Elementüberschreitung in Skalarinitialisierung
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c:94: Warnung: (nahe der Initialisierung für »usb_driver.name«)
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »select_config«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:250: Warnung: Zeigertyp passt nicht in bedingtem Ausdruck
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »reset«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:278: Warnung: Übergabe des Arguments 3 von »select_config« von inkompatiblem Zeigertyp
make[2]: *** [/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.o] Fehler 1
make[2]: *** Warte auf noch nicht beendete Prozesse...
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »start_closing_worker«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:792: Warnung: Zuweisung von inkompatiblem Zeigertyp
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »usb_write«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:1023: Warnung: Übergabe des Arguments 6 von »usb_fill_bulk_urb« von inkompatiblem Zeigertyp
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »usb_read«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:1052: Warnung: Übergabe des Arguments 6 von »usb_fill_bulk_urb« von inkompatiblem Zeigertyp
make[1]: *** [_module_/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src] Fehler 2
make[1]: Leaving directory `/usr/src/linux-2.6.20-suspend2-r6'
make: *** [fxusb_CZ.o] Fehler 2

!!! ERROR: net-dialup/fritzcapi-2.6.43 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
  ebuild.sh, line 1305:   Called linux-mod_src_compile
  linux-mod.eclass, line 516:   Called die
Comment 5 Stefan Kiesler 2007-06-30 12:32:21 UTC
Sorry, some text is missing in my last post. :-)
The new log is what I'm getting from version 1.12 of the fritzcapi ebuild. The original log in this bug is what I got with v1.10.

So the 2.6.20 patch obviously does not work with the fxusb_CZ module. :-/
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2007-07-07 00:10:34 UTC
well, feel free to provide your own _CZ patch for me to add to the ebuild :). Otherwise it might take a while until someone does it
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2007-07-08 08:15:19 UTC
*** Bug 175377 has been marked as a duplicate of this bug. ***
Comment 8 Hagen Meyer 2007-08-17 13:07:28 UTC
I had the same problem with fcusb (kernel 2.6.22-gentoo-r2). 
Just commenting 3 lines out works for me, but is of course really dirty...
If you feel lucky, you can try it.

/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.usb/src/main.c, line 84:

#ifndef OLD_USB_DRIVER
//      .driver = {
#endif
//              .owner =        THIS_MODULE,
                .name =         TARGET,
#ifndef OLD_USB_DRIVER
//      },
#endif
Comment 9 Stefan Kiesler 2007-08-19 10:20:12 UTC
Commenting those lines out in

/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/main.c

works for me, too.
Kernel is sys-kernel/suspend2-sources-2.6.21-r7.

Thank you!
Comment 10 Stefan Kiesler 2007-08-19 18:21:17 UTC
Well..... no.
Received a kernel panic on shutdown. :-/
Comment 11 Nils Wisiol 2007-09-03 09:56:56 UTC
Same error with 2.6.21-gentoo (and 2.6.22-gentoo-r5) and fxusb:

emerge output:
<snip>
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb/src/main.c:88: error: field name not in record or union initializer
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb/src/main.c:88: error: (near initialization for 'usb_driver.name')
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb/src/main.c:88: warning: excess elements in scalar initializer
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb/src/main.c:88: warning: (near initialization for 'usb_driver.name')
make[2]: *** [/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb/src/main.o] Error 1
make[1]: *** [_module_/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb/src] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.21-gentoo'
make: *** [fxusb.o] Error 2
*
* ERROR: net-dialup/fritzcapi-2.6.43 failed.
* Call stack:
*   ebuild.sh, line 1654:   Called dyn_compile
*   ebuild.sh, line 990:   Called qa_call 'src_compile'
*   ebuild.sh, line 44:   Called src_compile
*   ebuild.sh, line 1334:   Called linux-mod_src_compile
*   linux-mod.eclass, line 516:   Called die
*
* Unable to make  KDIR='/usr/src/linux' LIBDIR='/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work'/var/lib/fritz all.
* 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/net-dialup/fritzcapi-2.6.43/temp/build.log'.
*

* Messages for package net-dialup/fritzcapi-2.6.43:

* Selected cards:  fxusb
*
* ERROR: net-dialup/fritzcapi-2.6.43 failed.
* Call stack:
*   ebuild.sh, line 1654:   Called dyn_compile
*   ebuild.sh, line 990:   Called qa_call 'src_compile'
*   ebuild.sh, line 44:   Called src_compile
*   ebuild.sh, line 1334:   Called linux-mod_src_compile
*   linux-mod.eclass, line 516:   Called die
*
* Unable to make  KDIR='/usr/src/linux' LIBDIR='/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work'/var/lib/fritz all.
* 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/net-dialup/fritzcapi-2.6.43/temp/build.log'.
*
</snap>

emerge --info:
<snip>
sokrates bene # emerge --info
Portage 2.1.3.7 (default-linux/x86/2007.0/desktop, gcc-4.1.1, glibc-2.5-r3, 2.6.21-gentoo i686)
=================================================================
System uname: 2.6.21-gentoo i686 Intel(R) Core(TM)2 Quad CPU           @ 2.66GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 31 Aug 2007 14:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.1_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9-r2
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 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=i686 -pipe"
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/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://distfiles.gentoo.org"
LINGUAS="de en_GB"
MAKEOPTS="-j5"
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/portage/local/layman/xeffects /usr/portage/local/layman/gentoo-de /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa amr apache2 apm arts bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo calendar cdb cdr cli cracklib crypt ctype cups dbase dbm dbus dri dvb dvd dvdr dvdread eds emacs emboss encode esd evo exif expat extras fam fax fbcon ffmpeg firefox flac fortran ftp gd gdbm gif gimp glitz glut gphoto2 gpm gstreamer gtk gtk2 hal iconv ieee1394 imagemagick imlib innodb ipod ipv6 isdnlog jabber java javascript joystick jpeg jpeg2k kde kdeenablefinal kerberos ldap libcaca libnotify lm_sensors mad midi mikmod mime mmx mng mono mp3 mpeg mplayer mudflap mysql nas ncurses nls nptl nptlonly nsplugin ogg openal openexr opengl openmp oss pam pcre pda pdf perl php plotutils png posix ppds pppd python qt3 qt3support qt4 quicktime readline real reflection ruby samba scanner sdl session slp sockets speex spell spl sqlite sqlite3 ssl svg svga symlink szip tcl tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb v4l vcd vdr videos vim-syntax vorbis win32codecs wmf x86 xcomposite xine xinerama xml xorg xprint xv xvid" 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" ELIBC="glibc" FRITZCAPI_CARDS="fxusb" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en_GB" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
</snap>

I didn't try the 3-lines-out-commenting-solution.
Comment 12 Stefan Kiesler 2007-09-24 10:40:19 UTC
Workaround for the fxusb_CZ and possibly other USB modules:

I tried again with suspend2-sources-2.6.22-r2, but got the same errors / crashes that I got before.
However, you can avoid the crashes (which are caused by the capi-init-script from capi4kutils) by unloading the fritzcapi module before stopping capi.

To do so:
1. ebuild /usr/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild fetch
2. ebuild /usr/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild unpack
3. Apply patch "fcusb2-2.6.19" to the module you want to install. See comment 8 for manually editing the file /var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/[module name]/src/main.c
4. ebuild ebuild /usr/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild compile
5. ebuild ebuild /usr/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild install
6. ebuild ebuild /usr/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild qmerge
7. ebuild ebuild /usr/portage/net-dialup/fritzcapi/fritzcapi-2.6.43.ebuild clean
8. add this line to your /etc/conf.d/local.stop: rmmod fxusb_CZ (change to your module name)

This works for me, but it remains an ugly mess. It fixes the compile errors, but the following warnings remain:

/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »select_config«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:250: Warnung: Zeigertyp passt nicht in bedingtem Ausdruck
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »reset«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:278: Warnung: Übergabe des Arguments 3 von »select_config« von inkompatiblem Zeigertyp
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »start_closing_worker«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:792: Warnung: Zuweisung von inkompatiblem Zeigertyp
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »usb_write«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:1023: Warnung: Übergabe des Arguments 6 von »usb_fill_bulk_urb« von inkompatiblem Zeigertyp
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c: In Funktion »usb_read«:
/var/tmp/portage/net-dialup/fritzcapi-2.6.43/work/usr/src/kernel-modules/fritzcapi/fritz.xusb_CZ/src/driver.c:1052: Warnung: Übergabe des Arguments 6 von »usb_fill_bulk_urb« von inkompatiblem Zeigertyp

Sorry for the german output, all those warnings are about incompatible pointer types. Maybe someone with a bit more insight to the fritzcapi module, capi4kutils or kernel USB in general can fix the warnings to make the module work properly again.
Feel free to send me any patches for testing if you don't have an USB modem at hand.

Maybe the call trace from the kernel crash (when stopping capi without previously unloading fritzcapi) provides some useful information:
[<d8a6e721>] usb_Close+0x661/0x6a0 [fxusb_CZ]
[<c011aa43>] tasklet_action+0x33/0x70
[<c011a992>] __do_softirq+0x42/0x90
[<c011aa07>] do_softirq+0x27/0x30
[<c011ac45>] irq_exit+0x35/0x40
[<c0105e2c>] do_IRQ+0x4c/0x80
[<c010417f>] common_interrupt+0x23/0x28
[<c014cc6e>] get_page_from_freelist+0xbe/0x3a0
[<c014cfa6>] __alloc_pages+0x56/0x2f0
[<c0155af1>] __handle_mm_fault+0x691/0x930
[<c0110857>] do_page_fault+0x137/0x620
[<c0110720>] do_page_fault+0x0/0x620
[<c02c718a>] error_code+0x6a/0x70

Bottom line says "Kernel panic - not syncing: Fatal exception in interrupt".
Comment 13 Stefan Briesenick (RETIRED) gentoo-dev 2008-01-06 02:12:30 UTC
please try the new net-dialup/fc* ebuilds for your card. They compile at least fine with kernel 2.6.23.
Comment 14 Stefan Briesenick (RETIRED) gentoo-dev 2010-07-21 23:02:08 UTC
upstream dead, closed source, doesn't work with current kernels -> masked.