[Freeswitch-users] Make error on Scientific Linux 6.1

Cliff Wells cliff at develix.com
Sun Oct 23 22:27:40 MSD 2011


On Sun, 2011-10-23 at 09:50 -0700, curriegrad2004 wrote:
> Reverting back to SL 6.0 compiled without an issue. Was it nss that
> was giving the problems?

Actually, I think you are right.  I realized that all the modules are
compiling fine, it's the final linking stage of libfreeswitch.la that is
failing.  The actual error had occurred far back in my scroll buffer:

make "OUR_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /usr/local/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-all ; done )"; echo $mods )" "OUR_CLEAN_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /usr/local/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-clean ; done )"; echo $mods )" "OUR_INSTALL_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /usr/local/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-install ; done)"; echo $mods )" "OUR_UNINSTALL_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /usr/local/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-uninstall ; done)"; echo $mods )" "OUR_DISABLED_MODULES=$(tmp_mods="$(grep "#" /usr/local/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-all ; done )"; echo $mods )" "OUR_DISABLED_CLEAN_MODULES=$(tmp_mods="$(grep "#" /usr/local/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )";  mods="$(for i in $tmp_mods ; do echo $i-clean ; done )"; echo $mods )" "OUR_DISABLED_INSTALL_MODULES=$(tmp_mods="$(grep "#" /usr/local/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-install ; done)"; echo $mods )" "OUR_DISABLED_UNINSTALL_MODULES=$(tmp_mods="$(grep "#" /usr/local/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-uninstall ; done)"; echo $mods )" `test -n "" || echo -s` all-recursive
Making all in .
quiet_libtool: link: gcc -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -Wall -std=c99 -pedantic -Wdeclaration-after-statement -g -O2 -pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/local/src/freeswitch/libs/apr/include -I/usr/local/src/freeswitch/libs/apr-util/include -I/usr/local/src/freeswitch/libs/apr-util/xml/expat/lib -I/usr/local/src/freeswitch/libs/stfu -I/usr/local/src/freeswitch/libs/sqlite -I/usr/local/src/freeswitch/libs/pcre -I/usr/local/src/freeswitch/libs/speex/include -Ilibs/speex/include -I/usr/local/src/freeswitch/libs/srtp/include -I/usr/local/src/freeswitch/libs/srtp/crypto/include -Ilibs/srtp/crypto/include -I/usr/local/src/freeswitch/libs/spandsp/src -I/usr/local/src/freeswitch/libs/tiff-3.8.2/libtiff -DENABLE_SRTP -DSWITCH_HAVE_ODBC -I/usr/include -I/usr/local/src/freeswitch/libs/libedit/src -DSWITCH_HAVE_LIBEDIT -Ilibs/libedit/src -DSWITCH_HAVE_LIBEDIT -g -O2 -o .libs/freeswitch freeswitch-switch.o  -lm ./.libs/libfreeswitch.so -L/usr/local/src/freeswitch/libs/apr-util/xml/expat/lib -L/usr/lib6464 /usr/local/src/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/local/src/freeswitch/libs/apr/.libs/libapr-1.a -lpq libs/apr/.libs/libapr-1.a -lrt -lcrypt -lpthread libs/libedit/src/.libs/libedit.a -lssl -lcrypto -ldl -lz -lncurses -pthread -Wl,-rpath -Wl,/usr/local/freeswitch/lib
/usr/lib64/libnss3.so: undefined reference to `PR_FindSymbol'
/usr/lib64/libnss3.so: undefined reference to `PR_RWLock_Rlock'
/usr/lib64/libssl3.so: undefined reference to `PR_OpenAnonFileMap'
/usr/lib64/libssl3.so: undefined reference to `PR_UnloadLibrary'
/usr/lib64/libnss3.so: undefined reference to `PL_InitArenaPool'
/usr/lib64/libnss3.so: undefined reference to `PR_NewRWLock'
/usr/lib64/libnss3.so: undefined reference to `PR_RWLock_Wlock'
/usr/lib64/libnss3.so: undefined reference to `PR_LoadLibrary'
/lib64/libldap_r-2.4.so.2: undefined reference to `PR_GetEnv'
/usr/lib64/libssl3.so: undefined reference to `PR_LoadLibraryWithFlags'
/usr/lib64/libnssutil3.so: undefined reference to `PL_ClearArenaPool'
/usr/lib64/libnss3.so: undefined reference to `PR_DestroyRWLock'
/usr/lib64/libnss3.so: undefined reference to `PR_NewTCPSocket'
/lib64/libldap_r-2.4.so.2: undefined reference to `PR_SetEnv'
/lib64/libldap_r-2.4.so.2: undefined reference to `PR_GetLibraryName'
/usr/lib64/libssl3.so: undefined reference to `PR_ExportFileMapAsString'
/usr/lib64/libssl3.so: undefined reference to `PR_GetLibraryFilePathname'
/usr/lib64/libssl3.so: undefined reference to `PR_FindFunctionSymbol'
/usr/lib64/libnss3.so: undefined reference to `PL_NewHashTable'
/lib64/libldap_r-2.4.so.2: undefined reference to `PR_ErrorToString'
/usr/lib64/libnss3.so: undefined reference to `PR_RWLock_Unlock'
/usr/lib64/libssl3.so: undefined reference to `PR_ImportFileMapFromString'
/lib64/libldap_r-2.4.so.2: undefined reference to `PR_GetDirectorySeparator'
collect2: ld returned 1 exit status
make[2]: *** [freeswitch] Error 1
Making all in src
Making all in mod


I'm still a bit baffled as to how one SL6.1 box compiles fine and this one does not.

Cliff


> On Sun, Oct 23, 2011 at 9:46 AM, Abdul Basit <basit.engg at gmail.com> wrote:
> > Cliff,
> > I faced the same issue. Please see your gcc version. Install gcc < 4.5
> > because they have changed something regarding paths.
> > while using FS version 1.0.6 i faced switch.h problem and on git HEAD i
> > faced the same problem as yours.
> > I installed gcc-4.4 and compilation worked well. Also did you follow
> > ./bootstrap.sh and ./configure ?
> > --
> > regards,
> > Abdul Basit
> >
> >
> >
> > On Sun, Oct 23, 2011 at 9:29 PM, Madovsky <infos at madovsky.org> wrote:
> >>
> >> did you try sh boostrap.sh before compile ?
> >>
> >> ----- Original Message -----
> >> From: "Cliff Wells" <cliff at develix.com>
> >> To: <freeswitch-users at lists.freeswitch.org>
> >> Sent: Sunday, October 23, 2011 12:25 PM
> >> Subject: [Freeswitch-users] Make error on Scientific Linux 6.1
> >>
> >>
> >> > I've compiled FS on SL6.1 previously without issue.  I'm wondering how I
> >> > can get more informative output so I can figure out if I'm missing a
> >> > dependency, have a conflicting library installed, or whatever:
> >> >
> >> > Compiling ../../../../libs/xmlrpc-c/lib/expat/xmltok/xmltok.c...
> >> > Compiling
> >> > /usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c...
> >> > quiet_libtool: compile:
> >> >  gcc -w -I../../../../libs/xmlrpc-c/lib/expat/xmlparse
> >> > -I../../../../libs/xmlrpc-c/lib/expat/xmltok
> >> >  -I../../../../libs/xmlrpc-c -I../../../../libs/xmlrpc-c/include
> >> > -I../../../../libs/xmlrpc-c/lib/abyss/src
> >> >  -I../../../../libs/xmlrpc-c/lib/util/include -D_THREAD -D__EXTENSIONS__
> >> > -I/usr/local/src/freeswitch/src/include
> >> >  -I/usr/local/src/freeswitch/src/include
> >> > -I/usr/local/src/freeswitch/libs/libteletone/src
> >> >  -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1
> >> > -DHAVE_VISIBILITY=1
> >> >  -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic
> >> > -Wdeclaration-after-statement
> >> >  -D_GNU_SOURCE -DHAVE_CONFIG_H -c
> >> > /usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c
> >> >  -fPIC
> >> >  -DPIC -o .libs/mod_xml_rpc.o
> >> > quiet_libtool: compile:
> >> >  gcc -w -I../../../../libs/xmlrpc-c/lib/expat/xmlparse
> >> > -I../../../../libs/xmlrpc-c/lib/expat/xmltok
> >> >  -I../../../../libs/xmlrpc-c -I../../../../libs/xmlrpc-c/include
> >> > -I../../../../libs/xmlrpc-c/lib/abyss/src
> >> >  -I../../../../libs/xmlrpc-c/lib/util/include -D_THREAD -D__EXTENSIONS__
> >> > -I/usr/local/src/freeswitch/src/include
> >> >  -I/usr/local/src/freeswitch/src/include
> >> > -I/usr/local/src/freeswitch/libs/libteletone/src
> >> >  -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1
> >> > -DHAVE_VISIBILITY=1
> >> >  -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic
> >> > -Wdeclaration-after-statement
> >> >  -D_GNU_SOURCE -DHAVE_CONFIG_H -c
> >> > /usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc/mod_xml_rpc.c -o
> >> > mod_xml_rpc.o >/dev/null 2>&1
> >> > Creating mod_xml_rpc.la...
> >> > make[6]: Leaving directory
> >> > `/usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc'
> >> > make[5]: Leaving directory
> >> > `/usr/local/src/freeswitch/src/mod/xml_int/mod_xml_rpc'
> >> > make[4]: Leaving directory `/usr/local/src/freeswitch/src/mod'
> >> > make[3]: Leaving directory `/usr/local/src/freeswitch/src'
> >> > make[2]: *** [all-recursive] Error 1
> >> > make[2]: Leaving directory `/usr/local/src/freeswitch'
> >> > make[1]: *** [all] Error 2
> >> > make[1]: Leaving directory `/usr/local/src/freeswitch'
> >> > make: *** [current] Error 2
> >> >
> >> > Thanks for any suggestions.
> >> >
> >> > Cliff
> >> >
> >> >
> >> >
> >> >
> >> > FreeSWITCH-users mailing list
> >> > FreeSWITCH-users at lists.freeswitch.org
> >> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> >> > http://www.freeswitch.org
> >>
> >>
> >>
> >> FreeSWITCH-users mailing list
> >> FreeSWITCH-users at lists.freeswitch.org
> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> >> http://www.freeswitch.org
> >
> >
> >
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
> >
> 
> 
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org





Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list