Bug#675845: Re: Bug#675845: adanaxisgpl: FTBFS:

Steven Chamberlain steven at pyro.eu.org
Fri Nov 30 03:26:49 UTC 2012


Control: found -1 1.2.5.dfsg.1-4.1
Control: tags -1 + patch

Hi,

On 14:54, Felix Geyer wrote:
> Are you sure that you have built 1.2.5.dfsg.1-4.1 and not
> 1.2.5.dfsg.1-4 since the compiler command line should contain
> "-fpermissive"?

I could reproduce the same build failure in this version with
-fpermissive

The problem is a '#define off_t long', which causes a problem later when
GNU/kFreeBSD headers include <sys/types.h> (again), and try to redefine
off_t for some reason.

That only happens because HAVE_OFF_T isn't being set in config.h.  In
fact it is hard-coded to 0 by default and set to 1 on certain supported
platforms such as Mac OS X (in rubyconfigure.h).

Linux headers presumably don't redefine off_t so it doesn't usually
matter.


With the patch below, then running:

$ aclocal-1.10 && autoheader && autoconf

implements a proper detection for off_t and it builds now on
kfreebsd-amd64.  Also it still builds okay and runs on GNU/Linux amd64.

--- a/configure.in      2007-10-25 21:38:55.000000000 +0100
+++ b/configure.in      2012-11-30 02:01:34.039114307 +0000
@@ -288,6 +288,8 @@
 ])
 ])
 
+AC_CHECK_TYPES([off_t], [], [], [[#include <sys/types.h>]])
+
 LIBS="$LIBS $SDL_EXTRA_LIBS"
 
 AC_OUTPUT(Makefile src/Makefile data-adanaxis/Makefile)


Thank you!
Regards,
-- 
Steven Chamberlain
steven at pyro.eu.org



More information about the Pkg-games-devel mailing list