Re: [opensuse] usbdevice_fs.h & compiler.h



Very late on Friday night, I sent the following to the list but didn't
get any answers. It probably wasn't the best time to ask a question like
this :) So I thought I'd try one more time to see if anybody knew
anything or can point me to a better place to find out.

Thanks, Dave

Dave Howorth wrote:
I have an application (ftpd-topfield) that worked on Suse 9.3. I'm
trying to compile the current version on Suse 10.2 but it's failing:

/usr/include/linux/usbdevice_fs.h:49: error: expected ':', ',', ';', '}'
or '__attribute__' before '*' token

Line 49 is: void __user *data;

The application is including usbdevice_fs.h but it doesn't compile
because the __user macro isn't defined. That macro is defined in
linux/compiler.h. So something should be including that but isn't. The
question is, what should include compiler.h?

Last year Johannes Meixner said that it should be included by an
application (hplip) on Suse 10.1:
<http://lists.opensuse.org/opensuse/2006-06/msg02208.html>

But I gather that in some current systems, the include is done by
usbdevice_fs.h itself.

(Later addition. Comments like this:
Your distro should use David Woodhouse's userspace kernel headers which
is the official distribution for kernel headers now btw and which does
not have this problem.)

I'm wondering what the current Suse viewpoint is?
Should I file a bug against the application or should I modify
usbdevice_fs.h? I can't find anything on Novell bugzilla against
usbdevice_fs.h.

Thanks and regards,
Dave

--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • [opensuse] usbdevice_fs.h & compiler.h
    ... I have an application that worked on Suse 9.3. ... trying to compile the current version on Suse 10.2 but it's failing: ... The application is including usbdevice_fs.h but it doesn't compile ... because the __user macro isn't defined. ...
    (SuSE)
  • Re: [SLE] Please! I could use some help!
    ... I don't know what SuSE distribution you are running -- I came in late on ... "NULL" error message ... to ensure he was getting a working installation. ... and do some simple compile development exercises until you gain the ...
    (SuSE)
  • Re: Xorg 6.9 or 7.0 - still no RPMs?
    ... >> Again, SUSE only does security updates, not version updates. ... Gnome and other WM's packages, and each graphical application, anything ... There is a lot of work involved in releasing a major update like that! ... > needing to compile or find trickily located rpms are they expected ...
    (alt.os.linux.suse)
  • Re: [SLE] 9.1 Personal and lack of Gnome
    ... I just think SuSE wanted to keep the price down. ... I think that really depends on whether you use Gnome or not. ... you can also try to learn to compile it. ...
    (SuSE)
  • Re: How do you install pkgsrc?
    ... Oliver Kraitschy wrote: ... > i have Suse 9.0 Pro running and i want to install pkgsrc from ... > which file do i have to get to compile from the sources? ... BSDs do things differently in many ways, and pkgsrc is a BSD thing. ...
    (alt.os.linux.suse)