"make" stop with error during installation of ejabberd on Sarge

Hi,

I have done an ejabberd install on my old PC which has a Debian Testing
I have installed :
erlang from apt-get => no pb
ejabberd from svn repository (to be abble to use the lastest httpbind developed by mabber team I think)
For this installation, all is ok now, ejabberd works fine.

Today, I wanted to do the same thing on the server dedibox that I share with a friend (this server run on Debian Sarge)

the "apt-get install erlang" did not work, because Erlang do not belong to Sarge packages (I guess).

I went to /etc/apt/sources.list and I add url for using etch official packages => (this probably my first mistake..?)

So, after that I did : "apt-get install erlang". ok, it worked, even if I was not very selfconfident to see the different services that it proposed me to restart (apache2, ssh...)

So I began ejabberd install :
- checkout on repository svn => ok
- in ejabberd/src , I did "./configure --disable-tls" (for now, I do not need ssl) => ok
- then "make"
Here we are... I got the following error:
Code:

/usr/src/ejabberd/src$ make
gcc -Wall -g -O2 \
expat_erl.c \
-lexpat \
-L/usr/lib/erlang/lib/erl_interface-3.5.5.2/lib -lerl_interface -lei -I/usr/lib/erlang/lib/erl_interface-3.5.5.2/include -I/usr/lib/erlang/usr/include \
-o expat_erl.so -fpic -shared
expat_erl.c: In function `ei_x_encode_string_len_fixed':
expat_erl.c:81: warning: implicit declaration of function `x_fix_buff'
/usr/lib/erlang/lib/erl_interface-3.5.5.2/lib/libei.a(ei_x_encode.o)(.text.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx':
: multiple definition of `__i686.get_pc_thunk.bx'
/usr/lib/gcc-lib/i486-linux/3.3.5/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [expat_erl.so] Error 1

could someone help me, please ?

As you can see, I am a beginner in linux...

thanks a lot in advance

luc

[solved] Thanks to

[solved]
Thanks to Elghinn

It was due to a conflict between Sarge and Etch packages.

Solved by upgrading the following package to Etch with this command :
apt-get install binutils gcc-3.3

luc

Syndicate content