Re: error: unknown type name 'd_thread_t'

2016-03-07 Thread Chris H
On Mon, 7 Mar 2016 21:51:37 -0500 Ultima <ultima1...@gmail.com> wrote

> Hello chris,
> 
Looks like we both answered at the same time. :-)
> d_thread_t was a compatible shim to support FreeBSD 4.
Right. It was later considered COMPAT_FREEBSD5.
> It was removed in
> current some time ago,
Right. Removed by jhb @r277897.
>  changing to struct thread should fix this error.
Thanks! I was able to figure that out, and replied to myself;
s/d_thread_t/struct thread/g

I must have read your mind. Or you just sent me some ESP. ;-)

Thanks for taking the time to help, Ultima!
> 
> Ultima
> 
> On Mon, Mar 7, 2016 at 8:05 PM, Chris H <bsd-li...@bsdforge.com> wrote:
> 
> > Greetings, all.
> > Apologies in advance, if this is better suited for
> > freebsd-hackers@. But given this is only relevant to CURRENT,
> > I hoped it would be OK.
> >
> > OK. I'm attempting to build an i386 development box on -CURRENT.
> > I'm stuck using a legacy nvidia card (NV-34). Yea, I know. But
> > that's what I have. Anyway, that necessitates my maintaining a
> > local copy of the now defunct x11/nvidia-driver-173 port.
> > I've cobbled/refined all the necessary patches; save one.
> > Which is what beings me here. It appears that the d_thread_t
> > compatibility shim provided in 5.0 was dumped in r277897.
> > Sadly, as a result I receive the following, when attempting
> > to build the port (in spite of having COMPAT_FREEBSD5 built
> > in to my custom kernel):
> >
> >
> >
> >
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> > ebs d.h:459:68: error: unknown type name 'd_thread_t'
> > intnvidia_handle_ioctl   (struct cdev *, u_long, caddr_t, int,
> > d_thread_t
> > *)
> > ;
> >        ^
> >
> >
> >
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> > ebs d.h:463:46: error: unknown type name 'd_thread_t'
> > intnvidia_open_ctl   (struct cdev *, d_thread_t *);
> >  ^
> >
> >
> >
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> > ebs d.h:464:69: error: unknown type name 'd_thread_t'
> > intnvidia_open_dev       (struct nvidia_softc *, struct cdev *,
> > d_thread_t
> > *
> > );
> > ^
> >
> >
> >
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> > ebs d.h:465:46: error: unknown type name 'd_thread_t'
> > intnvidia_close_ctl  (struct cdev *, d_thread_t *);
> >  ^
> >
> >
> >
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> > ebs d.h:466:69: error: unknown type name 'd_thread_t'
> > intnvidia_close_dev  (struct nvidia_softc *, struct cdev *,
> > d_thread_t
> > *
> > );
> >
> > Is there any way around this?
> >
> > Thanks for any, and all help with this!
> >

--Chris

--


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: error: unknown type name 'd_thread_t'

2016-03-07 Thread Ultima
Hello chris,

d_thread_t was a compatible shim to support FreeBSD 4. It was removed in
current some time ago, changing to struct thread should fix this error.

Ultima

On Mon, Mar 7, 2016 at 8:05 PM, Chris H <bsd-li...@bsdforge.com> wrote:

> Greetings, all.
> Apologies in advance, if this is better suited for
> freebsd-hackers@. But given this is only relevant to CURRENT,
> I hoped it would be OK.
>
> OK. I'm attempting to build an i386 development box on -CURRENT.
> I'm stuck using a legacy nvidia card (NV-34). Yea, I know. But
> that's what I have. Anyway, that necessitates my maintaining a
> local copy of the now defunct x11/nvidia-driver-173 port.
> I've cobbled/refined all the necessary patches; save one.
> Which is what beings me here. It appears that the d_thread_t
> compatibility shim provided in 5.0 was dumped in r277897.
> Sadly, as a result I receive the following, when attempting
> to build the port (in spite of having COMPAT_FREEBSD5 built
> in to my custom kernel):
>
>
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
> d.h:459:68: error: unknown type name 'd_thread_t'
> intnvidia_handle_ioctl   (struct cdev *, u_long, caddr_t, int,
> d_thread_t
> *)
> ;
>^
>
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
> d.h:463:46: error: unknown type name 'd_thread_t'
> intnvidia_open_ctl   (struct cdev *, d_thread_t *);
>  ^
>
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
> d.h:464:69: error: unknown type name 'd_thread_t'
> intnvidia_open_dev   (struct nvidia_softc *, struct cdev *,
> d_thread_t
> *
> );
>         ^
>
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
> d.h:465:46: error: unknown type name 'd_thread_t'
> intnvidia_close_ctl  (struct cdev *, d_thread_t *);
>              ^
>
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
> d.h:466:69: error: unknown type name 'd_thread_t'
> intnvidia_close_dev  (struct nvidia_softc *, struct cdev *,
> d_thread_t
> *
> );
>
> Is there any way around this?
>
> Thanks for any, and all help with this!
>
> --Chris
>
> --
>
>
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: error: unknown type name 'd_thread_t'

2016-03-07 Thread Chris H
On Mon, 07 Mar 2016 17:05:44 -0800 "Chris H" <bsd-li...@bsdforge.com> wrote

> Greetings, all.
> Apologies in advance, if this is better suited for
> freebsd-hackers@. But given this is only relevant to CURRENT,
> I hoped it would be OK.
> 
> OK. I'm attempting to build an i386 development box on -CURRENT.
> I'm stuck using a legacy nvidia card (NV-34). Yea, I know. But
> that's what I have. Anyway, that necessitates my maintaining a
> local copy of the now defunct x11/nvidia-driver-173 port.
> I've cobbled/refined all the necessary patches; save one.
> Which is what beings me here. It appears that the d_thread_t
> compatibility shim provided in 5.0 was dumped in r277897.
> Sadly, as a result I receive the following, when attempting
> to build the port (in spite of having COMPAT_FREEBSD5 built
> in to my custom kernel):
> 
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> ebs d.h:459:68: error: unknown type name 'd_thread_t'
> intnvidia_handle_ioctl   (struct cdev *, u_long, caddr_t, int, d_thread_t
> *)
> ;
>^
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> ebs d.h:463:46: error: unknown type name 'd_thread_t'
> intnvidia_open_ctl   (struct cdev *, d_thread_t *);
>  ^
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> ebs d.h:464:69: error: unknown type name 'd_thread_t'
> intnvidia_open_dev   (struct nvidia_softc *, struct cdev *,
> d_thread_t *
> );
>     ^
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> ebs d.h:465:46: error: unknown type name 'd_thread_t'
> intnvidia_close_ctl  (struct cdev *, d_thread_t *);
>          ^
> /usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-fre
> ebs d.h:466:69: error: unknown type name 'd_thread_t'
> intnvidia_close_dev  (struct nvidia_softc *, struct cdev *,
> d_thread_t *
> );
> 
> Is there any way around this?
> 
Got it!

OK. Just in case anyone besides me cares, performing an

s/d_thread_t/struct thread/g

on src/nv-freebsd.h && src/nvidia_subr.c will give it to you.

Hope this helps!

--Chris


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


error: unknown type name 'd_thread_t'

2016-03-07 Thread Chris H
Greetings, all.
Apologies in advance, if this is better suited for
freebsd-hackers@. But given this is only relevant to CURRENT,
I hoped it would be OK.

OK. I'm attempting to build an i386 development box on -CURRENT.
I'm stuck using a legacy nvidia card (NV-34). Yea, I know. But
that's what I have. Anyway, that necessitates my maintaining a
local copy of the now defunct x11/nvidia-driver-173 port.
I've cobbled/refined all the necessary patches; save one.
Which is what beings me here. It appears that the d_thread_t
compatibility shim provided in 5.0 was dumped in r277897.
Sadly, as a result I receive the following, when attempting
to build the port (in spite of having COMPAT_FREEBSD5 built
in to my custom kernel):

/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
d.h:459:68: error: unknown type name 'd_thread_t'
intnvidia_handle_ioctl   (struct cdev *, u_long, caddr_t, int, d_thread_t
*)
;
   ^
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
d.h:463:46: error: unknown type name 'd_thread_t'
intnvidia_open_ctl   (struct cdev *, d_thread_t *);
 ^
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
d.h:464:69: error: unknown type name 'd_thread_t'
intnvidia_open_dev   (struct nvidia_softc *, struct cdev *, d_thread_t
*
);
^
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
d.h:465:46: error: unknown type name 'd_thread_t'
intnvidia_close_ctl  (struct cdev *, d_thread_t *);
 ^
/usr/ports/x11/nvidia-driver-173/work/NVIDIA-FreeBSD-x86-173.14.39/src/nv-freebs
d.h:466:69: error: unknown type name 'd_thread_t'
intnvidia_close_dev  (struct nvidia_softc *, struct cdev *, d_thread_t
*
);

Is there any way around this?

Thanks for any, and all help with this!

--Chris

--


___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"