It looks like it failed
make
distro.centos-6-x86_64.{repo-chroot-init,{sipXcommons,sipXconfig}.rpm}
It also appears to be a similar problem, this time in sipxconfig.spec
though. I can see at the end of the log errors about not being able to
find constant values from MongoConstants. This seems to be a problem
stemming from a failure to compile at all (which I have not tried, the
VM I am using now was newly created just for RPM building). I will try
to look for sipxecs build problems on here, and also try copying my
development VM that I use for coding and see if I can make the RPM build
work there
The error output and tail -25 of the log are below.
-=[tail -50 build.log]=-
[patlive@vm-centos-bayonetta build]$ tail -50
repo/CentOS_6/x86_64/build.log
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_FILE
location: interface org.sipfoundry.commons.mongo.MongoConstants
props.put(MongoConstants.LOG_FILE, getLogFile());
^
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.
43 errors
make[2]: Leaving directory
`/builddir/build/BUILD/sipxconfig-0.0.4.5.2/neoconf/src'
make[2]: *** [javac-neoconf] Error 1
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/builddir/build/BUILD/sipxconfig-0.0.4.5.2/neoconf'
make: *** [all-recursive] Error 1
RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.aKIYTV (%build)
Bad exit status from /var/tmp/rpm-tmp.aKIYTV (%build)
Child return code 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
-=[last lines of build error output]=-
INFO:
Start(repo/CentOS_6/source/sipxconfig-0.0.4.5.2-1749.g4e669b.src.rpm)
Config(centos-6-x86_64)
INFO: State Changed: init
INFO: State Changed: lock buildroot
INFO: Mock Version: 1.1.21
INFO: Mock Version: 1.1.21
INFO: Mock Version: 1.1.21
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled yum cache
INFO: State Changed: cleaning yum metadata
INFO: enabled ccache
INFO: State Changed: running yum
INFO: State Changed: unlock buildroot
INFO: Installed packages:
INFO: State Changed: setup
INFO: ENTER do(['bash', '--login', '-c', 'rpmbuild -bs --target x86_64
--nodeps builddir/build/SPECS/sipxconfig.spec'], False,
'/var/lib/mock/centos-6-x86_64/root/', None, 0, True, False, 500, 490,
None, False, {'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL':
'/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock',
'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir',
'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'},
logger=<mockbuild.trace_decorator.getLog object at 0x195cc50>)
INFO: LEAVE do -->
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, 490,
None, False, {'LANG': 'en_US.utf8', 'TERM': 'vt100', 'SHELL':
'/bin/bash', 'CCACHE_DIR': '/tmp/ccache', 'HOSTNAME': 'mock',
'PROMPT_COMMAND': 'echo -n "<mock-chroot>"', 'HOME': '/builddir',
'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'CCACHE_UMASK': '002'},
logger=<mockbuild.trace_decorator.getLog object at 0x195cc50>)
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-1749.g4e669b.src.rpm
) Config(centos-6-x86_64) 2 minutes 11 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/patlive/code/sipxecs/build'
make: *** [distro.centos-6-x86_64.sipXconfig.rpm] Error 2
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dan Chang
Sent: Friday, April 20, 2012 12:42 PM
To: sipXecs developer discussions
Subject: Re: [sipx-dev] Error building RPM off master branch
Giving this a run, it has been going for a bit.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of George
Niculae
Sent: Friday, April 20, 2012 12:30 PM
To: sipXecs developer discussions
Subject: Re: [sipx-dev] Error building RPM off master branch
On Fri, Apr 20, 2012 at 7:12 PM, George Niculae <[email protected]>
wrote:
> On Fri, Apr 20, 2012 at 7:07 PM, Dan Chang <[email protected]>
wrote:
>> I am trying to build RPMs (really just the SipXConfig RPM if I could)
from a
>> Git fork off the master branch, following the directions at
>>
>>
>>
>>
>>
http://wiki.sipfoundry.org/display/sipXecs/Building+RPMS+on+CentOS+or+Fe
dora
>>
>>
>>
>> I am getting a failure from both
>>
>
> You should get more details from build.log, anything there?
Try this also and see if it builds OK:
make
distro.centos-6-x86_64.{repo-chroot-init,{sipXcommons,sipXconfig}.rpm}
George
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/