Cannot compile Erlang R13B04 and libxml2 as 32-bit...

Digital_Mirage

Registered
I downloaded the latest and greatest Erlang virtual machine. R13B04. I went on to configure and compile it:
Code:
./configure && make
No luck!
Code:
ld: in /opt/local/lib/libxml2.2.dylib, file is not of required architecture
collect2: ld returned 1 exit status
make[3]: *** [../priv/i386-apple-darwin10.3.0/wxe_driver.so] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [libs] Error 2

It would seem that when I had libxml2 installed, it didn't build against i386? And yes, I have a 32-bit Mac OS X :) .

Oh well, just download libxml2, recompile for 32-bit OS and install... but I can't for some reason. Odd, isn't it? This should have worked without a hitch. This is what I did in the area where the source code and the configure script is:
Code:
% ./configure --build="i386-apple-darwin10.3.0" --host="i386-apple-darwin10.3.0" && make
It built just fine. Now, if I look at one of the files:
Code:
% file testRelax.o
testRelax.o: Mach-O 64-bit object x86_64
How else can I specify 32-bit compilation?

Confused and frustrated.
 
Back
Top