ejabberd make Fails on Mac 10.3.9

Mac OS 10.3.9
Installed Erlang from source
Installed libexpat from source
Downloaded and configured ejabberd-1.0.0

Received this error when trying to make ejabberd and have no idea what to do.

Can anyone help?

urc2y2yg:/sw/src/ejabberd-1.0.0/src $ make
gcc -Wall -g -O2 \
expat_erl.c \
-lexpat \
-L/usr/local/lib/erlang/lib/erl_interface-3.5.4/lib -lerl_interface -lei -I/usr/local/lib/erlang/lib/erl_interface-3.5.4/include -I/usr/local/lib/erlang/usr/include \
-o expat_erl.so -fpic -shared
gcc: unrecognized option `-shared'
cc1: warning: -fpic is not supported; -fPIC assumed
expat_erl.c: In function `ei_x_encode_string_len_fixed':
expat_erl.c:81: warning: implicit declaration of function `x_fix_buff'
ld: Undefined symbols:
_main
_driver_alloc
_driver_alloc_binary
_driver_free
_set_port_control_flags
make: *** [expat_erl.so] Error 1
urc2y2yg:/sw/src/ejabberd-1.0.0/src $

Install with Fink

My install via Fink Commander worked well on a 10.4.4 OSX Server. I think all the hard work has been done.

--
George Bray
Canberra, Australia

Re: Install with Fink

geo wrote:

My install via Fink Commander worked well on a 10.4.4 OSX Server. I think all the hard work has been done.

Yes, there are some changes needed in the Makefile and/or configure script of ejabberd. If you apply the patch that is accompanied with the Fink package, it should compile without problems.

Post the Patch Here?

Unfortunately, I'm getting the same error when I compile under 10.2.8. There is no Fink package for ejabberd available for me, so I would appreciate it if you could post the patch here (or work it into the source distro).

Re: Post the Patch Here?

ScottAG wrote:

There is no Fink package for ejabberd available for me, so I would appreciate it if you could post the patch here (or work it into the source distro).

Look at the URL in this bug entry.

Syndicate content