<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] New install 1.2.Stable blows up compiling mod_perl.so</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>If you installed on a centos base install then follow the directions on the wiki at <BR>
<a href="http://wiki.freeswitch.org/wiki/Installation_Guide#CentOS">http://wiki.freeswitch.org/wiki/Installation_Guide#CentOS</a><BR>
<BR>
That usually avoids all these errors... &nbsp;I usually do something like <BR>
<BR>
&nbsp;yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel pkgconfig unixODBC-devel openssl-devel libogg-devel libvorbis-devel curl-devel libtiff-devel libjpeg-devel python-devel expat-devel zlib zlib-devel bzip2 which<BR>
<BR>
You may of course need to add a few extra RPMs if you are compiling things that you have to uncomment in modules.conf<BR>
<BR>
&nbsp;<BR>
<BR>
<BR>
<BR>
On 12/18/12 4:23 PM, &quot;Sean Devoy&quot; &lt;<a href="sdevoy@bizfocused.com">sdevoy@bizfocused.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT COLOR="#1F497D"><FONT FACE="Calibri, Verdana, Helvetica, Arial">Thank you!<BR>
That resulted in a message saying I needed to install bison, so I ran yum install bison.<BR>
&nbsp;<BR>
That resulted in shit though:<BR>
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I. -I../mpglib -I.. -Wall -pipe -g -O2 -MT mpglib_interface.lo -MD -MP -MF .deps/mpglib_interface.Tpo -c mpglib_interface.c &nbsp;-fPIC -DPIC -o mpglib_interface.o<BR>
&nbsp;gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I. -I../mpglib -I.. -Wall -pipe -g -O2 -MT mpglib_interface.lo -MD -MP -MF .deps/mpglib_interface.Tpo -c mpglib_interface.c &nbsp;-fPIC -DPIC -o mpglib_interface.o<BR>
libtool: link: `VbrTag.lo' is not a valid libtool object<BR>
make[9]: *** [libmp3lame.la] Error 1<BR>
make[8]: *** [all-recursive] Error 1<BR>
Making all in frontend<BR>
libtool: link: `VbrTag.lo' is not a valid libtool object<BR>
make[9]: *** [libmp3lame.la] Error 1<BR>
make[8]: *** [all-recursive] Error 1<BR>
Making all in frontend<BR>
make[8]: *** No rule to make target `../libmp3lame/libmp3lame.la', needed by `lame'. &nbsp;Stop.<BR>
Making all in Dll<BR>
Making all in debian<BR>
Making all in doc<BR>
Making all in html<BR>
Making all in man<BR>
Making all in include<BR>
Making all in misc<BR>
Making all in dshow<BR>
Making all in ACM<BR>
Making all in ADbg<BR>
Making all in ddk<BR>
make[8]: *** No rule to make target `../libmp3lame/libmp3lame.la', needed by `lame'. &nbsp;Stop.<BR>
Making all in Dll<BR>
Making all in tinyxml<BR>
Making all in debian<BR>
Making all in doc<BR>
Making all in mac<BR>
Making all in macosx<BR>
Making all in html<BR>
Making all in man<BR>
Making all in English.lproj<BR>
Making all in include<BR>
Making all in LAME.xcodeproj<BR>
Making all in misc<BR>
Making all in dshow<BR>
Making all in vc_solution<BR>
Making all in ACM<BR>
make[7]: *** [all-recursive] Error 1<BR>
make[6]: *** [all] Error 2<BR>
make[5]: *** [/usr/local/src/freeswitch/libs/lame-3.98.4/libmp3lame/libmp3lame.la] Error 2<BR>
make[4]: *** [install] Error 1<BR>
make[3]: *** [mod_shout-install] Error 1<BR>
Making all in ADbg<BR>
Making all in ddk<BR>
Making all in tinyxml<BR>
Making all in mac<BR>
Making all in macosx<BR>
Making all in English.lproj<BR>
Making all in LAME.xcodeproj<BR>
Making all in vc_solution<BR>
make[7]: *** [all-recursive] Error 1<BR>
make[6]: *** [all] Error 2<BR>
make[5]: *** [/usr/local/src/freeswitch/libs/lame-3.98.4/libmp3lame/libmp3lame.la] Error 2<BR>
make[4]: *** [all] Error 1<BR>
make[3]: *** [mod_shout-all] Error 1<BR>
make[2]: *** [all-recursive] Error 1<BR>
make[1]: *** [all-recursive] Error 1<BR>
make: *** [all] Error 2<BR>
make[2]: *** [install-recursive] Error 1<BR>
make[1]: *** [install-recursive] Error 1<BR>
make: *** [install] Error 2<BR>
[1]+ &nbsp;Exit 2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;make<BR>
&nbsp;<BR>
Can&#8217;t we get the INSTALL page of the wiki right?<BR>
&nbsp;<BR>
</FONT></FONT><FONT FACE="Monaco, Courier New"><BR>
</FONT></SPAN><FONT SIZE="2"><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'><B>From:</B> <a href="freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>] <B>On Behalf Of </B>Abaci<BR>
<B>Sent:</B> Tuesday, December 18, 2012 5:01 PM<BR>
<B>To:</B> FreeSWITCH Users Help<BR>
<B>Subject:</B> Re: [Freeswitch-users] New install 1.2.Stable blows up compiling mod_perl.so<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
</SPAN></FONT><SPAN STYLE='font-size:11pt'><FONT FACE="Monaco, Courier New">yum install gdbm-devel db4-devel<BR>
&nbsp;<BR>
</FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial">On 12/18/2012 4:52 PM, Sean Devoy wrote:<BR>
</FONT></SPAN><BLOCKQUOTE><SPAN STYLE='font-size:11pt'><FONT FACE="Calibri, Verdana, Helvetica, Arial">I just started a clean install of the stable tree on a brand new install of Centos 5.3.<BR>
Here is EXACTLY what I have done so far:<BR>
Logged in to root<BR>
Cd /usr/local/src<BR>
yum install gcc<BR>
yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel<BR>
cd /usr/local/src<BR>
wget <a href="http://git-core.googlecode.com/files/git-1.7.9.tar.gz">http://git-core.googlecode.com/files/git-1.7.9.tar.gz</a><BR>
tar xvzf git-1.7.9.tar.gz<BR>
cd git-1.7.9<BR>
./configure<BR>
make<BR>
make install<BR>
yum install autoconf automake gcc-c++ git-core libjpeg-devel libtool make ncurses-devel pkgconfig<BR>
&nbsp;<BR>
cd /usr/local/src<BR>
git clone -b v1.2.stable git://git.freeswitch.org/freeswitch.git<BR>
./bootstrap.sh &nbsp;&nbsp;&nbsp;<BR>
./configure<BR>
</FONT></SPAN><FONT FACE="Calibri, Verdana, Helvetica, Arial"><FONT COLOR="#FF0000"><FONT SIZE="4"><SPAN STYLE='font-size:14pt'>tftp modules.conf from existing centos/fs server &nbsp;&nbsp;(did this kill it)? &nbsp;If so how can I get it back?<BR>
</SPAN></FONT></FONT><SPAN STYLE='font-size:11pt'>make &amp; make install &nbsp;<BR>
&nbsp;<BR>
after about 20 minutes the output is:<BR>
gcc -w -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -DEMBED_PERL -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -I/usr/local/src/freeswitch/libs/stfu -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/languages/mod_perl/mod_perl.c &nbsp;-fPIC -DPIC -o .libs/mod_perl.o<BR>
gcc -w -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -DEMBED_PERL -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -I/usr/local/src/freeswitch/libs/stfu -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/languages/mod_perl/mod_perl.c -o mod_perl.o &gt;/dev/null 2&gt;&amp;1<BR>
Creating mod_perl.so...<BR>
/usr/bin/ld: cannot find -lgdbm<BR>
collect2: ld returned 1 exit status<BR>
gcc -w -DMULTIPLICITY -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -DEMBED_PERL -I/usr/local/src/freeswitch/libs/curl/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -I/usr/local/src/freeswitch/libs/stfu -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 -shared -o .libs/mod_perl.so -shared -Wl,-x .libs/mod_perl.o -Wl,-E -Wl,-rpath -Wl,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE freeswitch_perl.o mod_perl_wrap.o perlxsi.o &nbsp;/usr/local/src/freeswitch/.libs/libfreeswitch.so -L/usr/local/src/freeswitch/libs/apr-util/xml/expat/lib /usr/local/src/freeswitch/libs/apr-util/xml/expat/lib/.libs/libexpat.a /usr/local/src/freeswitch/libs/apr/.libs/libapr-1.a -luuid -L/usr/local/src/freeswitch/libs/srtp -L/usr/kerberos/lib -lrt -lssl -lcrypto -lz -lncurses -ljpeg -lodbc -L/usr/local/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -lperl -lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc &nbsp;&nbsp;-Wl,--rpath -Wl,/usr/local/freeswitch/lib -Wl,--rpath -Wl,/usr/local/freeswitch/mod<BR>
make[5]: *** [mod_perl.so] Error 1<BR>
make[4]: *** [all] Error 1<BR>
make[3]: *** [mod_perl-all] Error 1<BR>
make[2]: *** [all-recursive] Error 1<BR>
make[1]: *** [all-recursive] Error 1<BR>
make: *** [all] Error 2<BR>
&nbsp;<BR>
&nbsp;<BR>
The modules.conf I upload is:<BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:9pt'>#applications/mod_abstraction<BR>
#applications/mod_avmd<BR>
applications/mod_blacklist<BR>
applications/mod_callcenter<BR>
applications/mod_cidlookup<BR>
applications/mod_cluechoo<BR>
applications/mod_commands<BR>
applications/mod_conference<BR>
applications/mod_curl<BR>
applications/mod_db<BR>
applications/mod_directory<BR>
#applications/mod_distributor<BR>
applications/mod_dptools<BR>
#applications/mod_easyroute<BR>
applications/mod_enum<BR>
applications/mod_esf<BR>
#applications/mod_esl<BR>
applications/mod_expr<BR>
applications/mod_fifo<BR>
#applications/mod_fsk<BR>
applications/mod_fsv<BR>
applications/mod_hash<BR>
applications/mod_httapi<BR>
#applications/mod_http_cache<BR>
#applications/mod_ladspa<BR>
applications/mod_lcr<BR>
#applications/mod_memcache<BR>
#applications/mod_mongo<BR>
#applications/mod_nibblebill<BR>
#applications/mod_osp<BR>
#applications/mod_redis<BR>
#applications/mod_rss<BR>
applications/mod_sms<BR>
#applications/mod_snapshot<BR>
#applications/mod_snipe_hunt<BR>
#applications/mod_snom<BR>
#applications/mod_soundtouch<BR>
applications/mod_spandsp<BR>
#applications/mod_spy<BR>
#applications/mod_stress<BR>
applications/mod_valet_parking<BR>
#applications/mod_vmd<BR>
applications/mod_voicemail<BR>
applications/mod_voicemail_ivr<BR>
#applications/mod_random<BR>
#asr_tts/mod_cepstral<BR>
asr_tts/mod_flite<BR>
asr_tts/mod_pocketsphinx<BR>
asr_tts/mod_tts_commandline<BR>
#asr_tts/mod_unimrcp<BR>
codecs/mod_amr<BR>
#codecs/mod_amrwb<BR>
codecs/mod_bv<BR>
#codecs/mod_celt<BR>
#codecs/mod_codec2<BR>
#codecs/mod_com_g729<BR>
#codecs/mod_dahdi_codec<BR>
codecs/mod_g723_1<BR>
codecs/mod_g729<BR>
codecs/mod_h26x<BR>
#codecs/mod_ilbc<BR>
#codecs/mod_isac<BR>
#codecs/mod_opus<BR>
#codecs/mod_sangoma_codec<BR>
#codecs/mod_silk<BR>
#codecs/mod_siren<BR>
codecs/mod_speex<BR>
dialplans/mod_dialplan_asterisk<BR>
#dialplans/mod_dialplan_directory<BR>
dialplans/mod_dialplan_xml<BR>
#directories/mod_ldap<BR>
#endpoints/mod_alsa<BR>
endpoints/mod_dingaling<BR>
#endpoints/mod_h323<BR>
#endpoints/mod_khomp<BR>
endpoints/mod_loopback<BR>
#endpoints/mod_opal<BR>
#endpoints/mod_portaudio<BR>
endpoints/mod_rtmp<BR>
#endpoints/mod_skinny<BR>
#endpoints/mod_skypopen<BR>
endpoints/mod_sofia<BR>
event_handlers/mod_cdr_csv<BR>
#event_handlers/mod_cdr_mongodb<BR>
#event_handlers/mod_cdr_pg_csv<BR>
event_handlers/mod_cdr_sqlite<BR>
#event_handlers/mod_erlang_event<BR>
#event_handlers/mod_event_multicast<BR>
event_handlers/mod_event_socket<BR>
#event_handlers/mod_event_zmq<BR>
#event_handlers/mod_radius_cdr<BR>
event_handlers/mod_snmp<BR>
formats/mod_local_stream<BR>
formats/mod_native_file<BR>
#formats/mod_portaudio_stream<BR>
#formats/mod_shell_stream<BR>
formats/mod_shout<BR>
formats/mod_sndfile<BR>
formats/mod_tone_stream<BR>
#formats/mod_vlc<BR>
#languages/mod_java<BR>
languages/mod_lua<BR>
#languages/mod_managed<BR>
languages/mod_perl<BR>
languages/mod_python<BR>
languages/mod_spidermonkey<BR>
#languages/mod_yaml<BR>
loggers/mod_console<BR>
loggers/mod_logfile<BR>
loggers/mod_syslog<BR>
#say/mod_say_de<BR>
say/mod_say_en<BR>
#say/mod_say_es<BR>
#say/mod_say_fr<BR>
#say/mod_say_he<BR>
#say/mod_say_hu<BR>
#say/mod_say_it<BR>
#say/mod_say_nl<BR>
#say/mod_say_pt<BR>
#say/mod_say_ru<BR>
#say/mod_say_th<BR>
#say/mod_say_zh<BR>
#timers/mod_posix_timer<BR>
#timers/mod_timerfd<BR>
xml_int/mod_xml_cdr<BR>
xml_int/mod_xml_curl<BR>
#xml_int/mod_xml_ldap<BR>
xml_int/mod_xml_rpc<BR>
xml_int/mod_xml_scgi<BR>
&nbsp;<BR>
#../../libs/freetdm/mod_freetdm<BR>
#../../libs/openzap/mod_openzap<BR>
&nbsp;<BR>
## Experimental Modules (don't cry if they're broken)<BR>
#../../contrib/mod/xml_int/mod_xml_odbc<BR>
&nbsp;<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
<BR>
<BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
&nbsp;<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
&nbsp;<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
&nbsp;<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
</SPAN></FONT>
</BODY>
</HTML>