[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#326844: robotour: FTBFS: Missing Build-Depends on 'xlibmesa-gl-dev, libglu1-xorg-dev'



Package: robotour
Version: 3.1.1-2
Severity: serious
Tags: patch

When building 'robotour' in a clean 'unstable' chroot,
I get the following error:

checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for libRT
make: *** [build-stamp] Error 1

Please add the missing Build-Depends on 'xlibmesa-gl-dev, libglu1-xorg-dev'
to debian/control.

The attached patch also fixes some casts from pointers to (int) which
do not work on 64-bit architectures.

Regards
Andreas Jochens

diff -urN ../tmp-orig/robotour-3.1.1/debian/control ./debian/control
--- ../tmp-orig/robotour-3.1.1/debian/control	2005-09-06 05:59:26.000000000 +0000
+++ ./debian/control	2005-09-06 05:59:20.000000000 +0000
@@ -2,7 +2,7 @@
 Section: games
 Priority: optional
 Maintainer: Debian QA Group <packages@qa.debian.org>
-Build-Depends: debhelper (>= 4), libwxgtk2.4-dev
+Build-Depends: debhelper, libwxgtk2.4-dev, xlibmesa-gl-dev, libglu1-xorg-dev
 Standards-Version: 3.6.2
 
 Package: robotour
diff -urN ../tmp-orig/robotour-3.1.1/robotour/robvis.cpp ./robotour/robvis.cpp
--- ../tmp-orig/robotour-3.1.1/robotour/robvis.cpp	2004-09-02 17:11:16.000000000 +0000
+++ ./robotour/robvis.cpp	2005-09-06 05:50:39.000000000 +0000
@@ -315,7 +315,7 @@
 			// Simulation.find(bot);
 			for(List<Bot*>::Node* n = curSim->bots.first(); n; n = n->getNext())
 			{
-				if(di.botID == (int)n->accessElement()) // here it is
+				if(di.botID == (long)n->accessElement()) // here it is
 				{
 					if(di.updateFrom(n->accessElement(), true)) // data has changed
 					{
@@ -396,7 +396,7 @@
 	// debugInfo.find(affectedBot);
 	for(Map<int,DebugInfo>::Iterator iter = debugInfo.begin(); iter.hasElement();)
 	{
-		if(iter.get().getValue().botID == (int)affectedBot)
+		if(iter.get().getValue().botID == (long)affectedBot)
 		{
 			DebugInfo& di = iter.get().getValue();
 			di.alive = false;
diff -urN ../tmp-orig/robotour-3.1.1/robotour/robwxstruct.cpp ./robotour/robwxstruct.cpp
--- ../tmp-orig/robotour-3.1.1/robotour/robwxstruct.cpp	2004-09-02 17:11:16.000000000 +0000
+++ ./robotour/robwxstruct.cpp	2005-09-06 05:51:58.000000000 +0000
@@ -115,13 +115,13 @@
 
 bool DebugInfo::BankInfo::updateFrom(Bank* bank)
 {
-	if(id == (int)bank) {
+	if(id == (long)bank) {
 		hasChanged = false;
 		return hasChanged; // already up-to-date
 	}
 	
 	hasChanged = true;
-	id = (int)bank;
+	id = (long)bank;
 	owner = bank->owner->programNum;
 
 	if(bank->isSecret)
@@ -176,7 +176,7 @@
 	bool hasChanged = false; // the return value
 	
 	ASSIGN_CHECK_CHANGE(this->alive, alive);
-	ASSIGN_CHECK_CHANGE(botID, (int)bot);
+	ASSIGN_CHECK_CHANGE(botID, (long)bot);
 	botInfo = BotInfo(bot);
 	programName = bot->owner->headers["name"].value;
 



Reply to: