Under the instructions at:
http://wiki.sipfoundry.org/display/sipXecs/Building+RPMS+on+CentOS+or+Fedora
I continue to obtain the failure noted over the weekend
Centos 6, environment, with EPElk enabled, x86_86 arch
...
INFO: State Changed: build
INFO: ENTER do(['bash', '--login', '-c', 'rpmbuild -bb
--target x86_64 --nodeps
builddir/build/SPECS/sipxconfig.spec'], False,
'/var/lib/mock/centos-6-x86_64/root/', None, 0, True, False,
500, 497, None, False, None,
logger=<mockbuild.trace_decorator.getLog object at 0xdaab50>)
INFO: EXCEPTION: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64
--nodeps builddir/build/SPECS/sipxconfig.spec']
Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py",
line 70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mockbuild/util.py",
line 352, in do
raise mockbuild.exception.Error, ("Command failed. See
logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64
--nodeps builddir/build/SPECS/sipxconfig.spec']
INFO: LEAVE do --> EXCEPTION RAISED
ERROR:
Exception(repo/CentOS_6/source/sipxconfig-0.0.4.5.2-1371.g0a675.src.rpm)
Config(centos-6-x86_64) 3 minutes 20 seconds
INFO: Results and/or logs in: repo/CentOS_6/x86_64
ERROR: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64
--nodeps builddir/build/SPECS/sipxconfig.spec']
make[1]: *** [sipXconfig.rpm-by-mock] Error 1
make[1]: Leaving directory
`/home/herrold/sipxecs/sipxecs/build'
make: *** [distro.centos-6-x86_64.sipXconfig.rpm] Error 2
tail: cannot open
`./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/build.log' for
reading: No such file or directory
[herrold@sipxecs-builder ~]$ find -name build.log
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/build.log
[herrold@sipxecs-builder ~]$ tail -75
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/build.log
org/sipfoundry/sipxconfig/openacd/OpenAcdRecipeCondition.java:156:
cannot find symbol
symbol : variable CONDITION
location: interface
org.sipfoundry.commons.mongo.MongoConstants
condition.put(MongoConstants.CONDITION,
conditionValue);
^
org/sipfoundry/sipxconfig/openacd/OpenAcdRecipeCondition.java:170:
cannot find symbol
symbol : variable VALUE
location: interface
org.sipfoundry.commons.mongo.MongoConstants
condition.put(MongoConstants.VALUE, value);
^
org/sipfoundry/sipxconfig/openacd/OpenAcdRecipeCondition.java:172:
cannot find symbol
symbol : variable VALUE
location: interface
org.sipfoundry.commons.mongo.MongoConstants
condition.put(MongoConstants.VALUE,
m_valueCondition);
^
org/sipfoundry/sipxconfig/openacd/OpenAcdAgentConfigCommand.java:50:
cannot find symbol
symbol : variable LISTENER_ENABLED
location: interface
org.sipfoundry.commons.mongo.MongoConstants
props.put(MongoConstants.LISTENER_ENABLED,
isListenerEnabled());
^
org/sipfoundry/sipxconfig/openacd/OpenAcdLogConfigCommand.java:52:
cannot find symbol
symbol : variable LOG_LEVEL
location: interface
org.sipfoundry.commons.mongo.MongoConstants
props.put(MongoConstants.LOG_LEVEL, getLogLevel());
^
org/sipfoundry/sipxconfig/openacd/OpenAcdLogConfigCommand.java:53:
cannot find symbol
symbol : variable LOG_DIR
location: interface
org.sipfoundry.commons.mongo.MongoConstants
props.put(MongoConstants.LOG_DIR, getLogDir());
^
org/sipfoundry/sipxconfig/openacd/FreeswitchMediaCommand.java:71:
cannot find symbol
symbol : variable NODE
location: interface
org.sipfoundry.commons.mongo.MongoConstants
props.put(MongoConstants.NODE, getNode());
^
org/sipfoundry/sipxconfig/openacd/FreeswitchMediaCommand.java:72:
cannot find symbol
symbol : variable DIAL_STRING
location: interface
org.sipfoundry.commons.mongo.MongoConstants
props.put(MongoConstants.DIAL_STRING,
getDialString());
^
org/sipfoundry/sipxconfig/commserver/imdb/OpenAcd.java:32:
cannot find symbol
symbol : variable UUID
location: interface
org.sipfoundry.commons.mongo.MongoConstants
top.put(MongoConstants.UUID,
UUID.randomUUID().toString());
^
org/sipfoundry/sipxconfig/commserver/imdb/OpenAcd.java:33:
cannot find symbol
symbol : variable TYPE
location: interface
org.sipfoundry.commons.mongo.MongoConstants
top.put(MongoConstants.TYPE,
entity.getClass().getSimpleName().toString().toLowerCase());
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
38 errors
make[2]: Leaving directory
`/builddir/build/BUILD/sipxconfig-0.0.4.5.2/neoconf/src'
make[2]: *** [javac-neoconf] Error 1
make[1]: Leaving directory
`/builddir/build/BUILD/sipxconfig-0.0.4.5.2/neoconf'
RPM build errors:
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.TRHbFK (%build)
Bad exit status from /var/tmp/rpm-tmp.TRHbFK (%build)
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64
--nodeps builddir/build/SPECS/sipxconfig.spec']
Traceback (most recent call last):
File
"/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py",
line 70, in trace
result = func(*args, **kw)
File "/usr/lib/python2.6/site-packages/mockbuild/util.py",
line 352, in do
raise mockbuild.exception.Error, ("Command failed. See
logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
# ['bash', '--login', '-c', 'rpmbuild -bb --target x86_64
--nodeps builddir/build/SPECS/sipxconfig.spec']
LEAVE do --> EXCEPTION RAISED
[herrold@sipxecs-builder ~]$
[herrold@sipxecs-builder ~]$ find -name "mongo*rpm"
./rpmbuild/SRPMS/mongodb-2.0.2-1.pmman.src.rpm
./sipxecs/sipxecs/build/repo/CentOS_6/source/mongodb-2.0.2-1.pmman.src.rpm
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-server-2.0.2-1.el6.x86_64.rpm
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-2.0.2-1.el6.x86_64.rpm
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-debuginfo-2.0.2-1.el6.x86_64.rpm
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-devel-2.0.2-1.el6.x86_64.rpm
[herrold@sipxecs-builder ~]$ find -name "mongo*rpm" -a -exec
ls -al {} \;
-rw-rw-r--. 1 herrold herrold 2956138 Apr 23 10:21
./rpmbuild/SRPMS/mongodb-2.0.2-1.pmman.src.rpm
-rw-rw-r--. 1 herrold herrold 2956138 Apr 23 10:21
./sipxecs/sipxecs/build/repo/CentOS_6/source/mongodb-2.0.2-1.pmman.src.rpm
-rw-rw-r--. 1 herrold mock 4023104 Apr 23 11:11
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-server-2.0.2-1.el6.x86_64.rpm
-rw-rw-r--. 1 herrold mock 21170616 Apr 23 11:11
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-2.0.2-1.el6.x86_64.rpm
-rw-rw-r--. 1 herrold mock 5208076 Apr 23 11:11
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-debuginfo-2.0.2-1.el6.x86_64.rpm
-rw-rw-r--. 1 herrold mock 1233900 Apr 23 11:11
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/mongodb-devel-2.0.2-1.el6.x86_64.rpm
[herrold@sipxecs-builder ~]$ rpm -qa mongo\*
[herrold@sipxecs-builder ~]$
The 'mock' used is from EPEL, and seems to be their latest:
[root@sipxecs-builder ~]# rpm -qf
/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py
mock-1.1.18-1.el6.noarch
[root@sipxecs-builder ~]# rpm -qi mock
Name : mock Relocations: (not
relocatable)
Version : 1.1.18 Vendor: Fedora
Project
Release : 1.el6 Build Date: Sun 27
Nov 2011 06:34:07 PM EST
Install Date: Tue 31 Jan 2012 10:12:01 AM EST Build Host:
x86-16.phx2.fedoraproject.org
Group : Development/Tools Source RPM:
mock-1.1.18-1.el6.src.rpm
Size : 552319 License: GPLv2+
Signature : RSA/8, Mon 28 Nov 2011 06:05:12 AM EST, Key ID
3b49df2a0608b895
Packager : Fedora Project
URL : http://fedoraproject.org/wiki/Projects/Mock
Summary : Builds packages inside chroots
Description :
Mock takes an SRPM and builds it in a chroot
[root@sipxecs-builder ~]# yum upgrade
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink | 9.8 kB 00:00
* base: mirror.team-cymru.org
* epel: mirrors.servercentral.net
* extras: mirror.ubiquityservers.com
* updates: mirror.serversurgeon.com
base | 3.7 kB 00:00
base/primary_db | 4.5 MB 00:15
cr | 3.0 kB 00:00
cr/primary_db | 1.2 kB 00:00
epel | 4.0 kB 00:00
epel/primary_db | 4.3 MB 00:00
extras | 3.5 kB 00:00
extras/primary_db | 6.3 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 2.9 MB 00:00
Setting up Upgrade Process
No Packages marked for Update
[root@sipxecs-builder ~]#
I see that the SRPM is being built '--nodeps' .... two build
rebuirements seem to be not prsent on the system. An artifact
of 'bootstrapping' or an error?
[herrold@sipxecs-builder ~]$ rpmbuild --rebuild
./rpmbuild/SRPMS/sipxconfig-0.0.4.5.2-1371.g0a675.src.rpm
Installing
./rpmbuild/SRPMS/sipxconfig-0.0.4.5.2-1371.g0a675.src.rpm
error: Failed build dependencies:
sipxcommons >= 0.0.4.5.2 is needed by
sipxconfig-0.0.4.5.2-1371.g0a675.x86_64
sipxacdstatistics-client >= 0.0.4.5.2 is needed by
sipxconfig-0.0.4.5.2-1371.g0a675.x86_64
sipxcdr-client >= 0.0.4.5.2 is needed by
sipxconfig-0.0.4.5.2-1371.g0a675.x86_64
[herrold@sipxecs-builder ~]$
[root@sipxecs-builder ~]# find ~herrold -name "sipxcommons*rpm"
/home/herrold/rpmbuild/SRPMS/sipxcommons-0.0.4.5.2-1371.g0a675.src.rpm
/home/herrold/sipxecs/sipxecs/build/repo/CentOS_6/source/sipxcommons-0.0.4.5.2-1371.g0a675.src.rpm
/home/herrold/sipxecs/sipxecs/build/repo/CentOS_6/x86_64/sipxcommons-0.0.4.5.2-1371.g0a675.x86_64.rpm
/home/herrold/sipxecs/sipxecs/build/repo/CentOS_6/x86_64/sipxcommons-debuginfo-0.0.4.5.2-1371.g0a675.x86_64.rpm
[root@sipxecs-builder ~]# rpm -U \
/home/herrold/sipxecs/sipxecs/build/repo/CentOS_6/x86_64/sipxcommons-0.0.4.5.2-1371.g0a675.x86_64.rpm
[root@sipxecs-builder ~]# find ~herrold -name "sipxacdstatistics-client*rpm"
[root@sipxecs-builder ~]# find ~herrold -name "sipxcdr-client*rpm"
[root@sipxecs-builder ~]#
-- Russ herrold
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/