Hi,
I just resolved a problem I faced during installation of
DirectFB-1.0.0-rc2 on fedora core 5. Thought I could save some time
for others facing the same problem..

I was getting this error:

----------------start of error--------------------
#make
....
....
 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib
-I../../lib -I../../src -I../../systems -D_REENTRANT -O3 -ffast-math
-pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -c sis315.c
-fPIC -DPIC -o .libs/sis315.o
sis315.c:169: error: expected ';', ',' or ')' before '*' token
sis315.c: In function 'driver_init_driver':
sis315.c:225: error: 'sisfb_info' undeclared (first use in this function)
sis315.c:225: error: (Each undeclared identifier is reported only once
sis315.c:225: error: for each function it appears in.)
sis315.c:225: error: 'fbinfo' undeclared (first use in this function)
sis315.c:261: error: implicit declaration of function 'check_sisfb_version'
make[3]: *** [sis315.lo] Error 1
make[3]: Leaving directory
`/home/mythtv/downloads/DirectFB-1.0.0-rc2/gfxdrivers/sis315'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/mythtv/downloads/DirectFB-1.0.0-rc2/gfxdrivers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/mythtv/downloads/DirectFB-1.0.0-rc2'
make: *** [all-recursive-am] Error 2

----------------end of error--------------------

To solve the problem, I copied the
$(kernel-source)/include/video/sisfb.h to /usr/include/linux/
as mentioned in this post
http://mail.directfb.org/pipermail/directfb-users/2005-August/000524.html

and then I had to change all the structs declared in sisfb.h to
typedef structs, like:

struct sis_memreq{
        __u32   offset;
        __u32   size;
} ;

to

typedef struct {
        __u32   offset;
        __u32   size;
} sis_memreq;

and all the places in sisfb.h where the structs were mentioned, like:
extern void sis_malloc_new(struct pci_dev *pdev, struct sis_memreq *req);
to
extern void sis_malloc_new(struct pci_dev *pdev, sis_memreq *req);

hope that helps..
sandeep

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to