R9C-0 shared libraries don't work on OS X

Bjorn Gustavsson <>
Tue Aug 26 10:17:03 CEST 2003


We hope to soon have daily builds (including running the
entire test suite) running on Mac OS X.

I did some attempts fixing the ASN1 problem at my Mac at home,
but without the test suites all I could was some random manual
testing and it seems that I got it wrong. In one of the snapshots,
including the -lbundle1.o flag did seem to fix the problem.

/Bjorn

Sean Hinde <> writes:

> Hi,
> 
> In R9C-0 the shared library for asn1  doesn't run on OS X (it crashes
> the emulator). The following patch fixes the issue in line with the
> guidelines in the top level README. As this changes configure.in it is
> obviously necessary to run autoconf in the erts directory after
> applying the patch.
> 
> Regs,
> Sean
> 
> --- otp_src_R9C-0.orig/erts/configure.in        Tue Aug  5 14:36:25 2003
> +++ otp_src_R9C-0/erts/configure.in     Mon Aug 25 10:14:39 2003
> @@ -1035,7 +1035,8 @@
>                  darwin*)
>                          # Mach-O linker: a shared lib and a loadable
>                          # object file is not the same thing.
> -                       DED_LDFLAGS="-bundle -flat_namespace
> -undefined suppress -lbundle1.o"
> +                       DED_LD="$CC"
> +                       DED_LDFLAGS="-bundle -flat_namespace
> -undefined suppress"
>                          DED_CFLAGS="$DED_CFLAGS -fno-common"
>                  ;;
>                  *)
> 

-- 
Björn Gustavsson            Ericsson Utvecklings AB
      ÄT2/UAB/F/P
			    BOX 1505
+46 8 727 56 87 	    125 25 Älvsjö



More information about the erlang-questions mailing list