Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 543070 - net-wireless/ndiswrapper-1.59 with kernel 4.0.0 - .../work/ndiswrapper-1.59/driver/ndis.c:441:3: error: implicit declaration of function ‘strnicmp’ [-Werror=implicit-function-declaration]
Summary: net-wireless/ndiswrapper-1.59 with kernel 4.0.0 - .../work/ndiswrapper-1.59/d...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Christoph Mende (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-03-12 15:34 UTC by lordofgameemail
Modified: 2015-09-19 17:59 UTC (History)
3 users (show)

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


Attachments
Replaces all occurences of strnicmp with strncasecmp (stri-to-strcase.patch,1.04 KB, patch)
2015-03-12 15:34 UTC, lordofgameemail
Details | Diff
ebuild and files/*patch for easy tree integration (ndiswrapper.tar.gz,2.22 KB, application/x-gzip)
2015-06-02 19:47 UTC, Octavian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lordofgameemail 2015-03-12 15:34:32 UTC
Created attachment 398750 [details, diff]
Replaces all occurences of strnicmp with strncasecmp

When compiling the ndiswrapper kernel module on kernel 4 the above error occurs. This error can easily be fixed by replacing the strnicmp function with the strncasecmp function. The attached patch does that.
It was tested on kernel 4.0.0-rc3 and seems to work fine.
Comment 1 Octavian 2015-06-02 19:46:21 UTC
For ease of integration in portage I have attached the ebuild and the patched file. Those files can be easily added to the portage tree. 

The patch comes from http://anonscm.debian.org/cgit/collab-maint/ndiswrapper.git/tree/debian/patches/Support-kernel-4.0.patch?id=fe307aab912c55fb357670e5e838c353712a689b
Comment 2 Octavian 2015-06-02 19:47:29 UTC
Created attachment 404480 [details]
ebuild and files/*patch for easy tree integration
Comment 3 Toralf Förster gentoo-dev 2015-06-19 11:57:43 UTC
confirmed this but at :

  This is an stable amd64 chroot image (named amd64-stable_20150615-204131) at a hardened host acting as a tinderbox.
Comment 4 Christoph Mende (RETIRED) gentoo-dev 2015-09-19 17:59:49 UTC
imported together with debian's patch for linux 4.2