Bug#470971: aqsis: FTBFS with g++-4.3: Missing includes

2008-05-09 Thread Colin Tuckley
I'm looking at aqsis too as part of my armel porter work.


-- 
Colin Tuckley  |  +44(0)1903 236872  |  PGP/GnuPG Key Id
Debian Developer   |  +44(0)7799 143369  | 0x1B3045CE

Would you tell me, please, which way I ought to go from here? That
depends a good deal on where you want to get to, said the Cat - Lewis Carrol



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#470971: aqsis: FTBFS with g++-4.3: Missing includes

2008-05-07 Thread Peter Eisentraut
tags 470971 + patch
stop

Here is a patch for this issue.

The build later fails in dpkg-shlibdeps, but I figured I'd leave my 
intermediate results here.
diff -u aqsis-1.2.0/debian/changelog aqsis-1.2.0/debian/changelog
--- aqsis-1.2.0/debian/changelog
+++ aqsis-1.2.0/debian/changelog
@@ -1,3 +1,11 @@
+aqsis (1.2.0-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Extended 01_gcc_4.3_fixes.patch to fix more build problems with GCC 4.3 
+(closes: #470971)
+
+ -- Peter Eisentraut [EMAIL PROTECTED]  Wed, 07 May 2008 16:11:52 +0200
+
 aqsis (1.2.0-2) unstable; urgency=low
 
   * Added support for quilt in debian/control and debian/rules.
diff -u aqsis-1.2.0/debian/patches/01_gcc_4.3_fixes.patch aqsis-1.2.0/debian/patches/01_gcc_4.3_fixes.patch
--- aqsis-1.2.0/debian/patches/01_gcc_4.3_fixes.patch
+++ aqsis-1.2.0/debian/patches/01_gcc_4.3_fixes.patch
@@ -1,7 +1,7 @@
 Index: argparse/argparse.cpp
 ===
 argparse/argparse.cpp.orig	2007-05-29 12:37:17.354581279 +0200
-+++ argparse/argparse.cpp	2007-05-29 12:37:27.355269699 +0200
+--- argparse/argparse.cpp.orig	2008-05-07 17:51:57.0 +0200
 argparse/argparse.cpp	2008-05-07 17:52:07.0 +0200
 @@ -17,6 +17,7 @@
   */
  
@@ -12,8 +12,8 @@
  #include functional
 Index: renderer/aqsis/aqsis.cpp
 ===
 renderer/aqsis/aqsis.cpp.orig	2007-05-29 12:37:39.088077145 +0200
-+++ renderer/aqsis/aqsis.cpp	2007-05-29 12:38:11.002272343 +0200
+--- renderer/aqsis/aqsis.cpp.orig	2008-05-07 17:51:57.0 +0200
 renderer/aqsis/aqsis.cpp	2008-05-07 17:52:07.0 +0200
 @@ -36,9 +36,11 @@
  #endif // AQSIS_SYSTEM_WIN32
  #include fcntl.h
@@ -28,9 +28,9 @@
  #include vector
 Index: rib/miqser/miqser.cpp
 ===
 rib/miqser/miqser.cpp.orig	2007-05-29 12:36:46.104429031 +0200
-+++ rib/miqser/miqser.cpp	2007-05-29 12:37:13.246298428 +0200
-@@ -35,10 +35,12 @@
+--- rib/miqser/miqser.cpp.orig	2008-05-07 17:51:57.0 +0200
 rib/miqser/miqser.cpp	2008-05-07 17:52:07.0 +0200
+@@ -35,14 +35,17 @@
  #endif // AQSIS_SYSTEM_WIN32
  #include fcntl.h
  
@@ -43,10 +43,15 @@
  #include string
  #include vector
  #include stdio.h
+ #include time.h
++#include string.h
+ 
+ #ifdef AQSIS_SYSTEM_WIN32
+   #include windows.h
 Index: rib/rib2/bdec.cpp
 ===
 rib/rib2/bdec.cpp.orig	2007-05-29 12:36:25.375000447 +0200
-+++ rib/rib2/bdec.cpp	2007-05-29 12:36:36.531769416 +0200
+--- rib/rib2/bdec.cpp.orig	2008-05-07 17:51:57.0 +0200
 rib/rib2/bdec.cpp	2008-05-07 17:52:07.0 +0200
 @@ -34,6 +34,7 @@
  
  #include logging.h
@@ -57,9 +62,9 @@
  
 Index: shadercompiler/aqsl/aqslcomp.cpp
 ===
 shadercompiler/aqsl/aqslcomp.cpp.orig	2007-05-29 12:38:41.704389152 +0200
-+++ shadercompiler/aqsl/aqslcomp.cpp	2007-05-29 12:39:08.574250903 +0200
-@@ -28,8 +28,10 @@
+--- shadercompiler/aqsl/aqslcomp.cpp.orig	2008-05-07 17:51:57.0 +0200
 shadercompiler/aqsl/aqslcomp.cpp	2008-05-07 17:52:07.0 +0200
+@@ -28,10 +28,13 @@
  #include	logging.h
  #include	logging_streambufs.h
  
@@ -69,11 +74,14 @@
 +#includememory
  #include	sstream
  #include	stdio.h
++#include	string.h
  
+ #ifdef	AQSIS_SYSTEM_WIN32
+ #include	io.h
 Index: shadercompiler/aqsltell/aqsltell.cpp
 ===
 shadercompiler/aqsltell/aqsltell.cpp.orig	2007-05-29 12:39:20.679089142 +0200
-+++ shadercompiler/aqsltell/aqsltell.cpp	2007-05-29 12:39:39.080362840 +0200
+--- shadercompiler/aqsltell/aqsltell.cpp.orig	2008-05-07 17:51:57.0 +0200
 shadercompiler/aqsltell/aqsltell.cpp	2008-05-07 17:52:07.0 +0200
 @@ -40,6 +40,7 @@
  #include slx.h
  #include version.h
@@ -82,10 +90,18 @@
  #include iostream
  #include iomanip
  #include fstream
+@@ -47,6 +48,7 @@
+ #include vector
+ 
+ #include stdio.h
++#include string.h
+ 
+ 
+ namespace Aqsis
 Index: shadercompiler/codegenvm/vmoutput.cpp
 ===
 shadercompiler/codegenvm/vmoutput.cpp.orig	2007-05-29 12:38:14.110486053 +0200
-+++ shadercompiler/codegenvm/vmoutput.cpp	2007-05-29 12:38:29.443540082 +0200
+--- shadercompiler/codegenvm/vmoutput.cpp.orig	2008-05-07 17:51:57.0 +0200
 shadercompiler/codegenvm/vmoutput.cpp	2008-05-07 17:52:07.0 +0200
 @@ -29,6 +29,7 @@
  #include	sstream
  #endif
@@ -99,11 +115,293 @@
 texturing/teqser/teqser.cpp.orig	2007-05-29 12:39:50.841176553 +0200
-+++ texturing/teqser/teqser.cpp	2007-05-29 12:40:50.677312430 +0200
-@@ -3,6 +3,8 @@
+--- texturing/teqser/teqser.cpp.orig	2008-05-07 17:51:57.0 +0200
 texturing/teqser/teqser.cpp	2008-05-07 17:52:07.0 +0200
+@@ -2,7 +2,10 @@
+ //

Bug#470971: aqsis: FTBFS with g++-4.3: Missing includes

2008-03-14 Thread Daniel Schepler
Package: aqsis
Version: 1.2.0-2
Severity: important
User: [EMAIL PROTECTED]
Usertags: ftbfs-gcc-4.3

From my pbuilder build log, with g++ - g++-4.3:

...
g++ -o 
build/renderer/ddmanager/ddmanager.os -c -Wall -g -O2 -fPIC -DPLUGINS=1 
-DNDEBUG=1 -DDEFAULT_RC_PATH=\/etc/aqsis\ 
-DDEFAULT_SHADER_PATH=\/usr/share/aqsis/shaders\ 
-DDEFAULT_PLUGIN_PATH=\/usr/lib/aqsis/plugins\ -DENABLE_MPDUMP=True 
-Iaqsistypes/posix -Ibuild -Ibuild/aqsistypes -Ibuild/renderer/render 
-Ibuild/shadercompiler/shaderexecenv -Ibuild/rib/rib2 
-Ibuild/shadercompiler/shadervm -Ibuild/rib/rib2ri -Ibuild/argparse 
-Ibuild/shadercompiler/slparse -Ibuild/shadercompiler/codegenvm -Ibuild/rib/api 
-I/usr/include/boost 
build/renderer/ddmanager/ddmanager.cpp
In file included from build/renderer/ddmanager/ddmanager.cpp:35:
build/renderer/render/rifile.h: In member function 'void 
Aqsis::CqRiFile::Open(const char*, const char*, std::_Ios_Openmode)':
build/renderer/render/rifile.h:71: warning: comparison with string literal 
results in unspecified behaviour
...
build/renderer/ddmanager/ddmanager.cpp: In member function 'virtual TqInt 
Aqsis::CqDDManager::DisplayBucket(Aqsis::IqBucket*)':
build/renderer/ddmanager/ddmanager.cpp:250: error: 'memcpy' was not declared 
in this scope
build/renderer/ddmanager/ddmanager.cpp: In function 'void 
Aqsis::ConstructMatrixParameter(const char*, const Aqsis::CqMatrix*, TqInt, 
UserParameter)':
build/renderer/ddmanager/ddmanager.cpp:807: error: 'strlen' was not declared 
in this scope
build/renderer/ddmanager/ddmanager.cpp:808: error: 'strcpy' was not declared 
in this scope
...
scons: *** [build/renderer/ddmanager/ddmanager.os] Error 1
scons: building terminated because of errors.
make: *** [build-stamp] Error 2
dpkg-buildpackage: failure: debian/rules build gave error exit status 2
-- 
Daniel Schepler