Your undefined references are because you need to pass some more libraries to the linker. For the X errors, try passing -lX11. From memory there may be some others as well. On SGI machines here at uni one of my old makefiles has these: -lXmu -lXext -lX11 -lXi but not all of these will exist (I think) on Linux. I’m guessing that -lXext and -lX11 will be on Linux. You also want to pass -lm for the math functions. As for fist_tessellation, I guess that’s in one of your proprietary libraries so you’ll have to link that as well.
The warning at the top is probably due a mistake on your part. I’m guessing your main function looks like this:
int main(int argc, char **argv)
{
glutInit(argc, argv);
…
when it should look like this:
int main(int argc, char **argv)
{
glutInit(&argc, argv);
…
where cube.c is my file and cube is my output.
The sin, cos, etc. might be because the math library is not being included (#include<math.h> .
Hope this helps.
JBob