Just to give the final results on this issue, I managed to build 4.5.2
RPMs on CentOS 6.2 using a new VM. I build the repo-chroot-init and the
sipx.rpm, but not the lib.rpm which apparently was not needed (actually,
I tried the lib.rpm but I got an error)
make distro.centos-6-x86_64.repo-chroot-init
make distro.centos-6-x86_64.sipx.rpm
The only significant differences I could come up with from my previous
attempt that had an error was that I actually built and installed
SipXecs first before I tried going through the instructions to build the
RPMs. Just mentioning in case someone sees this error it is an option
to try (could have been completely apocryphal).
D Chang
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dan Chang
Sent: Friday, April 20, 2012 5:22 PM
To: sipXecs developer discussions
Subject: Re: [sipx-dev] Error building RPM off master branch
So as far as I can tell I have errors finding MongoConstants, however
the file is in my ...org.sipfoundry.commons.mongo source folder and it
contains entries for the enum values shown. perhaps there is some
BUILDPATH or other pointer that I am missing that is causing the build
to not be able to link the MongoConstants.java file in?
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dan Chang
Sent: Friday, April 20, 2012 4:23 PM
To: sipXecs developer discussions
Subject: Re: [sipx-dev] Error building RPM off master branch
try doing a tail -75 on the log and see if you can run into any "cannot
find symbol" errors or something like that. 25 was not enough for me
but at 50 lines i found some stuff like
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());
^
i have tried installing mongo and mongo-devel but nothing changed. i
will continue to look into making the environment able to compile
sipxecs completely, then work from there
d chang
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of R P Herrold
Sent: Friday, April 20, 2012 3:11 PM
To: sipXecs developer discussions
Subject: [sipx-dev] Error building RPM off master branch
On Fri, 20 Apr 2012, George Niculae wrote:
>> You should get more details from build.log, anything there?
build environment:
Centos 6, 64 bit updated to current
[herrold@sipxecs-builder ~]$ cat /etc/redhat-release
CentOS release 6.2 (Final)
[herrold@sipxecs-builder ~]$ cd sipxecs/sipxecs/build
[herrold@sipxecs-builder build]$ make
distro.centos-6-x86_64.{repo-chroot-init,{sipXcommons,sipXconfig}.rpm}
...
I too get:
[herrold@sipxecs-builder ~]$ find -name build.log
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/build.log
[herrold@sipxecs-builder ~]$ tail -25
./sipxecs/sipxecs/build/repo/CentOS_6/x86_64/build.log
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.2JxDhe (%build)
Bad exit status from /var/tmp/rpm-tmp.2JxDhe (%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 ~]$
-----------------
as to the later suggestion:
[herrold@sipxecs-builder build]$ cd
[herrold@sipxecs-builder ~]$ cd sipxecs/sipxecs/build
[herrold@sipxecs-builder build]$ make \
distro.centos-6-x86_64.{repo-chroot-init,{sipXcommons,sipXconfig}.rpm}
...
[herrold@sipxecs-builder build]$ tail -25 \
` find . -name build.log `
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.S7RwnU (%build)
Bad exit status from /var/tmp/rpm-tmp.S7RwnU (%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 build]$
_______________________________________________
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/
_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev/