Bug 7174 - tnl/t_vertex.c fails on Mac OS X 10.4
Summary: tnl/t_vertex.c fails on Mac OS X 10.4
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 6.5
Hardware: PowerPC Mac OS X (All)
: high minor
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
: 7175 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-10 07:42 UTC by Benjamin Reed
Modified: 2006-06-10 09:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
specify tnl_clipspace_fastpath::attr_type instead of attr_type (597 bytes, patch)
2006-06-10 07:43 UTC, Benjamin Reed
Details | Splinter Review

Description Benjamin Reed 2006-06-10 07:42:42 UTC
compile dies with the following error:

c++ -c -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 -I/sw/X11/include -O3 -fPIC -fno-common
-ffast-math -funroll-loops -fexpensive-optimizations -no-cpp-precomp -dynamic
-Ddarwin tnl/t_vertex.c -o tnl/t_vertex.o
tnl/t_vertex.c: In function 'void _tnl_register_fastpath(tnl_clipspace*,
GLboolean)':
tnl/t_vertex.c:91: error: cannot convert 'attr_type*' to
'tnl_clipspace_fastpath::attr_type*' in assignment
make[1]: *** [tnl/t_vertex.o] Error 1
make: *** [default] Error 2
Comment 1 Benjamin Reed 2006-06-10 07:43:29 UTC
Created attachment 5867 [details] [review]
specify tnl_clipspace_fastpath::attr_type instead of attr_type

I'm not sure if this is the correct fix, but it does allow the compile to
continue
Comment 2 Tilman Sauerbeck 2006-06-10 07:58:57 UTC
That's not the correct fix.

The problem is that you're trying to compile C code with a C++ compiler.

line 8 of Mesa-6.5/configs/darwin says:
  CC = c++
which causes that problem. Changing it to
  CC = cc
will most likely fix it for you.
Comment 3 Tilman Sauerbeck 2006-06-10 08:30:21 UTC
*** Bug 7175 has been marked as a duplicate of this bug. ***
Comment 4 Benjamin Reed 2006-06-10 09:37:11 UTC
yup, I just confirmed everything works with cc instead of c++, 6.5 builds just
fine on OSX now


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.