Bug 6938

Summary: build errors of Mesa (CVS version) with Function Name Mangling on Solaris
Product: Mesa Reporter: Roland Egger <spark74>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: highest CC: vlee
Version: git   
Hardware: SPARC   
OS: Solaris   
Whiteboard:
i915 platform: i915 features:

Description Roland Egger 2006-05-17 01:34:31 UTC
I tried to build the CVS version of Mesa with function name mangling
(added -DUSE_MGL_NAMESPACE to the defines in sunos5-gcc) on Solaris 9
with the gcc 3.4.2 of sunfreeware and it breaks with errors.

GCC version:
egger@blade02 configs$ gcc -v
Reading specs from /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/specs
Configured with: ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj --enable-languages=c,c+
: (reconfigured) ../configure --with-as=/usr/ccs/bin/as
--with-ld=/usr/ccs/bin/ld --disable-nls --disable-libgcj --enable-languages=c,c++
Thread model: posix
gcc version 3.4.2

The link errors:
make[2]: Leaving directory `/export/home/egger/src/mesa/cvs/Mesa/src'
make[2]: Entering directory `/export/home/egger/src/mesa/cvs/Mesa/progs'
Making programs for sunos5-gcc
make[3]: Entering directory `/export/home/egger/src/mesa/cvs/Mesa/progs/demos'
cp ../../progs/util/readtex.c .
cp ../../progs/util/readtex.h .
gcc -c -I../../include -Wall -O3 -g -fomit-frame-pointer -pipe -fPIC 
-D_REENTRANT -DUSE_XSHM -DUSE_MGL_NAMESPACE -  DUSE_SPARC_ASM -std=c99
-ffast-math -I/usr/openwin/include readtex.c
gcc -I../../include -Wall -O3 -g -fomit-frame-pointer -pipe -fPIC  -D_REENTRANT
-DUSE_XSHM -DUSE_MGL_NAMESPACE -DUS  E_SPARC_ASM -std=c99 -ffast-math
-I/usr/openwin/include arbfplight.c readtex.o -L../../lib -lX11 -lglut -lGLU
-lGL   -lm -o arbfplight
Undefined                       first referenced
 symbol                             in file
mglGetMinmax                        ../../lib/libGL.so
mglNormal3fv                        ../../lib/libglut.so
mglNormal3dv                        ../../lib/libGL.so
mglNormal3bv                        ../../lib/libGL.so
mglNormal3iv                        ../../lib/libGL.so
mglNormal3sv                        ../../lib/libGL.so
mglSecondaryColor3s                 ../../lib/libGL.so
mglSecondaryColor3b                 ../../lib/libGL.so
mglSecondaryColor3d                 ../../lib/libGL.so
mglSecondaryColor3f                 ../../lib/libGL.so
mglSecondaryColor3i                 ../../lib/libGL.so
mglGetFloatv                        ../../lib/libGLU.so
...
ld: fatal: Symbol referencing errors. No output written to arbfplight
collect2: ld returned 1 exit status
make[3]: *** [arbfplight] Error 1
make[3]: Leaving directory `/export/home/egger/src/mesa/cvs/Mesa/progs/demos'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/export/home/egger/src/mesa/cvs/Mesa/progs'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/export/home/egger/src/mesa/cvs/Mesa'
make: *** [sunos5-gcc] Error 2
Comment 1 Adam Jackson 2009-08-24 12:23:54 UTC
Mass version move, cvs -> git
Comment 2 Ian Romanick 2015-11-30 23:45:46 UTC
I'm going to close this (very old bug).  I know that Mesa has built on Solaris since 2006.  I believe that there are other build problems, and those are tracked by other bugs (submitted by Vinson Lee).

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.