https://bugzilla.novell.com/show_bug.cgi?id=784512 https://bugzilla.novell.com/show_bug.cgi?id=784512#c0 Summary: home:lnt-sysadmin:lab-support/gpib: Can't build ni_usb_gpib module Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: x86 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software AssignedTo: opensuse-communityscreening@forge.provo.novell.com ReportedBy: wjones@fluke.com QAContact: opensuse-communityscreening@forge.provo.novell.com CC: wjones@fluke.com Found By: Community User Blocker: No Created an attachment (id=509010) --> (http://bugzilla.novell.com/attachment.cgi?id=509010) Patch for gpib.spec The spec file for the linux-gpib package doesn't build the ni_usb_gpib module, which we need at our site. This module (and others) are probably disabled because of build errors. I'm attaching a patch that enables ni_usb_gpib and works around the errors. The build failed because EXTRA_CFLAGS was used to append local header directories to the standard include path. Unfortunately, the linux-gpib distribution includes header files with the same names as kernel header files (e.g. "linux/interrupt.h"). These files use "#include_next" to pull in the corresponding kernel header files. This only works if local directories are **prepended** to the include path. My workaround feels like a bit of a kludge -- I defined: CC="gcc -I%{_builddir}/%{buildsubdir} ..." This does work, and even if it's a kludge, it highlights the problem so that someone with a better understanding of the build process can create a cleaner fix. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.