[Pkg-e-devel] Bug#560745: FTBFS: eina_cpu.c:188:4: error: #error "eina_cpu_count() error: Platform not supported"

Cyril Brulebois kibi at debian.org
Fri Dec 11 21:43:50 UTC 2009


Package: eina
Version: 0.9.9.063-1
Severity: serious
Tags: patch
Justification: FTBFS
User: debian-bsd at lists.debian.org
Usertags: kfreebsd

Hi,

on GNU/kFreeBSD, there's a different FTBFS:
| eina_cpu.c:188:4: error: #error "eina_cpu_count() error: Platform not supported"

Please find attached a patch to fix this.

Something different, but on all archs (quick look, but found on some
Linux and some GNU/kFreeBSD):
| Warning: You are trying to link statically one or more modules to Eina.
|          You must know what you are doing, or else you will have a lot of problems.
|          And dolphins will disappear from the earth.
|          Think about that.

Mraw,
KiBi.
-------------- next part --------------
--- a/src/lib/eina_cpu.c
+++ b/src/lib/eina_cpu.c
@@ -30,7 +30,7 @@
 #  include <unistd.h>
 #  include <sys/param.h>
 #  include <sys/sysctl.h>
-# elif defined (__linux__)
+# elif defined (__linux__) || defined(__GLIBC__)
 #  define _GNU_SOURCE
 #  include <sched.h>
 # endif
@@ -164,7 +164,7 @@ EAPI int eina_cpu_count(void)
 
    return cpus;
 
-# elif defined (__linux__)
+# elif defined (__linux__) || defined(__GLIBC__)
    cpu_set_t cpu;
    int i;
    static int cpus = 0;


More information about the Pkg-e-devel mailing list