I am totally new to Mesa3D and downloaded it for the first time, just now. So, I got Mesa3D 6.5.1.

I am now trying to compile and getting a couple of errors, to start with.

My compilation process fails with texcompress_s3tc.c

Error 1: missing semicolon in line 107.  Fixed.

But then

Error 2: undeclared constants RTLD_LAZY and RTLD_GLOBAL. Here is the output from the make:

$ mingw32-make -f Makefile.mgw X86=1
c:/mingw/bin/mingw32- make.exe -f Makefile.mgw -C src/mesa
Makefile.mgw:146: warning: overriding commands for target `.s.o'
Makefile.mgw:144: warning: ignoring old commands for target `.s.o'
mingw32-make.exe[1]: Entering directory `c:/programs/Mesa3D/src/mesa'
mingw32-gcc -o main/texcompress_s3tc.o -Wall -W -pedantic -O2 -ffast-math -DBUILD_GL32 -D_OPENGL32_ -I../../include -I../../src/mesa -I../../src/mesa/main -I../../src/mesa/glapi -I../../src/mesa/math -I../../src/mesa/tnl -I../../src/mesa/shader -I../../src/mesa/shader/grammar -I../../src/mesa/shader/slang -I../../src/mesa/shader/slang/OSDependent/Linux -I../../src/mesa/shader/slang/OGLCompilersDLL -I../../src/mesa/swrast -I../../src/mesa/swrast_setup -DUSE_EXTERNAL_DXTN_LIB=1 -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_SSE_ASM -DUSE_3DNOW_ASM -c main/texcompress_s3tc.c
main/texcompress_s3tc.c: In function `_mesa_init_texture_s3tc':
main/texcompress_s3tc.c:148: error: `RTLD_LAZY' undeclared (first use in this function)
main/texcompress_s3tc.c:148: error: (Each undeclared identifier is reported only once
main/texcompress_s3tc.c:148: error: for each function it appears in.)
main/texcompress_s3tc.c:148: error: `RTLD_GLOBAL' undeclared (first use in this function)
main/texcompress_s3tc.c: At top level:
main/texcompress_s3tc.c:83: warning: unused parameter 'flags'
mingw32-make.exe[1]: *** [main/texcompress_s3tc.o] Error 1
mingw32-make.exe[1]: Leaving directory `c:/programs/Mesa3D/src/mesa'
c:\mingw\bin\mingw32-make.exe: *** [libgl] Error 2

Any ideas? Suggestions?

Thanks in advance.