Bug#626726: bam: FTBFS on kFreeBSD

Gonéri Le Bouder goneri at rulezlan.org
Sat May 14 17:48:20 UTC 2011


Package: bam
Version: 0.4.0-1
Severity: important

Hi, bam 0.4.0-1 FTBFS on kFreeBSD:
gcc -Wall -ansi -pedantic src/tools/txt2c.c `pkg-config --cflags /usr/lib/pkgconfig/lua5.1.pc` -o src/tools/txt2c
src/tools/txt2c src/base.lua src/tools.lua src/driver_gcc.lua src/driver_cl.lua > src/internal_base.h
gcc -Wall -ansi -pedantic src/*.c -o bam `pkg-config --cflags --libs /usr/lib/pkgconfig/lua5.1.pc` -lm -lpthread -ldl -O2 -rdynamic $*
src/main.c: In function 'register_lua_globals':
src/main.c:367:3: warning: implicit declaration of function 'getcwd' [-Wimplicit-function-declaration]
src/path.c: In function 'path_isabs':
src/path.c:184:3: error: #error path_isabs(const char *path) not implemented on this platform
make[1]: *** [override_dh_auto_build] Error 1
make[1]: Leaving directory `/build/buildd-bam_0.4.0-1-kfreebsd-amd64-Kowm5C/bam-0.4.0'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2


Patch:
--- bam-0.4.0.orig/src/platform.h
+++ bam-0.4.0/src/platform.h
@@ -20,7 +20,7 @@
 #endif
 
 /* unix family */
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
        #define BAM_FAMILY_UNIX
        #define BAM_FAMILY_STRING "unix"
        #define BAM_PLATFORM_FREEBSD


Best regards,

     Gonéri

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.2-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash





More information about the Pkg-games-devel mailing list