I forgot to bring in the drm_linux_list.h for bsd that was added on
the mach64-0-0-6-branch. I just added it and it is included from drmP.h.
With any luck that should fix the compile errors in the kernel module.
Leif
On 7 Mar 2004 [EMAIL PROTECTED] wrote:
> Thank you for your time and your replies.
>
> Dave Airlie <[EMAIL PROTECTED]> writes:
>
> > >
> > > Thank you! It dies in xc/programs/Xserver/GL/mesa/X/xf86glx.c :
> > >
> > > xf86glx.c: In function `__MESA_setVisualConfigs':
> > > xf86glx.c:481: error: `kernel8' undeclared (first use in this function)
> > > xf86glx.c:481: error: (Each undeclared identifier is reported only once
> > > xf86glx.c:481: error: for each function it appears in.)
> > > xf86glx.c:482: error: `DitherValues' undeclared (first use in this function)
> > >
> > > If I remove those two variables, the build continues past that
> > > point. I don't yet know if it completes because my laptop takes a long
> > > time to build X.
> >
> > I've moved the fix over the from the trunk so it should work, it compies
> > on Linux for me .. can't test it at work though..
>
> With this change I was able to build an Xserver that works, and runs,
> but still no hardware accleration, because I still have no drm
> kernel module for freebsd. In /var/log/XFree86.0.log I see:
>
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is -1, (No such file or directory)
> drmOpenDevice: open result is -1, (No such file or directory)
> drmOpenDevice: Open failed
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is -1, (No such file or directory)
> drmOpenDevice: open result is -1, (No such file or directory)
> drmOpenDevice: Open failed
> [drm] failed to load kernel module "mach64"
> (II) ATI(0): [drm] drmOpen failed
> (EE) ATI(0): [dri] DRIScreenInit Failed
>
> I tried uncommenting this line host.def:
>
> /* #define BuildXF86DRM YES */
>
> That makes the build die with:
>
> echo "#define DRM_LINUX 1" >> opt_drm.h
> cc -O -pipe -mcpu=pentiumpro -I. -I.. -D_KERNEL -Wall -Wredundant-decls
> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual -fformat-extensions -std=c99 -DKLD_MODULE -nostdinc -I- -I. -I.. -I.
> -I@ -I@/../include -I/usr/include -finline-limit=15000 -fno-common
> -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Wall
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -c
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64/../mach64_dma.c
> In file included from
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:38:
> ../mach64_drv.h:44: error: field `list' has incomplete type
> ../mach64_drv.h:74: error: field `free_list' has incomplete type
> ../mach64_drv.h:75: error: field `placeholders' has incomplete type
> ../mach64_drv.h:76: error: field `pending' has incomplete type
> ../mach64_drv.h: In function `mach64_find_pending_buf_entry':
> ../mach64_drv.h:812: warning: implicit declaration of function `list_entry'
> ../mach64_drv.h:812: error: syntax error before "drm_mach64_freelist_t"
> ../mach64_drv.h:817: error: dereferencing pointer to incomplete type
> ../mach64_drv.h:818: error: syntax error before "drm_mach64_freelist_t"
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c: In
> function `mach64_dump_ring_info':
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:401:
> warning: implicit declaration of function `list_for_each'
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:401:
> error: syntax error before '{' token
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:404:
> error: `entry' undeclared (first use in this function)
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:404:
> error: (Each undeclared identifier is reported only once
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:404:
> error: for each function it appears in.)
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c: At
> top level:
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:414:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:415:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:416:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:417:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:418:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:419:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:420:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:421:
> error: syntax error before string constant
> <builddir>/xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel/mach64_dma.c:422:
> error: syntax error before string constant
>
> (<builddir> is the root of my builddir,
> /2nd/usr/from_ext_cvs/dri_mach64_branch/mach64-0-0-7-branch/xc.build/ .)
>
> I also tried running 'make -f Makefile.bsd' in the dir
> xc/programs/Xserver/hw/xfree86/os-support/bsd/drm/kernel, but of
> course that dies with the same errors. A bit of reading through the
> code and googling dri.freedesktop.org leaves me with the
> impression this code was for old 'DRM_LINUX' support, which has
> been superceeded, but still I can find no drm kernel module for
> freebsd.
>
> btw - I had mentioned this on the dri-users list, but not here, sorry
> about that, I am running freebsd 5.2p2.
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> --
> _______________________________________________
> Dri-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dri-devel
>
--
Leif Delgass
http://www.retinalburn.net
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
--
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel