Mock Version: 1.1.32 Mock Version: 1.1.32 ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/amftools.spec'], False, '/var/lib/mock/f21-build-1820731-314918/root/', None, 86400, True, False, 500, 425, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bs --target x86_64 --nodeps builddir/build/SPECS/amftools.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} warning: Could not canonicalize hostname: buildvm-19.phx2.fedoraproject.org Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/amftools-0.0-4.20121220svn32.fc21.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/amftools.spec'], False, '/var/lib/mock/f21-build-1820731-314918/root/', None, 86400, True, False, 500, 425, None, False, {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'}, logger=) Executing command: ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64 --nodeps builddir/build/SPECS/amftools.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOSTNAME': 'mock', 'PROMPT_COMMAND': 'echo -n ""', 'HOME': '/builddir', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin'} Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.YYxoMz + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf amftools + /usr/bin/gzip -dc /builddir/build/SOURCES/amftools-svn32.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd amftools + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /builddir/build/SOURCES/amftools-Makefile Makefile + rm -rf include/muparser src/muparser include/stb_image src/stb_image include/rapidxml include/zip src/zip + sed -i 's|muparser/muParser.h|muParser.h|g' include/Equation.h + sed -i 's|stb_image/stb_image.h|stb_image.h|g' src/SimpleImage.cpp + sed -i 's|rapidxml/||g' include/XmlStream.h src/XmlStream.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ppdgvi + umask 022 + cd /builddir/build/BUILD + cd amftools + make -j5 g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/Amf.cpp -o bin/Amf.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/AMF_File.cpp -o bin/AMF_File.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/Equation.cpp -o bin/Equation.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -DUSE_OPEN_GL -c -fPIC src/Mesh.cpp -o bin/Mesh.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -DUSE_OPEN_GL -c -fPIC src/MeshSlice.cpp -o bin/MeshSlice.o src/MeshSlice.cpp:823:2: warning: multi-line comment [-Wcomment] // |\ ^ src/MeshSlice.cpp:825:2: warning: multi-line comment [-Wcomment] // 3 | \ ^ src/MeshSlice.cpp:829:2: warning: multi-line comment [-Wcomment] // 4 | 5 \ ^ src/AMF_File.cpp:1204:1: warning: "/*" within comment [-Wcomment] /* ^ src/Mesh.cpp: In member function 'bool CMesh::LoadAsciiSTL(std::string)': src/Mesh.cpp:355:6: warning: unused variable 'cnt' [-Wunused-variable] int cnt=0; ^ src/Mesh.cpp: In member function 'void CMesh::Draw(bool)': src/Mesh.cpp:503:9: warning: unused variable 'CurVerts' [-Wunused-variable] Vec3D CurVerts[3]; ^ src/Equation.cpp: In member function 'bool CEquation::CheckParse(std::string*)': src/Equation.cpp:127:10: warning: variable 'result' set but not used [-Wunused-but-set-variable] double result; ^ src/Equation.cpp: In member function 'void CEquation::ScaleVariable(std::string&, const string&, double)': src/Equation.cpp:196:64: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int pos=0; (pos=source.find(SymbVar, pos))!=std::string::npos; /*pos+=rLen*/){ ^ src/Equation.cpp: In member function 'void CEquation::findAndReplace(std::string&, const string&, const string&)': src/Equation.cpp:242:61: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int pos=0; (pos=source.find(find, pos))!=std::string::npos; pos+=rLen){ ^ src/Equation.cpp: In static member function 'static double CEquation::prsm(double, double, double, int)': src/Equation.cpp:320:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] unsigned long int ts1 = *(unsigned int*)&tx; ^ src/Equation.cpp:321:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] unsigned long int ts2 = *(unsigned int*)&ty; ^ src/Equation.cpp:322:46: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] unsigned long int ts3 = *(unsigned int*)&tz; ^ In file included from include/AMF_File.h:17:0, from src/AMF_File.cpp:11: include/MeshTree.h: In destructor 'MeshTreeNode::~MeshTreeNode()': include/MeshTree.h:30:36: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] ~MeshTreeNode(){if (pMesh) delete pMesh;} ^ src/AMF_File.cpp: In member function 'bool AmfFile::ImportX3d(int, int)': src/AMF_File.cpp:485:30: warning: variable 'AIndex' set but not used [-Wunused-but-set-variable] int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^ src/AMF_File.cpp: In member function 'unsigned char* AmfFile::GenerateLayer(double, double, double, Vec3D, int*, int*, bool, std::string*, int)': src/AMF_File.cpp:2526:6: warning: unused variable 'ThisObjID' [-Wunused-variable] int ThisObjID = 0; ^ In file included from include/AMF_File.h:17:0, from src/Amf.cpp:14: include/MeshTree.h: In destructor 'MeshTreeNode::~MeshTreeNode()': include/MeshTree.h:30:36: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] ~MeshTreeNode(){if (pMesh) delete pMesh;} ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -DUSE_OPEN_GL -c -fPIC src/MeshTree.cpp -o bin/MeshTree.o In file included from src/MeshTree.cpp:1:0: include/MeshTree.h: In destructor 'MeshTreeNode::~MeshTreeNode()': include/MeshTree.h:30:36: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] ~MeshTreeNode(){if (pMesh) delete pMesh;} ^ src/MeshTree.cpp: In member function 'void MeshTreeNode::Clear()': src/MeshTree.cpp:60:21: warning: deleting object of polymorphic class type 'CMeshSlice' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor] if (pMesh) {delete pMesh; pMesh=NULL;} ^ src/Amf.cpp: At global scope: src/Amf.cpp:20:29: warning: 'Amf::aInstanceParamD TranslateEnum(InstanceParamD)' defined but not used [-Wunused-function] static Amf::aInstanceParamD TranslateEnum(InstanceParamD ParamIn){switch (ParamIn){case INST_DX: return Amf::aINST_DX; case INST_DY: return Amf::aINST_DY; case INST_DZ: return Amf::aINST_DZ; case INST_RX: return Amf::aINST_RX; case INST_RY: return Amf::aINST_RY; case INST_RZ: return Amf::aINST_RZ; default: return Amf::aINST_DX;}} ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nAmf.cpp -o bin/nAmf.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nColor.cpp -o bin/nColor.o In file included from include/MeshSlice.h:14:0, from include/MeshTree.h:19, from src/MeshTree.cpp:1: include/Mesh.h: In member function 'void MeshTreeNode::AddEdge(CFacet*, int, Vec3D&, Vec3D&)': include/Mesh.h:98:72: warning: 'V2' may be used uninitialized in this function [-Wmaybe-uninitialized] inline CLine& operator=(const CLine& l) { vi[0]=l.vi[0]; vi[1]=l.vi[1]; HasTangent[0]=l.HasTangent[0]; HasTangent[1]=l.HasTangent[1]; vt[0]=l.vt[0]; vt[1]=l.vt[1]; return *this;}; //overload equals ^ src/MeshTree.cpp:270:10: note: 'V2' was declared here int V1, V2; ^ In file included from include/MeshSlice.h:14:0, from include/MeshTree.h:19, from src/MeshTree.cpp:1: include/Mesh.h:98:57: warning: 'V1' may be used uninitialized in this function [-Wmaybe-uninitialized] inline CLine& operator=(const CLine& l) { vi[0]=l.vi[0]; vi[1]=l.vi[1]; HasTangent[0]=l.HasTangent[0]; HasTangent[1]=l.HasTangent[1]; vt[0]=l.vt[0]; vt[1]=l.vt[1]; return *this;}; //overload equals ^ src/MeshTree.cpp:270:6: note: 'V1' was declared here int V1, V2; ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nComposite.cpp -o bin/nComposite.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nConstellation.cpp -o bin/nConstellation.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nCoordinates.cpp -o bin/nCoordinates.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nEdge.cpp -o bin/nEdge.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nInstance.cpp -o bin/nInstance.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nMaterial.cpp -o bin/nMaterial.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nMesh.cpp -o bin/nMesh.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nMetadata.cpp -o bin/nMetadata.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nNormal.cpp -o bin/nNormal.o In file included from include/nTriangle.h:15:0, from include/nVolume.h:17, from include/nMesh.h:16, from include/nObject.h:16, from include/nAmf.h:17, from include/AMF_File.h:15, from src/AMF_File.cpp:11: include/nTexmap.h: In member function 'bool AmfFile::ImportX3d(int, int)': include/nTexmap.h:25:195: warning: 'BIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] nTexmap(int RTexIdIn, int GTexIdIn, int BTexIdIn, double U1In, double U2In, double U3In, double V1In, double V2In, double V3In) {Clear(); RTexID = RTexIdIn; GTexID = GTexIdIn; BTexID = BTexIdIn; uTex1 = U1In; uTex2 = U2In; uTex3 = U3In; vTex1 = V1In; vTex2 = V2In; vTex3 = V3In;} ^ src/AMF_File.cpp:485:22: note: 'BIndex' was declared here int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^ In file included from include/nTriangle.h:15:0, from include/nVolume.h:17, from include/nMesh.h:16, from include/nObject.h:16, from include/nAmf.h:17, from include/AMF_File.h:15, from src/AMF_File.cpp:11: include/nTexmap.h:25:176: warning: 'GIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] nTexmap(int RTexIdIn, int GTexIdIn, int BTexIdIn, double U1In, double U2In, double U3In, double V1In, double V2In, double V3In) {Clear(); RTexID = RTexIdIn; GTexID = GTexIdIn; BTexID = BTexIdIn; uTex1 = U1In; uTex2 = U2In; uTex3 = U3In; vTex1 = V1In; vTex2 = V2In; vTex3 = V3In;} ^ src/AMF_File.cpp:485:14: note: 'GIndex' was declared here int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^ In file included from include/nTriangle.h:15:0, from include/nVolume.h:17, from include/nMesh.h:16, from include/nObject.h:16, from include/nAmf.h:17, from include/AMF_File.h:15, from src/AMF_File.cpp:11: include/nTexmap.h:25:157: warning: 'RIndex' may be used uninitialized in this function [-Wmaybe-uninitialized] nTexmap(int RTexIdIn, int GTexIdIn, int BTexIdIn, double U1In, double U2In, double U3In, double V1In, double V2In, double V3In) {Clear(); RTexID = RTexIdIn; GTexID = GTexIdIn; BTexID = BTexIdIn; uTex1 = U1In; uTex2 = U2In; uTex3 = U3In; vTex1 = V1In; vTex2 = V2In; vTex3 = V3In;} ^ src/AMF_File.cpp:485:6: note: 'RIndex' was declared here int RIndex, GIndex, BIndex, AIndex; //AMF texture ID's, to be set as we add textures ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nObject.cpp -o bin/nObject.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nTexmap.cpp -o bin/nTexmap.o src/nMaterial.cpp: In member function 'int nMaterial::AddCompositeInstance(int, std::string, std::string*)': src/nMaterial.cpp:221:18: warning: statement has no effect [-Wunused-value] if (aID == 0) -1; //protect the void material ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nTexture.cpp -o bin/nTexture.o src/nObject.cpp: In member function 'bool nObject::GetBounds(double*, double*, double*, double*, double*, double*, int)': src/nObject.cpp:207:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nTriangle.cpp -o bin/nTriangle.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nVertex.cpp -o bin/nVertex.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nVertices.cpp -o bin/nVertices.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/nVolume.cpp -o bin/nVolume.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/SimpleImage.cpp -o bin/SimpleImage.o src/SimpleImage.cpp: In member function 'void CSimpleImage::ToRgba()': src/SimpleImage.cpp:190:17: warning: unused variable 'pBwIterator' [-Wunused-variable] unsigned char* pBwIterator = pBackup; ^ g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/STL_File.cpp -o bin/STL_File.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/XmlCompress.cpp -o bin/XmlCompress.o g++ -O2 -g -pipe -Wall -Iinclude -DLINUX -c -fPIC src/XmlStream.cpp -o bin/XmlStream.o src/XmlCompress.cpp: In function 'bool GetCompressedFiles(std::string, std::vector >*, std::vector >*, std::string*)': src/XmlCompress.cpp:152:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (uint i=0; i