[Freeswitch-users] rpm build issues on CentOS 5 with trunk

Raul Fragoso raul at etellicom.com
Mon Jun 22 10:44:18 PDT 2009


I have recently updated the RPM spec for FreeSWITCH to use the latest
SVN release, including some unspecified files for the newest mods (with
nibblebil, unimrcp, etc, just like your build output is bitching about).
Follow these steps to build it:

1 - Get the latest SVN release and make a tar-ball for it:
$ cd /usr/src/redhat/SOURCES/
$ svn checkout http://svn.freeswitch.org/svn/freeswitch/trunk
freeswitch-1.0.4trunk
$ tar -cjvf freeswitch-1.0.4trunk.tar.bz2 freeswitch-1.0.4trunk/

2 - Grab the libraries required to build FS:
$ wget -q -O - http://www.etellicom.com/~raul/freeswitch_deps.txt | bash

3 - Download the RPM spec:
$ cd /usr/src/redhat/SPECS/
$ wget http://www.etellicom.com/~raul/freeswitch.spec

4 - Build it :)
$ rpmbuild -ba freeswitch.spec

It works fine with a standard CentOS 5.3 installation.

Regards,

Raul

On Mon, 2009-06-22 at 01:25 +0000, Joseph L. Casale wrote:
> I attempted to build rpm's from the included spec file using a non-root user
> build environment. The steps I used are as follows:
> 
> 1. Check build deps @ http://wiki.freeswitch.org/wiki/Installation_Guide#RHEL.2FCentOS
> 2. Pulled a copy of trunk in the SOURCES directory & tar/bzip2 it as expected by the spec:
>       svn co http://svn.freeswitch.org/svn/freeswitch/trunk freeswitch-1.0.4
>       tar cjf freeswitch-1.0.4.tar.bz2 freeswitch-1.0.4/
> 3. Copy spec to SPECS directory:
> 4. Pull in Source (Source0 doesn't exist yet, I make it above):
>       for SOURCE in $(awk '/^Source[1-9][0-9]*:/ {print $2}' freeswitch.spec); do wget -P ../../SOURCES/ $SOURCE; done
> 5. Check spec in svn copy for deps:
>       yum install $(awk -v ORS=" " '/^BuildRequires:/ {print $2}' freeswitch.spec)
> 6.Build rpm:
>       rpmbuild -ba freeswitch.spec
> 
> After some time, near the end I see various issues like the following:
> 
> making install mod_speex
> installing mod_speex.so
> quiet_libtool: install: warning: `/home/builder/rpmbuild/BUILD/freeswitch-1.0.4/libfreeswitch.la'
>     has not been installed in `/opt/freeswitch/lib'
> 
> 
> It also seems to download everything it would normally again, then fails with
> several errors like the following:
> 
> RPM build errors:
>     File not found by glob: /var/tmp/freeswitch-1.0.4-1-root-builder/opt/freeswitch/mod/ozmod_wanpipe.so*
>     Installed (but unpackaged) file(s) found:
>    /opt/freeswitch/conf/autoload_configs/cidlookup.conf.xml
>    /opt/freeswitch/conf/autoload_configs/nibblebill.conf.xml
>    /opt/freeswitch/conf/autoload_configs/unimrcp.conf.xml
>    /opt/freeswitch/conf/lang/ru/demo/demo-ivr.xml
> .
> .
> .
> 
> After which no rpm's are built? Anyone know what tricks are still needed with
> the spec from svn?
> 
> Thanks!
> jlc
> 
> _______________________________________________
> 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





More information about the FreeSWITCH-users mailing list