Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 246110

Summary: ndiswrapper 1.53-r1 will not compile with kernel 2.6.27-gentoo-r2
Product: Gentoo Linux Reporter: Eric Powell <ebpowell>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eric Powell 2008-11-09 00:01:52 UTC
ndiswrapper will not build properly under kernel 2.6.27-gentoo-r2. It is a bugm in the ndiswrapper source and has been patched in the ndiswrapper project Subversion repository. 



Reproducible: Always

Steps to Reproduce:
1. Build kernel from 2.6.27 sources
2. Boot to new kernel
3. emerge ndiswrapper

Actual Results:  
Build fails: 

make[2]: *** [/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/work/ndiswrapper-1.53/driver/iw_ndis.o] Error 1                                                 
make[1]: *** [_module_/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/work/ndiswrapper-1.53/driver] Error 2                                                   
make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r2'                    
make: *** [modules] Error 2                                                     
 *                                                                              
 * ERROR: net-wireless/ndiswrapper-1.53-r1 failed.                              
 * Call stack:                                                                  
 * ebuild.sh, line   49:  Called src_compile                                    
 * environment, line 3278:  Called linux-mod_src_compile                        
 * environment, line 2503:  Called die                                          
 * The specific snippet of code:                                                
 * eval "emake HOSTCC="$(tc-getBUILD_CC)"                                      CROSS_COMPILE=${CHOST}-                                          LDFLAGS="$(get_abi_LDFLAGS)"                                            ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";            
 * The die message:                                                             
 * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KSRC=/usr/src/linux KVERS=2.6.27-gentoo-r2 KBUILD=/usr/src/linux DISABLE_USB=1 -j1 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-wireless/ndiswrapper-1.53-r1/temp/build.log'.                                                       
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/temp/environment'.
 *

>>> Failed to emerge net-wireless/ndiswrapper-1.53-r1, Log file:

>>>  '/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/temp/build.log'

 * Messages for package net-wireless/ndiswrapper-1.53-r1:

 *
 * ERROR: net-wireless/ndiswrapper-1.53-r1 failed.
 * Call stack:
 * ebuild.sh, line   49:  Called src_compile
 * environment, line 3278:  Called linux-mod_src_compile
 * environment, line 2503:  Called die
 * The specific snippet of code:
 * eval "emake HOSTCC="$(tc-getBUILD_CC)"                                      CROSS_COMPILE=${CHOST}-                                          LDFLAGS="$(get_abi_LDFLAGS)"                                            ${BUILD_FIXES}         ${BUILD_PARAMS}                                          ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 * The die message:
 * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KSRC=/usr/src/linux KVERS=2.6.27-gentoo-r2 KBUILD=/usr/src/linuxDISABLE_USB=1 -j1 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-wireless/ndiswrapper-1.53-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/temp/environment'.
 *

 * GNU info directory index is up-to-date.


Expected Results:  
Build succeeds.

Need to repackage sources with updated package sources.

Issue and solution in this post on ndiswrapper sourceforge page:

http://sourceforge.net/forum/forum.php?thread_id=2355304&forum_id=323168
Comment 1 Eric Powell 2008-11-09 00:38:24 UTC
(In reply to comment #0)
> ndiswrapper will not build properly under kernel 2.6.27-gentoo-r2. It is a bugm
> in the ndiswrapper source and has been patched in the ndiswrapper project
> Subversion repository. 
> 
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Build kernel from 2.6.27 sources
> 2. Boot to new kernel
> 3. emerge ndiswrapper
> 
> Actual Results:  
> Build fails: 
> 
> make[2]: ***
> [/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/work/ndiswrapper-1.53/driver/iw_ndis.o]
> Error 1                                                 
> make[1]: ***
> [_module_/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/work/ndiswrapper-1.53/driver]
> Error 2                                                   
> make[1]: Leaving directory `/usr/src/linux-2.6.27-gentoo-r2'                    
> make: *** [modules] Error 2                                                     
>  *                                                                              
>  * ERROR: net-wireless/ndiswrapper-1.53-r1 failed.                              
>  * Call stack:                                                                  
>  * ebuild.sh, line   49:  Called src_compile                                    
>  * environment, line 3278:  Called linux-mod_src_compile                        
>  * environment, line 2503:  Called die                                          
>  * The specific snippet of code:                                                
>  * eval "emake HOSTCC="$(tc-getBUILD_CC)"                                     
> CROSS_COMPILE=${CHOST}-                                         
> LDFLAGS="$(get_abi_LDFLAGS)"                                           
> ${BUILD_FIXES}         ${BUILD_PARAMS}                                         
> ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)"
> CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES}
> ${BUILD_PARAMS} ${BUILD_TARGETS}";            
>  * The die message:                                                             
>  * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc
> CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KSRC=/usr/src/linux
> KVERS=2.6.27-gentoo-r2 KBUILD=/usr/src/linux DISABLE_USB=1 -j1 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-wireless/ndiswrapper-1.53-r1/temp/build.log'.             
>  * The ebuild environment file is located at
> '/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/temp/environment'.
>  *
> 
> >>> Failed to emerge net-wireless/ndiswrapper-1.53-r1, Log file:
> 
> >>>  '/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/temp/build.log'
> 
>  * Messages for package net-wireless/ndiswrapper-1.53-r1:
> 
>  *
>  * ERROR: net-wireless/ndiswrapper-1.53-r1 failed.
>  * Call stack:
>  * ebuild.sh, line   49:  Called src_compile
>  * environment, line 3278:  Called linux-mod_src_compile
>  * environment, line 2503:  Called die
>  * The specific snippet of code:
>  * eval "emake HOSTCC="$(tc-getBUILD_CC)"                                     
> CROSS_COMPILE=${CHOST}-                                         
> LDFLAGS="$(get_abi_LDFLAGS)"                                           
> ${BUILD_FIXES}         ${BUILD_PARAMS}                                         
> ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)"
> CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES}
> ${BUILD_PARAMS} ${BUILD_TARGETS}";
>  * The die message:
>  * Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc
> CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KSRC=/usr/src/linux
> KVERS=2.6.27-gentoo-r2 KBUILD=/usr/src/linuxDISABLE_USB=1 -j1 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-wireless/ndiswrapper-1.53-r1/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/net-wireless/ndiswrapper-1.53-r1/temp/environment'.
>  *
> 
>  * GNU info directory index is up-to-date.
> 
> 
> Expected Results:  
> Build succeeds.
> 
> Need to repackage sources with updated package sources.
> 
> Issue and solution in this post on ndiswrapper sourceforge page:
> 
> http://sourceforge.net/forum/forum.php?thread_id=2355304&forum_id=323168
> 

I know...replyng to myself is bad form, but a quick update:

There is not a new package of ndiswrapper, but the bug has been fixed in the svn  repo, the file in question is iw_ndis.c

EP
Comment 2 Ben de Groot (RETIRED) gentoo-dev 2008-11-09 01:47:26 UTC
Talking about bad form, next time please check if there is already a bug report for the same issue.

*** This bug has been marked as a duplicate of bug 241688 ***
Comment 3 Eric Powell 2008-11-09 17:54:07 UTC
(In reply to comment #2)
> Talking about bad form, next time please check if there is already a bug report
> for the same issue.
> 
> *** This bug has been marked as a duplicate of bug 241688 ***
> 

Perhaps almost to the level of sin of flaming someone for a simple oversight when searching through Bugzilla...