Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266524 - media-libs/mesa-7.3-r1: GL/glxext.h failed to compiled when included in custom program
Summary: media-libs/mesa-7.3-r1: GL/glxext.h failed to compiled when included in custo...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-17 12:10 UTC by NBrack
Modified: 2009-04-18 22:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description NBrack 2009-04-17 12:10:28 UTC
I cannot compile this simple program in command-line, on a x86 architecture:

include<stdlib.h>

#include<GL/gl.h>
#include<GL/glu.h>
#include<GL/glxext.h>

int main (void)
{
        return EXIT_SUCCESS;
}

I use gcc version 4.3.2 (Gentoo 4.3.2-r3 p1.6, pie-10.1.5)

Here's gcc output :
$ gcc -Wall -c simple.c -o simple.o
In file included from simple.c:5:
/usr/include/GL/glxext.h:357: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GLXVideoSourceSGIX'
/usr/include/GL/glxext.h:361: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GLXFBConfigIDSGIX'
/usr/include/GL/glxext.h:366: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'GLXPbufferSGIX'
/usr/include/GL/glxext.h:370: error: expected specifier-qualifier-list before 'Bool'
/usr/include/GL/glxext.h:441: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/GL/glxext.h:442: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/GL/glxext.h:443: error: expected ')' before '*' token
/usr/include/GL/glxext.h:444: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/GL/glxext.h:445: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:445: error: expected ')' before '*' token
/usr/include/GL/glxext.h:446: error: expected ')' before '*' token
/usr/include/GL/glxext.h:447: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:447: error: expected ')' before '*' token
/usr/include/GL/glxext.h:448: error: expected ')' before '*' token
/usr/include/GL/glxext.h:449: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:449: error: expected ')' before '*' token
/usr/include/GL/glxext.h:450: error: expected ')' before '*' token
/usr/include/GL/glxext.h:451: error: expected ')' before '*' token
/usr/include/GL/glxext.h:452: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:452: error: expected ')' before '*' token
/usr/include/GL/glxext.h:453: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:453: error: expected ')' before '*' token
/usr/include/GL/glxext.h:454: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:454: error: 'GLXDrawable' declared as function returning a function
/usr/include/GL/glxext.h:455: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/GL/glxext.h:456: error: expected ')' before '*' token
/usr/include/GL/glxext.h:457: error: expected ')' before '*' token
/usr/include/GL/glxext.h:458: error: expected ')' before '*' token
/usr/include/GL/glxext.h:517: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:517: error: expected ')' before '*' token
/usr/include/GL/glxext.h:518: error: 'PFNGLXGETCURRENTREADDRAWABLESGIPROC' declared as function returning a function
/usr/include/GL/glxext.h:546: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/GL/glxext.h:547: error: expected ')' before '*' token
/usr/include/GL/glxext.h:548: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:548: error: expected ';', ',' or ')' before 'context'
/usr/include/GL/glxext.h:549: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:549: error: expected ')' before '*' token
/usr/include/GL/glxext.h:550: error: expected ')' before '*' token
/usr/include/GL/glxext.h:563: error: expected ')' before '*' token
/usr/include/GL/glxext.h:564: error: expected ')' before '*' token
/usr/include/GL/glxext.h:565: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:565: error: expected ')' before '*' token
/usr/include/GL/glxext.h:566: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:566: error: expected ')' before '*' token
/usr/include/GL/glxext.h:567: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/include/GL/glxext.h:568: error: expected ')' before '*' token
/usr/include/GL/glxext.h:580: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:580: error: expected ')' before '*' token
/usr/include/GL/glxext.h:581: error: expected ')' before '*' token
/usr/include/GL/glxext.h:582: error: expected ')' before '*' token
/usr/include/GL/glxext.h:583: error: expected ')' before '*' token
/usr/include/GL/glxext.h:584: error: expected ')' before '*' token
/usr/include/GL/glxext.h:592: error: expected ')' before '*' token
/usr/include/GL/glxext.h:604: error: expected ')' before '*' token
/usr/include/GL/glxext.h:605: error: expected ')' before '*' token
/usr/include/GL/glxext.h:606: error: expected ')' before '*' token
/usr/include/GL/glxext.h:607: error: expected ')' before '*' token
/usr/include/GL/glxext.h:608: error: expected ')' before '*' token
/usr/include/GL/glxext.h:626: error: expected ')' before '*' token
/usr/include/GL/glxext.h:635: error: expected ')' before '*' token
/usr/include/GL/glxext.h:636: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:636: error: expected ')' before '*' token
/usr/include/GL/glxext.h:644: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:644: error: expected ')' before '*' token
/usr/include/GL/glxext.h:652: error: expected ')' before '*' token
/usr/include/GL/glxext.h:660: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:660: error: expected ')' before '*' token
/usr/include/GL/glxext.h:668: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:668: error: expected ')' before '*' token
/usr/include/GL/glxext.h:676: error: expected declaration specifiers or '...' before '*' token
/usr/include/GL/glxext.h:676: error: 'Bool' declared as function returning a function
/usr/include/GL/glxext.h:696: error: expected ')' before '*' token
/usr/include/GL/glxext.h:697: error: expected ')' before '*' token
/usr/include/GL/glxext.h:698: error: expected ')' before '*' token
/usr/include/GL/glxext.h:699: error: expected ')' before '*' token
/usr/include/GL/glxext.h:700: error: expected ')' before '*' token
/usr/include/GL/glxext.h:744: error: expected ')' before '*' token
/usr/include/GL/glxext.h:745: error: expected ')' before '*' token
/usr/include/GL/glxext.h:746: error: expected ')' before '*' token
/usr/include/GL/glxext.h:747: error: expected ')' before '*' token
/usr/include/GL/glxext.h:748: error: expected ')' before '*' token
/usr/include/GL/glxext.h:749: error: expected ')' before '*' token
/usr/include/GL/glxext.h:750: error: expected ')' before '*' token
/usr/include/GL/glxext.h:751: error: expected ')' before '*' token
/usr/include/GL/glxext.h:776: error: expected ')' before '*' token
/usr/include/GL/glxext.h:777: error: expected ')' before '*' token



Reproducible: Always

Steps to Reproduce:
1.include GL/glxext.h in a program
2.compile it with gcc.(I used the flags -Wall -Werror -ansi, -Wall -Werror and then -Wall)
Actual Results:  
It appears that glxext.h has syntax errors... Or is gcc badly configured ?

Expected Results:  
The program should have compile without any error or warning.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-04-17 13:02:06 UTC
you also have to add

#include<GL/glx.h>
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-18 22:27:24 UTC
As justin wrote...