In Solaris 10 64 bit Sparc I used gmake and got this:
# gmake cc -DGLEW_NO_GLU -DGLEW_BUILD -xO2 -Iinclude -I/usr/openwin/include -Kpic -o tmp/solaris/default/shared/glew.o -c src/glew.c ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11 tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_2': glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_3': glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x938): additional relocation overflows omitted from the output Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed gmake: *** [lib/libGLEW.so.1.12.0] Error 1
Then I tried make and got this:
# make ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11 tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_2': glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o tmp/solaris/default/shared/glew.o: In function `_glewInit_GL_VERSION_1_3': glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol `__glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x938): additional relocation overflows omitted from the output Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed make: *** [lib/libGLEW.so.1.12.0] Error 1 #
I have no idea what might be wrong. I'd really appreciate any help with this.
Ticket moved from /p/glew/bugs/267/
Diff:
The solaris make config was recently changed to use the -kPIC flag.
Perhaps -fPIC would be better in this case?
https://github.com/nigels-com/glew/blob/master/config/Makefile.solaris
Please attach the complete build log, if possible.
"https://github.com/nigels-com/glew/blob/master/config/Makefile.solaris"
Am I supposed to insert that code into the Makefile I already have?
"Please attach the complete build log, if possible."
That was all make said. Is there a log file somewhere else? I don't see one in the glew-1.12.0 directory.
"The solaris make config was recently changed to use the -kPIC flag.
Perhaps -fPIC would be better in this case?"
I changed -Kpic to -Fpic in Makefile.solaris and then got this:
make
ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
tmp/solaris/default/shared/glew.o: In function
_glewInit_GL_VERSION_1_2': glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.otmp/solaris/default/shared/glew.o: In function
_glewInit_GL_VERSION_1_3': glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x938): additional relocation overflows omitted from the output
Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
make: *** [lib/libGLEW.so.1.12.0] Error 1
"he solaris make config was recently changed to use the -kPIC flag.
Perhaps -fPIC would be better in this case?"
I changed -Kpic to -Fpic in Makefile.solaris and then got this:
make
ld -G -o lib/libGLEW.so.1.12.0 tmp/solaris/default/shared/glew.o -L/usr/openwin/lib -lGL -lX11
tmp/solaris/default/shared/glew.o: In function
_glewInit_GL_VERSION_1_2': glew.c:(.text+0x5f4): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewCopyTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x60c): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewDrawRangeElements' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x678): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.otmp/solaris/default/shared/glew.o: In function
_glewInit_GL_VERSION_1_3': glew.c:(.text+0x6f8): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewClientActiveTexture' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x730): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewCompressedTexImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x764): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewCompressedTexImage2D' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x7cc): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewCompressedTexSubImage1D' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x834): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewCompressedTexSubImage3D' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x868): relocation truncated to fit: R_SPARC_GOT13 against symbol
__glewGetCompressedTexImage' defined in .data section in tmp/solaris/default/shared/glew.o glew.c:(.text+0x904): relocation truncated to fit: R_SPARC_GOT13 against symbol
glewMultTransposeMatrixd' defined in .data section in tmp/solaris/default/shared/glew.oglew.c:(.text+0x938): additional relocation overflows omitted from the output
Makefile:113: recipe for target 'lib/libGLEW.so.1.12.0' failed
make: *** [lib/libGLEW.so.1.12.0] Error 1
"Please attach the complete build log, if possible."
That's all make said. Unless there's a log file somewhere else. I didn't see one in the glew-1.12.9 directory.
See also:
https://sourceforge.net/p/glew/bugs/253/
Test - why are my posts not showing??
Anyone else having issues on Solaris?