Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing type definition 'GCOps' #14

Closed
cfsghost opened this issue Jul 29, 2013 · 3 comments
Closed

Missing type definition 'GCOps' #14

cfsghost opened this issue Jul 29, 2013 · 3 comments

Comments

@cfsghost
Copy link

I just pull the latest version source from git repository, and trying to compile it. Then I got error messages about missing type definition 'GCOps'.

$ make
make all-recursive
make[1]: Entering directory /home/fred/works/cubieboard/xf86-video-sunxifb' Making all in src make[2]: Entering directory/home/fred/works/cubieboard/xf86-video-sunxifb/src'
CC fbdev.lo
In file included from fbdev.c:53:0:
sunxi_x_g2d.h:30:5: error: unknown type name 'GCOps'
fbdev.c: In function 'FBDevPciProbe':
fbdev.c:286:9: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c: In function 'FBDevProbe':
fbdev.c:345:10: warning: assignment discards 'const' qualifier from pointer target type [enabled by default]
fbdev.c: In function 'FBDevPreInit':
fbdev.c:464:2: warning: passing argument 3 of 'fbdevHWInit' discards 'const' qualifier from pointer target type [enabled by default]
In file included from fbdev.c:69:0:
/usr/include/xorg/fbdevhw.h:21:23: note: expected 'char ' but argument is of type 'const char *'
fbdev.c: In function 'FBDevCreateScreenResources':
fbdev.c:674:5: warning: implicit declaration of function 'shadowAdd' [-Wimplicit-function-declaration]
fbdev.c:675:6: warning: implicit declaration of function 'shadowUpdateRotatePackedWeak' [-Wimplicit-function-declaration]
fbdev.c:675:6: warning: implicit declaration of function 'shadowUpdatePackedWeak' [-Wimplicit-function-declaration]
fbdev.c: In function 'FBDevShadowInit':
fbdev.c:689:5: warning: implicit declaration of function 'shadowSetup' [-Wimplicit-function-declaration]
fbdev.c: In function 'FBDevCloseScreen':
fbdev.c:1112:6: warning: implicit declaration of function 'shadowRemove' [-Wimplicit-function-declaration]
make[2]: *
* [fbdev.lo] Error 1
make[2]: Leaving directory /home/fred/works/cubieboard/xf86-video-sunxifb/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/fred/works/cubieboard/xf86-video-sunxifb'
make: *** [all] Error 2

@ssvb
Copy link
Owner

ssvb commented Jul 29, 2013

Thanks for reporting. What is the linux distro that you are using and what is the version of xorg server? This looks like some header file with the needed definition of 'GCOps' might be missing, or not explicitly included. You can try to run

grep -R GCOps /usr/include

@cfsghost
Copy link
Author

I am a Debian user, and I found definition of 'GCOps' in /usr/include/xorg/gcstruct.h

It can be completed successfully since I add a line to sunxi_x_g2d.h:

#include <gcstruct.h>

@ssvb
Copy link
Owner

ssvb commented Jul 29, 2013

Thanks for fast feedback and providing the detailed information. This should be now fixed in 7b07f25
But I could not verify it for real because I did not have this problem with my system. So please reopen this bug if anything is still wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants