Log
[1m===> Building for glclock-6.0.b6.0[0m
--- main.o ---
--- glclock.o ---
--- GLObject.o ---
--- GLextensions.o ---
--- PnmIO.o ---
--- MString.o ---
--- glclockmark.o ---
--- main.o ---
c++ -c -DIMAGE_PATH=\"/usr/local/lib/X11/glclock/\" -O2 -pipe -fno-strict-aliasing -I/usr/local/include main.cpp
--- glclock.o ---
c++ -c -DIMAGE_PATH=\"/usr/local/lib/X11/glclock/\" -O2 -pipe -fno-strict-aliasing -I/usr/local/include glclock.cpp
--- GLObject.o ---
c++ -c -DIMAGE_PATH=\"/usr/local/lib/X11/glclock/\" -O2 -pipe -fno-strict-aliasing -I/usr/local/include GLObject.cpp
--- GLextensions.o ---
c++ -c -DIMAGE_PATH=\"/usr/local/lib/X11/glclock/\" -O2 -pipe -fno-strict-aliasing -I/usr/local/include GLextensions.cpp
--- PnmIO.o ---
c++ -c -DIMAGE_PATH=\"/usr/local/lib/X11/glclock/\" -O2 -pipe -fno-strict-aliasing -I/usr/local/include PnmIO.cpp
--- MString.o ---
c++ -c -DIMAGE_PATH=\"/usr/local/lib/X11/glclock/\" -O2 -pipe -fno-strict-aliasing -I/usr/local/include MString.cpp
--- glclockmark.o ---
c++ -c -DIMAGE_PATH=\"/usr/local/lib/X11/glclock/\" -O2 -pipe -fno-strict-aliasing -I/usr/local/include glclockmark.cpp
--- MString.o ---
In file included from MString.cpp:2:
./MString.H:311:19: error: friend declaration specifying a default argument must be a definition
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:315:19: error: friend declaration specifying a default argument must be a definition
friend String Left(const String& s, int n = 1) ;
^
./MString.H:319:19: error: friend declaration specifying a default argument must be a definition
friend String Right(const String& s, int n = 1) ;
^
./MString.H:412:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String, int, int) ;
^
./MString.H:311:19: note: previous declaration is here
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:413:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String&, int) ;
^
./MString.H:315:19: note: previous declaration is here
friend String Left(const String& s, int n = 1) ;
^
./MString.H:414:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String&, int) ;
^
./MString.H:319:19: note: previous declaration is here
friend String Right(const String& s, int n = 1) ;
^
--- glclockmark.o ---
In file included from glclockmark.cpp:2:
In file included from ./glclockmark.H:45:
./MString.H:311:19: error: friend declaration specifying a default argument must be a definition
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:315:19: error: friend declaration specifying a default argument must be a definition
friend String Left(const String& s, int n = 1) ;
^
./MString.H:319:19: error: friend declaration specifying a default argument must be a definition
friend String Right(const String& s, int n = 1) ;
^
--- MString.o ---
MString.cpp:203:12: error: no member named 'Right' in the global namespace; did you mean simply 'Right'?
right = ::Right(*this, rlen) ;
^~~~~~~
Right
./MString.H:318:13: note: 'Right' declared here
String& Right(int n = 1) ;
^
--- glclockmark.o ---
./MString.H:412:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String, int, int) ;
^
./MString.H:311:19: note: previous declaration is here
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:413:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String&, int) ;
^
./MString.H:315:19: note: previous declaration is here
friend String Left(const String& s, int n = 1) ;
^
./MString.H:414:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String&, int) ;
^
./MString.H:319:19: note: previous declaration is here
friend String Right(const String& s, int n = 1) ;
^
--- MString.o ---
MString.cpp:203:27: error: too many arguments to function call, expected at most single argument 'n', have 2 arguments
right = ::Right(*this, rlen) ;
~~~~~~~ ^~~~
./MString.H:318:5: note: 'Right' declared here
String& Right(int n = 1) ;
^
MString.cpp:327:7: error: no member named 'Mid' in the global namespace; did you mean simply 'Mid'?
if (::Mid(*this, start, comment.Length()) == comment)
^~~~~
Mid
./MString.H:310:13: note: 'Mid' declared here
String& Mid(int m, int n = 1) ;
^
MString.cpp:327:27: error: too many arguments to function call, expected at most 2, have 3
if (::Mid(*this, start, comment.Length()) == comment)
~~~~~ ^~~~~~~~~~~~~~~~
./MString.H:310:5: note: 'Mid' declared here
String& Mid(int m, int n = 1) ;
^
MString.cpp:330:19: error: no member named 'Mid' in the global namespace; did you mean simply 'Mid'?
String right = ::Mid(*this, start, Length()) ;
^~~~~
Mid
./MString.H:310:13: note: 'Mid' declared here
String& Mid(int m, int n = 1) ;
^
MString.cpp:330:39: error: too many arguments to function call, expected at most 2, have 3
String right = ::Mid(*this, start, Length()) ;
~~~~~ ^~~~~~~~
./MString.H:310:5: note: 'Mid' declared here
String& Mid(int m, int n = 1) ;
^
MString.cpp:363:7: error: no member named 'Mid' in the global namespace; did you mean simply 'Mid'?
if (::Mid(*this, length, comment.Length()) == comment)
^~~~~
Mid
./MString.H:310:13: note: 'Mid' declared here
String& Mid(int m, int n = 1) ;
^
MString.cpp:363:28: error: too many arguments to function call, expected at most 2, have 3
if (::Mid(*this, length, comment.Length()) == comment)
~~~~~ ^~~~~~~~~~~~~~~~
./MString.H:310:5: note: 'Mid' declared here
String& Mid(int m, int n = 1) ;
^
MString.cpp:382:10: error: no member named 'Left' in the global namespace; did you mean simply 'Left'?
token = ::Left(*this, length) ;
^~~~~~
Left
./MString.H:314:13: note: 'Left' declared here
String& Left(int n = 1) ;
^
--- glclockmark.o ---
glclockmark.cpp:256:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(outstream, buf) ;
^~~
--- MString.o ---
MString.cpp:382:24: error: too many arguments to function call, expected at most single argument 'n', have 2 arguments
token = ::Left(*this, length) ;
~~~~~~ ^~~~~~
./MString.H:314:5: note: 'Left' declared here
String& Left(int n = 1) ;
^
MString.cpp:420:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String s, int m, int n)
^
./MString.H:311:19: note: previous declaration is here
friend String Mid(String s, int m, int n = 1) ;
^
MString.cpp:430:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String& s, int n)
^
./MString.H:315:19: note: previous declaration is here
friend String Left(const String& s, int n = 1) ;
^
MString.cpp:442:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String& s, int n)
^
./MString.H:319:19: note: previous declaration is here
friend String Right(const String& s, int n = 1) ;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** [MString.o] Error code 1
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
--- glclockmark.o ---
1 warning and 6 errors generated.
*** [glclockmark.o] Error code 1
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
--- main.o ---
In file included from main.cpp:2:
In file included from ./glclock.H:52:
In file included from ./GLObject.H:16:
In file included from ./GLextensions.H:20:
./MString.H:311:19: error: friend declaration specifying a default argument must be a definition
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:315:19: error: friend declaration specifying a default argument must be a definition
friend String Left(const String& s, int n = 1) ;
^
./MString.H:319:19: error: friend declaration specifying a default argument must be a definition
friend String Right(const String& s, int n = 1) ;
^
--- GLextensions.o ---
In file included from GLextensions.cpp:2:
In file included from ./GLextensions.H:20:
./MString.H:311:19: error: friend declaration specifying a default argument must be a definition
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:315:19: error: friend declaration specifying a default argument must be a definition
friend String Left(const String& s, int n = 1) ;
^
./MString.H:319:19: error: friend declaration specifying a default argument must be a definition
friend String Right(const String& s, int n = 1) ;
^
--- main.o ---
./MString.H:412:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String, int, int) ;
^
./MString.H:311:19: note: previous declaration is here
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:413:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String&, int) ;
^
./MString.H:315:19: note: previous declaration is here
friend String Left(const String& s, int n = 1) ;
^
./MString.H:414:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String&, int) ;
^
./MString.H:319:19: note: previous declaration is here
friend String Right(const String& s, int n = 1) ;
^
--- GLextensions.o ---
./MString.H:412:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String, int, int) ;
^
./MString.H:311:19: note: previous declaration is here
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:413:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String&, int) ;
^
./MString.H:315:19: note: previous declaration is here
friend String Left(const String& s, int n = 1) ;
^
./MString.H:414:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String&, int) ;
^
./MString.H:319:19: note: previous declaration is here
friend String Right(const String& s, int n = 1) ;
^
--- main.o ---
In file included from main.cpp:2:
In file included from ./glclock.H:52:
In file included from ./GLObject.H:16:
./GLextensions.H:596:9: warning: 'GL_EXT_texture_cube_map' macro redefined
#define GL_EXT_texture_cube_map
^
/usr/local/include/GL/glext.h:8044:9: note: previous definition is here
#define GL_EXT_texture_cube_map 1
^
In file included from main.cpp:2:
In file included from ./glclock.H:52:
In file included from ./GLObject.H:16:
./GLextensions.H:694:9: warning: 'GL_EXT_texture_compression_s3tc' macro redefined
#define GL_EXT_texture_compression_s3tc
^
/usr/local/include/GL/glext.h:8036:9: note: previous definition is here
#define GL_EXT_texture_compression_s3tc 1
^
--- glclock.o ---
In file included from glclock.cpp:2:
In file included from ./glclock.H:52:
In file included from ./GLObject.H:16:
In file included from ./GLextensions.H:20:
./MString.H:311:19: error: friend declaration specifying a default argument must be a definition
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:315:19: error: friend declaration specifying a default argument must be a definition
friend String Left(const String& s, int n = 1) ;
^
./MString.H:319:19: error: friend declaration specifying a default argument must be a definition
friend String Right(const String& s, int n = 1) ;
^
./MString.H:412:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String, int, int) ;
^
./MString.H:311:19: note: previous declaration is here
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:413:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String&, int) ;
^
./MString.H:315:19: note: previous declaration is here
friend String Left(const String& s, int n = 1) ;
^
./MString.H:414:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String&, int) ;
^
./MString.H:319:19: note: previous declaration is here
friend String Right(const String& s, int n = 1) ;
^
--- GLextensions.o ---
In file included from GLextensions.cpp:2:
./GLextensions.H:596:9: warning: 'GL_EXT_texture_cube_map' macro redefined
#define GL_EXT_texture_cube_map
^
/usr/local/include/GL/glext.h:8044:9: note: previous definition is here
#define GL_EXT_texture_cube_map 1
^
In file included from GLextensions.cpp:2:
./GLextensions.H:694:9: warning: 'GL_EXT_texture_compression_s3tc' macro redefined
#define GL_EXT_texture_compression_s3tc
^
/usr/local/include/GL/glext.h:8036:9: note: previous definition is here
#define GL_EXT_texture_compression_s3tc 1
^
--- glclock.o ---
In file included from glclock.cpp:2:
In file included from ./glclock.H:52:
In file included from ./GLObject.H:16:
./GLextensions.H:596:9: warning: 'GL_EXT_texture_cube_map' macro redefined
#define GL_EXT_texture_cube_map
^
/usr/local/include/GL/glext.h:8044:9: note: previous definition is here
#define GL_EXT_texture_cube_map 1
^
In file included from glclock.cpp:2:
In file included from ./glclock.H:52:
In file included from ./GLObject.H:16:
./GLextensions.H:694:9: warning: 'GL_EXT_texture_compression_s3tc' macro redefined
#define GL_EXT_texture_compression_s3tc
^
/usr/local/include/GL/glext.h:8036:9: note: previous definition is here
#define GL_EXT_texture_compression_s3tc 1
^
--- PnmIO.o ---
In file included from PnmIO.cpp:4:
In file included from ./PnmIO.H:5:
./MString.H:311:19: error: friend declaration specifying a default argument must be a definition
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:315:19: error: friend declaration specifying a default argument must be a definition
friend String Left(const String& s, int n = 1) ;
^
./MString.H:319:19: error: friend declaration specifying a default argument must be a definition
friend String Right(const String& s, int n = 1) ;
^
--- GLextensions.o ---
GLextensions.cpp:185:38: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_MultiTextureInterfaceName = CURRENT_NAME_GL_ARB_multitexture ;
^
./GLextensions.H:473:43: note: expanded from macro 'CURRENT_NAME_GL_ARB_multitexture'
#define CURRENT_NAME_GL_ARB_multitexture "GL_ARB_multitexture"
^
GLextensions.cpp:362:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_MultiTextureInterfaceName = CURRENT_NAME_GL_VERSION_multitexture ;
^
./GLextensions.H:472:46: note: expanded from macro 'CURRENT_NAME_GL_VERSION_multitexture'
#define CURRENT_NAME_GL_VERSION_multitexture "OpenGL-1.? Multi-Texture"
^
GLextensions.cpp:400:13: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand]
if (target && GL_TEXTURE0)
^ ~~~~~~~~~~~
GLextensions.cpp:400:13: note: use '&' for a bitwise operation
if (target && GL_TEXTURE0)
^~
&
GLextensions.cpp:400:13: note: remove constant to silence this warning
if (target && GL_TEXTURE0)
~^~~~~~~~~~~~~~
GLextensions.cpp:702:40: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureCubeMapInterfaceName = CURRENT_NAME_GL_ARB_texture_cube_map ;
^
./GLextensions.H:645:46: note: expanded from macro 'CURRENT_NAME_GL_ARB_texture_cube_map'
#define CURRENT_NAME_GL_ARB_texture_cube_map "GL_ARB_texture_cube_map"
^
GLextensions.cpp:705:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TexgenReflectionInterfaceName = CURRENT_NAME_GL_ARB_texture_cube_map ;
^
./GLextensions.H:645:46: note: expanded from macro 'CURRENT_NAME_GL_ARB_texture_cube_map'
#define CURRENT_NAME_GL_ARB_texture_cube_map "GL_ARB_texture_cube_map"
^
--- PnmIO.o ---
./MString.H:412:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String, int, int) ;
^
./MString.H:311:19: note: previous declaration is here
--- GLextensions.o ---
GLextensions.cpp:733:40: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
--- PnmIO.o ---
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:413:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String&, int) ;
^
./MString.H:315:19: note: previous declaration is here
--- GLextensions.o ---
current_TextureCubeMapInterfaceName = CURRENT_NAME_GL_EXT_texture_cube_map ;
^
./GLextensions.H:646:46: note: expanded from macro 'CURRENT_NAME_GL_EXT_texture_cube_map'
#define CURRENT_NAME_GL_EXT_texture_cube_map "GL_EXT_texture_cube_map"
^
--- PnmIO.o ---
friend String Left(const String& s, int n = 1) ;
^
./MString.H:414:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String&, int) ;
^
./MString.H:319:19: note: previous declaration is here
--- GLextensions.o ---
GLextensions.cpp:736:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TexgenReflectionInterfaceName = CURRENT_NAME_GL_EXT_texture_cube_map ;
^
--- PnmIO.o ---
friend String Right(const String& s, int n = 1) ;
^
--- GLextensions.o ---
./GLextensions.H:646:46: note: expanded from macro 'CURRENT_NAME_GL_EXT_texture_cube_map'
#define CURRENT_NAME_GL_EXT_texture_cube_map "GL_EXT_texture_cube_map"
^
GLextensions.cpp:765:42: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TexgenReflectionInterfaceName = CURRENT_NAME_GL_NV_texgen_reflection ;
^
./GLextensions.H:647:46: note: expanded from macro 'CURRENT_NAME_GL_NV_texgen_reflection'
#define CURRENT_NAME_GL_NV_texgen_reflection "GL_NV_texgen_reflection"
^
GLextensions.cpp:832:47: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_SeparateSpecularColorInterfaceName = CURRENT_NAME_GL_ARB_separate_specular_color ;
^
./GLextensions.H:901:54: note: expanded from macro 'CURRENT_NAME_GL_ARB_separate_specular_color'
#define CURRENT_NAME_GL_ARB_separate_specular_color "GL_ARB_separate_specular_color"
^
GLextensions.cpp:859:47: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_SeparateSpecularColorInterfaceName = CURRENT_NAME_GL_EXT_separate_specular_color ;
^
./GLextensions.H:902:54: note: expanded from macro 'CURRENT_NAME_GL_EXT_separate_specular_color'
#define CURRENT_NAME_GL_EXT_separate_specular_color "GL_EXT_separate_specular_color"
^
GLextensions.cpp:893:48: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_SeparateSpecularColorInterfaceName = CURRENT_NAME_GL_VERSION_separate_specular_color ;
^
./GLextensions.H:900:57: note: expanded from macro 'CURRENT_NAME_GL_VERSION_separate_specular_color'
#define CURRENT_NAME_GL_VERSION_separate_specular_color "OpenGL-1.2 Separate Specular Color"
^
GLextensions.cpp:936:50: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureFilterAnisotropicInterfaceName = CURRENT_NAME_GL_EXT_texture_filter_anisotropic ;
^
./GLextensions.H:909:57: note: expanded from macro 'CURRENT_NAME_GL_EXT_texture_filter_anisotropic'
#define CURRENT_NAME_GL_EXT_texture_filter_anisotropic "GL_EXT_texture_filter_anisotropic"
^
GLextensions.cpp:970:51: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureFilterAnisotropicInterfaceName = CURRENT_NAME_GL_VERSION_texture_filter_anisotropic ;
^
./GLextensions.H:908:60: note: expanded from macro 'CURRENT_NAME_GL_VERSION_texture_filter_anisotropic'
#define CURRENT_NAME_GL_VERSION_texture_filter_anisotropic "OpenGL-1.? Texture Filter Anisotropic"
^
GLextensions.cpp:1034:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureObjectInterfaceName = CURRENT_NAME_GL_EXT_texture_object ;
^
./GLextensions.H:786:45: note: expanded from macro 'CURRENT_NAME_GL_EXT_texture_object'
#define CURRENT_NAME_GL_EXT_texture_object "GL_EXT_texture_object"
^
GLextensions.cpp:1061:40: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureObjectInterfaceName = CURRENT_NAME_GL_VERSION_texture_object ;
^
./GLextensions.H:785:48: note: expanded from macro 'CURRENT_NAME_GL_VERSION_texture_object'
#define CURRENT_NAME_GL_VERSION_texture_object "OpenGL-1.1 Texture Object"
^
GLextensions.cpp:1119:39: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_PolygonOffsetInterfaceName = CURRENT_NAME_GL_EXT_polygon_offset ;
^
./GLextensions.H:822:45: note: expanded from macro 'CURRENT_NAME_GL_EXT_polygon_offset'
#define CURRENT_NAME_GL_EXT_polygon_offset "GL_EXT_polygon_offset"
^
GLextensions.cpp:1152:40: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_PolygonOffsetInterfaceName = CURRENT_NAME_GL_VERSION_polygon_offset ;
^
./GLextensions.H:821:48: note: expanded from macro 'CURRENT_NAME_GL_VERSION_polygon_offset'
#define CURRENT_NAME_GL_VERSION_polygon_offset "OpenGL-1.1 Polygon Offset"
^
GLextensions.cpp:1190:48: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureCompressionInterfaceEnumName = CURRENT_NAME_GL_ARB_texture_compression ;
^
./GLextensions.H:684:50: note: expanded from macro 'CURRENT_NAME_GL_ARB_texture_compression'
#define CURRENT_NAME_GL_ARB_texture_compression "GL_ARB_texture_compression"
^
GLextensions.cpp:1222:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureCompressionInterfaceEnumName = CURRENT_NAME_GL_VERSION_texture_compression ;
^
./GLextensions.H:683:53: note: expanded from macro 'CURRENT_NAME_GL_VERSION_texture_compression'
#define CURRENT_NAME_GL_VERSION_texture_compression "OpenGL-1.? Texture Compression"
^
GLextensions.cpp:1262:48: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureCompressionS3TCInterfaceName = CURRENT_NAME_GL_EXT_texture_compression_s3tc ;
^
./GLextensions.H:729:55: note: expanded from macro 'CURRENT_NAME_GL_EXT_texture_compression_s3tc'
#define CURRENT_NAME_GL_EXT_texture_compression_s3tc "GL_EXT_texture_compression_s3tc"
^
GLextensions.cpp:1292:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureCompressionS3TCInterfaceName = CURRENT_NAME_GL_VERSION_texture_compression_s3tc ;
^
./GLextensions.H:728:58: note: expanded from macro 'CURRENT_NAME_GL_VERSION_texture_compression_s3tc'
#define CURRENT_NAME_GL_VERSION_texture_compression_s3tc "OpenGL-1.? Texture Compression S3TC" // ݡȤʤ
^
GLextensions.cpp:1329:48: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureCompressionFXT1InterfaceName = CURRENT_NAME_GL_3DFX_texture_compression_FXT1 ;
^
./GLextensions.H:740:56: note: expanded from macro 'CURRENT_NAME_GL_3DFX_texture_compression_FXT1'
#define CURRENT_NAME_GL_3DFX_texture_compression_FXT1 "GL_3DFX_texture_compression_FXT1"
^
--- main.o ---
2 warnings and 6 errors generated.
--- GLextensions.o ---
GLextensions.cpp:1359:49: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
current_TextureCompressionFXT1InterfaceName = CURRENT_NAME_GL_VERSION_texture_compression_FXT1 ;
^
./GLextensions.H:739:58: note: expanded from macro 'CURRENT_NAME_GL_VERSION_texture_compression_FXT1'
#define CURRENT_NAME_GL_VERSION_texture_compression_FXT1 "OpenGL-1.? Texture Compression S3TC" // ݡȤʤ
^
--- PnmIO.o ---
PnmIO.cpp:271:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(out, "# " + comment + "\n") ;
^~~~~~~~~~~~~~~~~~~~~
PnmIO.cpp:273:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(out, IntToString(timage->width ) + " ") ;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PnmIO.cpp:274:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(out, IntToString(timage->height) + "\n") ;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 6 errors generated.
--- glclock.o ---
glclock.cpp:663:31: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
int ret = fprintf(outstream, log) ;
^~~
glclock.cpp:1182:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (err = gluScaleImage(GL_RGB, src->width, src->height,
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glclock.cpp:1182:10: note: place parentheses around the assignment to silence this warning
if (err = gluScaleImage(GL_RGB, src->width, src->height,
^
glclock.cpp:1182:10: note: use '==' to turn this assignment into an equality comparison
if (err = gluScaleImage(GL_RGB, src->width, src->height,
^
==
--- main.o ---
*** [main.o] Error code 1
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
--- PnmIO.o ---
*** [PnmIO.o] Error code 1
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
--- GLextensions.o ---
25 warnings and 6 errors generated.
*** [GLextensions.o] Error code 1
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
--- glclock.o ---
glclock.cpp:10280:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (err = gluScaleImage(GL_RGB, img[maxLevel - 1]->width, img[maxLevel - 1]->height,
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glclock.cpp:10280:11: note: place parentheses around the assignment to silence this warning
if (err = gluScaleImage(GL_RGB, img[maxLevel - 1]->width, img[maxLevel - 1]->height,
^
glclock.cpp:10280:11: note: use '==' to turn this assignment into an equality comparison
if (err = gluScaleImage(GL_RGB, img[maxLevel - 1]->width, img[maxLevel - 1]->height,
^
==
glclock.cpp:10345:11: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (err = gluBuild2DMipmaps(GL_TEXTURE_2D, tex_internal_format, image->width, image->height, GL_RGB, GL_UNSIGNED_BYTE, image->dataptr))
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glclock.cpp:10345:11: note: place parentheses around the assignment to silence this warning
if (err = gluBuild2DMipmaps(GL_TEXTURE_2D, tex_internal_format, image->width, image->height, GL_RGB, GL_UNSIGNED_BYTE, image->dataptr))
^
( )
glclock.cpp:10345:11: note: use '==' to turn this assignment into an equality comparison
if (err = gluBuild2DMipmaps(GL_TEXTURE_2D, tex_internal_format, image->width, image->height, GL_RGB, GL_UNSIGNED_BYTE, image->dataptr))
^
==
glclock.cpp:10718:10: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (err = gluScaleImage(GL_RGB, (*image)->width, (*image)->height, GL_UNSIGNED_BYTE, (*image)->dataptr, width,height, GL_UNSIGNED_BYTE, s_image->dataptr))
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glclock.cpp:10718:10: note: place parentheses around the assignment to silence this warning
if (err = gluScaleImage(GL_RGB, (*image)->width, (*image)->height, GL_UNSIGNED_BYTE, (*image)->dataptr, width,height, GL_UNSIGNED_BYTE, s_image->dataptr))
^
( )
glclock.cpp:10718:10: note: use '==' to turn this assignment into an equality comparison
if (err = gluScaleImage(GL_RGB, (*image)->width, (*image)->height, GL_UNSIGNED_BYTE, (*image)->dataptr, width,height, GL_UNSIGNED_BYTE, s_image->dataptr))
^
==
glclock.cpp:13809:18: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(fp, fstr) ;
^~~~
--- GLObject.o ---
In file included from GLObject.cpp:2:
In file included from ./GLObject.H:16:
In file included from ./GLextensions.H:20:
./MString.H:311:19: error: friend declaration specifying a default argument must be a definition
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:315:19: error: friend declaration specifying a default argument must be a definition
friend String Left(const String& s, int n = 1) ;
^
./MString.H:319:19: error: friend declaration specifying a default argument must be a definition
friend String Right(const String& s, int n = 1) ;
^
./MString.H:412:8: error: friend declaration specifying a default argument must be the only declaration
String Mid(String, int, int) ;
^
./MString.H:311:19: note: previous declaration is here
friend String Mid(String s, int m, int n = 1) ;
^
./MString.H:413:8: error: friend declaration specifying a default argument must be the only declaration
String Left(const String&, int) ;
^
./MString.H:315:19: note: previous declaration is here
friend String Left(const String& s, int n = 1) ;
^
./MString.H:414:8: error: friend declaration specifying a default argument must be the only declaration
String Right(const String&, int) ;
^
./MString.H:319:19: note: previous declaration is here
friend String Right(const String& s, int n = 1) ;
^
In file included from GLObject.cpp:2:
In file included from ./GLObject.H:16:
./GLextensions.H:596:9: warning: 'GL_EXT_texture_cube_map' macro redefined
#define GL_EXT_texture_cube_map
^
/usr/local/include/GL/glext.h:8044:9: note: previous definition is here
#define GL_EXT_texture_cube_map 1
^
In file included from GLObject.cpp:2:
In file included from ./GLObject.H:16:
./GLextensions.H:694:9: warning: 'GL_EXT_texture_compression_s3tc' macro redefined
#define GL_EXT_texture_compression_s3tc
^
/usr/local/include/GL/glext.h:8036:9: note: previous definition is here
#define GL_EXT_texture_compression_s3tc 1
^
--- glclock.o ---
glclock.cpp:18287:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(fp, String("\n") + AUTHOR + "\n\n") ;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glclock.cpp:18290:16: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(fp, String("\n") + AUTHOR + "\n\n") ;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
glclock.cpp:18292:15: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(fp, glInformationsLog + "\n") ;
^~~~~~~~~~~~~~~~~~~~~~~~
glclock.cpp:18917:12: warning: conversion from string literal to 'char *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
argv[0] = "glclock" ;
^
12 warnings and 6 errors generated.
*** [glclock.o] Error code 1
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
--- GLObject.o ---
2 warnings and 6 errors generated.
*** [GLObject.o] Error code 1
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
7 errors
make[1]: stopped in /magus/work/usr/mports/x11-clocks/glclock/work/glclock-6.0b6.0
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
Stop.
make: stopped in /usr/mports/x11-clocks/glclock