[Mono-list] OE Build : error configure failed to discover size of unix socket path

Gonzalo Paniagua Javier gonzalo.mono at gmail.com
Wed Jun 10 11:55:57 EDT 2009


Try compiling and running the following:
-------
#include <sys/types.h>
#include <stdio.h>
#include <sys/un.h>

int
main(void) {
  struct sockaddr_un sock_un;
  FILE *f=fopen("conftestval", "w");
  if(!f) exit(1);
  fprintf(f, "%d\n", sizeof(sock_un.sun_path));
  exit(0);
}
-------

If it can't be compiled or the output is 0, that's the cause of the
#error you are seeing.

-Gonzalo

On Wed, 2009-06-10 at 15:15 +0800, 刘芳华 wrote:
> 
> Hi!
>  
>    I met a error while I build:
>  
> /mono/io-layer/wapi-private.h:22:2: error: #error configure failed to discover size of unix socket path
> | make[3]: *** [collection.lo] Error 1
> | make[3]: Leaving directory `/home/build/stuff/workspace/work/i586-ThunderST-linux/mono-2.4-r0/mono-2.4/mono/io-layer'
> | make[2]: *** [all-recursive] Error 1
> | make[2]: Leaving directory `/home/build/stuff/workspace/work/i586-ThunderST-linux/mono-2.4-r0/mono-2.4/mono'
> | make[1]: *** [all-recursive] Error 1
> | make[1]: Leaving directory `/home/build/stuff/workspace/work/i586-ThunderST-linux/mono-2.4-r0/mono-2.4'
> | make: *** [all] Error 2
> | FATAL: oe_runmake failed
> NOTE: Task failed: /home/build/stuff/workspace/work/i586-ThunderST-linux/mono-2.4-r0/temp/log.do_compile.10880
> NOTE: package mono-2.4-r0: task do_compile: failed
> ERROR: TaskFailed event exception, aborting
> NOTE: package mono-2.4: failed
> ERROR: Build of /home/build/stuff/openembe
>  dded/packages/mono/mono_2.4.bb do_compile failed
> ERROR: Task 9 (/home/build/stuff/openembedded/packages/mono/mono_2.4.bb, do_compile) failed
> NOTE: Tasks Summary: Attempted 7 tasks of which 0 didn't need to be rerun and 1 failed.
> ERROR: '/home/build/stuff/openembedded/packages/mono/mono_2.4.bb' failed
> NOTE: build 200906101437: completed
>  
> Any advice will be appreciated!
> 
> 
> ______________________________________________________________________
> 把MSN装进手机,更多聊天乐趣等你挖掘! 立刻下载!
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list