rpm build issues on CentOS 5 with trunk
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
It's failing to build the core library. There should be some warning before it tried to build the modules in the log. On Jun 21, 2009, at 9:25 PM, "Joseph L. Casale" <JCasale@activenetwerx.com
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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
It's failing to build the core library. There should be some warning before it tried to build the modules in the log.
You'll have to bear with me, I am not sure exactly what part of the build that is, I see this in the log: +-------- FreeSWITCH Build Complete -----------+ + FreeSWITCH has been successfully built. + + Install by running: + + + + /usr/bin/make install + +----------------------------------------------+ followed by this: +-------- FreeSWITCH install Complete ----------+ + FreeSWITCH has been successfully installed. + + + + Install sounds: + + (uhd-sounds includes hd-sounds, sounds) + + (hd-sounds includes sounds) + + ------------------------------------ + and finally it ends with: Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/freeswitch-1.0.4-1-root-rpmbuilder RPM build errors: Which doesn't help:) Thanks! jlc
Scroll up and look for the real error. /b On Jun 22, 2009, at 10:36 AM, Joseph L. Casale wrote:
You'll have to bear with me, I am not sure exactly what part of the build that is, I see this in the log:
+-------- FreeSWITCH Build Complete -----------+ + FreeSWITCH has been successfully built. + + Install by running: + + + + /usr/bin/make install + +----------------------------------------------+
followed by this:
+-------- FreeSWITCH install Complete ----------+ + FreeSWITCH has been successfully installed. + + + + Install sounds: + + (uhd-sounds includes hd-sounds, sounds) + + (hd-sounds includes sounds) + + ------------------------------------ +
and finally it ends with:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/ freeswitch-1.0.4-1-root-rpmbuilder
RPM build errors:
Which doesn't help:) Thanks! jlc
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
Scroll up and look for the real error.
All I see are these: *** Warning: Linking the shared library libfreeswitch.la against the *** static library libs/libedit/src/.libs/libedit.a is not portable! ****** Integer sample type enabled ****** *** The gtk-config script installed by GTK could not be found *** If GTK was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GTK_CONFIG environment variable to the *** full path to gtk-config. I am pulling down the newer libraries and updated spec now to try that. Thanks guys! jlc
Ok, thats not the issue... look lower or post the full log. /b On Jun 22, 2009, at 2:50 PM, Joseph L. Casale wrote:
All I see are these:
*** Warning: Linking the shared library libfreeswitch.la against the *** static library libs/libedit/src/.libs/libedit.a is not portable! ****** Integer sample type enabled ******
*** The gtk-config script installed by GTK could not be found *** If GTK was installed in PREFIX, make sure PREFIX/bin is in *** your path, or set the GTK_CONFIG environment variable to the *** full path to gtk-config.
I am pulling down the newer libraries and updated spec now to try that.
Thanks guys! jlc
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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:
Raul, Appreciate this, it worked. I am re-running it as the first time I was only logging stdout and it appears there are some errors in my build worth exploring. Nothing prevented the build, so I created a local repo with all the rpm's and executed a `yum install freeswitch` and I see that it never pulled in anything else. Where abouts in the docs could I find info on knowing what I need for an initial install to test? Thanks for the help! jlc
participants (4)
-
Brian West
-
Joseph L. Casale
-
Michael Jerris
-
Raul Fragoso