Freeswitch Build error

If you face problem with building freeswitch and getting errors like below while executing Make command

,/usr/local/freeswitch/lib
./.libs/libfreeswitch.so: undefined reference to `zlibVersion'
./.libs/libfreeswitch.so: undefined reference to `inflate'
./.libs/libfreeswitch.so: undefined reference to `inflateInit2_'
./.libs/libfreeswitch.so: undefined reference to `inflateInit_'
./.libs/libfreeswitch.so: undefined reference to `inflateEnd'
./.libs/libfreeswitch.so: undefined reference to `inflateReset'
collect2: error: ld returned 1 exit status
make[1]: *** [freeswitch] Error 1
make: *** [all] Error 2


you can fix this by Editting the Makefile. you can put -lz in the end of the line and run make again, it will fix it.

The lines should look like this:

freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la \
    $(am__append_15) $(am__append_16) -lz

  
  
P.S : I had this problem with Ubuntu 14.04 and Freeswitch 1.2.23.

No comments:

Post a Comment

Pages