[ltp] prob in make mwave 1.0 under linux 2.2.19 (slackware 7.1)
Luca Pisani
linux-thinkpad@www.bm-soft.com
Mon, 13 Aug 2001 05:14:13 +0200
Hi...
Didn't help....
But I've fixed some error now it seems to work...(still testing)
Bye Luca
paulsch@haywired.net wrote:
>
> Try this patch to mwavedd.c... For those who may have had a problem... If
> this works for you, please let me know so that I can update the driver...
>
> To apply... Put patch file in mwavem-1.0/src/drivers directory..
>
> cd mwavem-1.0/src/drivers
> patch <mwavedd.c.patch
>
> Cheers...Paul...
>
> --- mwavedd.c.orig Thu Jul 26 22:05:58 2001
> +++ mwavedd.c Thu Jul 26 22:43:50 2001
> @@ -72,6 +72,22 @@
> #include <linux/proc_fs.h>
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
> static int mwave_get_info(char *buf, char **start, off_t offset, int
> len);
> +#else
> +int mwave_read_proc(char *buf, char **start, off_t offset, int xlen, int
> + unused);
> +
> +static struct proc_dir_entry mwave_proc = {
> + 0, /* unsigned short low_ino */
> + 5, /* unsigned short namelen */
> + "mwave", /* const char *name */
> + S_IFREG | S_IRUGO, /* mode_t mode */
> + 1, /* nlink_t nlink */
> + 0, /* uid_t uid */
> + 0, /* gid_t gid */
> + 0, /* unsigned long size */
> + NULL, /* struct inode_operations *ops */
> + &mwave_read_proc /* int (*get_info) (...) */
> +};
> #endif
>
> extern int mwave_debug;
> @@ -646,19 +662,6 @@
> pSettings->usUartBaseIO);
> return len;
> }
> -
> -static struct proc_dir_entry mwave_proc = {
> - 0, /* unsigned short low_ino */
> - 5, /* unsigned short namelen */
> - "mwave", /* const char *name */
> - S_IFREG | S_IRUGO, /* mode_t mode */
> - 1, /* nlink_t nlink */
> - 0, /* uid_t uid */
> - 0, /* gid_t gid */
> - 0, /* unsigned long size */
> - NULL, /* struct inode_operations *ops */
> - &mwave_read_proc /* int (*get_info) (...) */
> -};
>
> /*
> End of /proc entry stuff (except for the calls to proc_register and
>
> On Wed, 25 Jul 2001, Luca Pisani wrote:
>
> > quasimodo:~$ gcc --version
> > egcs-2.91.66
> > quasimodo:~$ gcc -v
> > Reading specs from
> > /usr/lib/gcc-lib/i386-slackware-linux/egcs-2.91.66/specs
> > gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> >
> > Bye Luca
> >
> >
> > paulsch@haywired.net wrote:
> > >
> > > Mmmm... Looks like you have a picky compiler... What does 'gcc
> > > --version' give you??
> > >
> > > On Tue, 24 Jul 2001, Luca Pisani wrote:
> > >
> > > >
> > > > Hi
> > > > I've downloaded mwavem-1.0 for my thinkpad600E...
> > > > I'm not able to compile it: details in attach
> > > > Hope u can help
> > > >
> > > > Thanks,
> > > > Bye Luca
> > >
> > > --
> > >
> > > Paul B Schroeder
> > > paulsch@haywired.net
> > >
> > > ----- The Linux ThinkPad mailing list -----
> > > The linux-thinkpad mailing list home page is at:
> > > http://www.bm-soft.com/~bm/tp_mailing.html
> >
> > ----- The Linux ThinkPad mailing list -----
> > The linux-thinkpad mailing list home page is at:
> > http://www.bm-soft.com/~bm/tp_mailing.html
> >
>
> --
>
> Paul B Schroeder
> paulsch@haywired.net
>
> ------------------------------------------------------------------------
> Name: mwavedd.c.patch
> mwavedd.c.patch Type: Plain Text (TEXT/PLAIN)
> Encoding: BASE64
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html