Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177532 - net-dialup/fcdsl-2.6.37 fails to build with 2.6.20-hardened-r2
Summary: net-dialup/fcdsl-2.6.37 fails to build with 2.6.20-hardened-r2
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2007-05-07 18:33 UTC by Alan Hourihane
Modified: 2007-06-27 21:12 UTC (History)
2 users (show)

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


Attachments
patch to build with 2.6.20 kernels (fcdsl.diff,7.31 KB, patch)
2007-06-27 20:27 UTC, Alan Hourihane
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Hourihane 2007-05-07 18:33:48 UTC
fcdsl fails to build with 2.6.20-hardened-r2 but was o.k with 2.6.18 hardened sources.

* Preparing fcdslusb module
make[1]: Entering directory `/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb'
mkdir -p '/var/tmp/portage/net-dialup/fcdsl-2.6.37/work'
make -C '/usr/src/linux' SUBDIRS=/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb modules
make[2]: Entering directory `/usr/src/linux-2.6.20-hardened-r2'
  CC [M]  /var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.o
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:80: error: unknown field `driver' specified in initializer
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:80: warning: braces around scalar initializer
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:80: warning: (near initialization for `usb_driver.name')
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:82: error: field name not in record or union initializer
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:82: error: (near initialization for `usb_driver.name')
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:82: warning: initialization from incompatible pointer type
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:83: error: field name not in record or union initializer
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:83: error: (near initialization for `usb_driver.name')
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:83: warning: excess elements in scalar initializer
/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.c:83: warning: (near initialization for `usb_driver.name')
make[3]: *** [/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb/main.o] Error 1
make[2]: *** [_module_/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.20-hardened-r2'
make[1]: *** [fcdslusb.o] Error 2
make[1]: Leaving directory `/var/tmp/portage/net-dialup/fcdsl-2.6.37/work/usr/src/kernel-modules/fcdsl/src/src.fcdslusb'

!!! ERROR: net-dialup/fcdsl-2.6.37 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4192:   Called src_compile
  ebuild.sh, line 1304:   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/fcdsl-2.6.37/work' 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/fcdsl-2.6.37/temp/build.log'.

make: *** [/usr/src/log/net-dialup/fcdsl] Error 1


Reproducible: Always
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-05-07 18:52:06 UTC
would nice to see a patch for this. I probably will not write one in the close feature.
Comment 2 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-05-18 15:58:12 UTC
Seems like all usb drivers fail with this error (fcdslusb fcdslslusb fcdslusb2 fcdslusba).
Comment 3 Alan Hourihane 2007-06-27 20:27:01 UTC
Created attachment 123239 [details, diff]
patch to build with 2.6.20 kernels

This patch allows the fcdsl USB drivers to build with 2.6.20 kernels.
Comment 4 Stefan Schweizer (RETIRED) gentoo-dev 2007-06-27 20:58:53 UTC
the problem with this patch is that it breaks older kernels compiles.
It would be cool to have a patch that works for all kernels with #if LINUX_VERSION_CODE like other kernel compat patches
Comment 5 Alan Hourihane 2007-06-27 21:03:27 UTC
In the ebuild you can check for 2.6.20 like this....

# kernel version check
if ! kernel_is eq 2 6 20; then
    # apply patch
fi

Comment 6 Alan Hourihane 2007-06-27 21:04:05 UTC
Remove the ! from that last comment as it reverses the eq...
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2007-06-27 21:12:01 UTC
Yeah it is possible but not the best solution. I have applied it anyway kernel_is ge 2 6 20 conditional :)


Thank you very much!