[Mono-osx] dyld: unknown required load command 0x80000022

Grzegorz Adam Hankiewicz gradha at titanium.sabren.com
Wed Jan 19 03:52:03 EST 2011


El 19/01/2011, a las 05:26, Duane Wandless escribió:
> I'm getting this error on Leopard when trying to run a mkbundled-ed app
> created on Snow Leopard.  Using 2.8.1.
> 
> I've tried adding this to mono.pc:
> 
> Cflags: -I${includedir} -D_THREAD_SAFE -arch i386 -isysroot
> /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5
> -no_compact_linkedit
> Libs: -L${libdir}  -lmono -pthread   -lpthread -lm
> 
> As well as running mkbundle with:
> AS="as -arch i386" CC="cc -arch i386" mkbundle
> 
> Is it possible to run a SL created bundle on Leopard?

Hello.

I've just stumped on this too. You are right up to the mkbundle point, which is explained by Alexander Shulgin on http://go-mono.com/forums/#nabble-td2717076.

Looks like some mistakes prevent mkbundle from working. I've ended up having to wrap everything in a script for compilation to work: http://cobra-language.com/forums/viewtopic.php?f=4&p=3745#p3745

However, since mkbundle is broken, you cannot use the -z feature:

Compiling:
as -arch i386 -o temp.o temp.s 
Undefined symbols:
  "_inflateEnd", referenced from:
      _mono_mkbundle_init in ccJXAqxL.o
  "_inflate", referenced from:
      _mono_mkbundle_init in ccJXAqxL.o
  "_inflateInit_", referenced from:
      _mono_mkbundle_init in ccJXAqxL.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Nor the --static switch, since you have to compile/link yourself. Hopefully this can be fixed soon, it's a pity not being able to produce statically linked binaries with compression for easy redistribution.


More information about the Mono-osx mailing list