<div dir="ltr">Hello, <div><br></div><div style>I am trying to compile xcrysden on AIX 6.1, and have run into trouble building the static library Mesa. It is complaining that getopt.h is not present. The built-in header file for getopt in AIX is unistd.h instead. But it doesn't have all the functions: compiler_opts in src/glsl/main.cpp gives the following error:</div>
<div style><br></div><div style><div>xlC -c -I. -I../mesa -I../mapi -I../../include -q64 -O -DAIXV3 -DPTHREADS main.cpp -o main.o</div><div>"main.cpp", line 161.21: 1540-1118 (S) The declaration of "compiler_opts" uses the undefined class "option" when the class must be complete.</div>
<div>"main.cpp", line 182.34: 1540-0274 (S) The name lookup for "compiler_opts" did not find a declaration.</div><div>"main.cpp", line 182.50: 1540-0251 (S) The "->" operator cannot be applied to the undefined class "struct option".</div>
<div>"main.cpp", line 182.65: 1540-0253 (S) This use of undefined class "option" is not valid.</div><div>"main.cpp", line 183.29: 1540-0251 (S) The "->" operator cannot be applied to the undefined class "struct option".</div>
<div>"main.cpp", line 268.44: 1540-0274 (S) The name lookup for "compiler_opts" did not find a declaration.</div><div><br></div></div><div style><br></div><div style>Also I cannot find a way to specify that ARCH_FLAGS=ar -X64.</div>
<div style><br></div><div style>Any help with this would be greatly appreciated, </div><div style><br></div><div style>Sincerely, </div><div style><br></div><div style>Oliver Albertini</div></div>