You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by benoit lair <ku...@gmail.com> on 2013/10/03 11:09:28 UTC

Can't compile cloudstack 4.2 rpms from source

Hello guys,


I've already installed cs 4.2 from cloudstack rpm repos.

It seems all is okay.

Now i want to build my own rpm from source.

I work on a centos 6.3 linux for building the rpms.

I followed the docs in order to prepare my dev environment according to the
following page :

http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/sect-source-buildrpm.html

I adapted the filenames (here 4.0.0 with 4.2.0), but i got the following
errors when trying to generate the rpms.

-----------------------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 13:26.004s
[INFO] Finished at: Thu Oct 03 10:07:41 CEST 2013
[INFO] Final Memory: 37M/146M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
(default-compile) on project cloud-plugin-hypervisor-xen: Compilation
failure: Compilation failure:
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[890,16]
cannot find symbol
[ERROR] symbol  : variable lockingMode
[ERROR] location: class com.xensource.xenapi.VIF.Record
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[890,36]
cannot find symbol
[ERROR] symbol  : variable VifLockingMode
[ERROR] location: class com.xensource.xenapi.Types
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[1099,12]
cannot find symbol
[ERROR] symbol  : variable lockingMode
[ERROR] location: class com.xensource.xenapi.VIF.Record
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[1099,32]
cannot find symbol
[ERROR] symbol  : variable VifLockingMode
[ERROR] location: class com.xensource.xenapi.Types
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[4869,20]
cannot find symbol
[ERROR] symbol  : variable lockingMode
[ERROR] location: class com.xensource.xenapi.VIF.Record
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[4869,40]
cannot find symbol
[ERROR] symbol  : variable VifLockingMode
[ERROR] location: class com.xensource.xenapi.Types
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[160,43]
cannot find symbol
[ERROR] symbol  : method
migrateReceive(com.xensource.xenapi.Connection,com.xensource.xenapi.Network,java.util.Map<java.lang.String,java.lang.String>)
[ERROR] location: class com.xensource.xenapi.Host
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[175,30]
cannot find symbol
[ERROR] symbol  : method
assertCanMigrateAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
com.xensource.xenapi.SR
>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
[ERROR] location: class com.xensource.xenapi.VM
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[189,30]
cannot find symbol
[ERROR] symbol  : method
migrateSendAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
com.xensource.xenapi.SR
>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
[ERROR] location: class com.xensource.xenapi.VM
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[251,43]
cannot find symbol
[ERROR] symbol  : method
migrateReceive(com.xensource.xenapi.Connection,com.xensource.xenapi.Network,java.util.Map<java.lang.String,java.lang.String>)
[ERROR] location: class com.xensource.xenapi.Host
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[310,30]
cannot find symbol
[ERROR] symbol  : method
assertCanMigrateAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
com.xensource.xenapi.SR
>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
[ERROR] location: class com.xensource.xenapi.VM
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[322,30]
cannot find symbol
[ERROR] symbol  : method
migrateSendAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
com.xensource.xenapi.SR
>,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
[ERROR] location: class com.xensource.xenapi.VM
[ERROR]
/root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[407,33]
cannot find symbol
[ERROR] symbol  : method poolMigrateAsync(com.xensource.xenapi.Connection,
com.xensource.xenapi.SR,java.util.Map<java.lang.String,java.lang.String>)
[ERROR] location: class com.xensource.xenapi.VDI
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :cloud-plugin-hypervisor-xen
error: Bad exit status from /var/tmp/rpm-tmp.3KnzJm (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.3KnzJm (%build)
[root@localhost centos63]#
-------------------------------------------------------------------------------------------------------------


Althought, i have well prepared my linux environment.
Installed the rpm group "Developpement tools"
Installed all the dependencies needed to compile the project
Installed apache marvin 3.0.4 binaries
moved them to /usr/local/maven
made the symbolic links
made the path updates with maven and the good jdk machine one
executed mvn --version without errors
so tar xvfz apache-cloudstack-4.2.0-src.tar.gz
gone to packages/centos63
launched ./package.sh

So i got the output verbose errors i wrote at the beginning of my email.

I even tried this tutorial in order to try compiling cloudstack 4.2 :
http://thehyperadvisor.com/2013/09/25/cloudstack-4-2-rpm-build-how-to/

In this blog, the differences are :

yum install git ant ant-devel java-1.6.0-openjdk
java-1.6.0-openjdk-devel mysql mysql-server tomcat6 mkisofs gcc python
MySQL-python openssh-clients wget rpm-build ws-commons-util net-snmp
genisoimage -y

the use of apache maven 3.0.5 in place of maven 3.0.4 in the official docs.

The set of the environment variables in /etc/profile.d/maven.sh
instead of setting them just in a shell



Even with this post, i can't build cs 4.2 from the source i got the same
errors.

Could you help me with this bug, Please ?

Thanks a lot.

Regards.

Benoit Lair.

Re: Can't compile cloudstack 4.2 rpms from source

Posted by Wei ZHOU <us...@gmail.com>.
I downloaded and built cloudstack 4.2.0 source code just now. It is ok.



[INFO]
------------------------------------------------------------------------
[INFO] Building Apache CloudStack Plugin - Hypervisor Xen 4.2.0
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @
cloud-plugin-hypervisor-xen ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @
cloud-plugin-hypervisor-xen ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @
cloud-plugin-hypervisor-xen ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/src/main/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @
cloud-plugin-hypervisor-xen ---
[INFO] Compiling 19 source files to
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources)
@ cloud-plugin-hypervisor-xen ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/test/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
cloud-plugin-hypervisor-xen ---
[INFO] Compiling 1 source file to
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.12:test (default-test) @
cloud-plugin-hypervisor-xen ---
[INFO] Surefire report directory:
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/target/surefire-reports
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running com.cloud.hypervisor.xen.resource.CitrixResourceBaseTest
log4j:WARN No appenders could be found for logger
(com.cloud.hypervisor.xen.resource.XenServerConnectionPool).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.174 sec
Results :
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @
cloud-plugin-hypervisor-xen ---
[INFO] Building jar:
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/target/cloud-plugin-hypervisor-xen-4.2.0.jar
[INFO]
[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @
cloud-plugin-hypervisor-xen ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
cloud-plugin-hypervisor-xen ---
[INFO] Installing
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/target/cloud-plugin-hypervisor-xen-4.2.0.jar
to
/root/.m2/repository/org/apache/cloudstack/cloud-plugin-hypervisor-xen/4.2.0/cloud-plugin-hypervisor-xen-4.2.0.jar
[INFO] Installing
/root/apache-cloudstack-4.2.0-src/plugins/hypervisors/xen/pom.xml to
/root/.m2/repository/org/apache/cloudstack/cloud-plugin-hypervisor-xen/4.2.0/cloud-plugin-hypervisor-xen-4.2.0.pom
[INFO]


2013/10/3 benoit lair <ku...@gmail.com>

> Hi Wei,
>
> What is the result expected with "mvn -P developer" ?
>
> It will intent to give me rpms usable for a production environment ?
>
> Thanks for your reponse.
>
> Regards, Benoit.
>
>
> 2013/10/3 Wei ZHOU <us...@gmail.com>
>
> > mvn -P developer,systemvm clean install
> >
>

Re: Can't compile cloudstack 4.2 rpms from source

Posted by benoit lair <ku...@gmail.com>.
Yes Chip, i can just download the rpms from the cloudstack repo.

However, in the past i always compiled myself my cs rpms, so i would
continue on this way.

But the cloudstack already-build rpms can be sufficient for my needs

Wei, in my link http://pastebin.com/TNegzXUX

I saw i had a building problem on line 339 : [INFO] Apache CloudStack
Plugin - Hypervisor Xen ......... FAILURE [6.758s]

This could be the reason of my compilation failure ?

So what could be the fix for it ?

Thanks a lot.

Regards, Benoit Lair.


2013/10/3 Chip Childers <ch...@sungard.com>

> On Thu, Oct 03, 2013 at 06:24:57PM +0200, benoit lair wrote:
> > Hi Wei,
> >
> > What is the result expected with "mvn -P developer" ?
> >
> > It will intent to give me rpms usable for a production environment ?
>
> No, it's intended to test that maven builds are functional for you.
>
> If you just want the RPMs, have you considered pulling them down from
> our repo?
>
> http://cloudstack.apt-get.eu/rhel/4.2/
>
> >
> > Thanks for your reponse.
> >
> > Regards, Benoit.
> >
> >
> > 2013/10/3 Wei ZHOU <us...@gmail.com>
> >
> > > mvn -P developer,systemvm clean install
> > >
>

Re: Can't compile cloudstack 4.2 rpms from source

Posted by Chip Childers <ch...@sungard.com>.
On Thu, Oct 03, 2013 at 06:24:57PM +0200, benoit lair wrote:
> Hi Wei,
> 
> What is the result expected with "mvn -P developer" ?
> 
> It will intent to give me rpms usable for a production environment ?

No, it's intended to test that maven builds are functional for you.

If you just want the RPMs, have you considered pulling them down from
our repo?

http://cloudstack.apt-get.eu/rhel/4.2/

> 
> Thanks for your reponse.
> 
> Regards, Benoit.
> 
> 
> 2013/10/3 Wei ZHOU <us...@gmail.com>
> 
> > mvn -P developer,systemvm clean install
> >

Re: Can't compile cloudstack 4.2 rpms from source

Posted by benoit lair <ku...@gmail.com>.
Hi Wei,

What is the result expected with "mvn -P developer" ?

It will intent to give me rpms usable for a production environment ?

Thanks for your reponse.

Regards, Benoit.


2013/10/3 Wei ZHOU <us...@gmail.com>

> mvn -P developer,systemvm clean install
>

Re: Can't compile cloudstack 4.2 rpms from source

Posted by Wei ZHOU <us...@gmail.com>.
mvn -P developer,systemvm clean install

Re: Can't compile cloudstack 4.2 rpms from source

Posted by benoit lair <ku...@gmail.com>.
In order to be sure that there weren't something wrong with my environment,
i've retried to create rpms for apache cloudstack 4.0.0 and it worked well.
I've deleted the cs 4.2.0 src dir, tar xvfz of the tarbal file of cs 4.2
sources, retried to launch package.sh, same error. Retried a mvn clean and
so a mvn -P deps as in the cs 4.0.0 docs, and i got the same error.

Thanks for your help.

Regards, Benoit


2013/10/3 benoit lair <ku...@gmail.com>

> Hello Chip,
>
> Yes i do. I've tried mvn clean install, and :
>
> mvn
> mvn clean install
> mvn - P deps (as the install way of cs 4.0.0)
> mvn clean install
>
>
> I got always the same errors.
>
>
> 2013/10/3 Chip Childers <ch...@sungard.com>
>
>> On Thu, Oct 03, 2013 at 11:21:57AM +0200, benoit lair wrote:
>> > A precision, the linux centos 6.3 i used is a ghost of the centos 6.3
>> > environment i use for compiling apache cloudstack 4.0.0-incubating,
>> which
>> > works very well, but not with cs 4.2.0
>>
>> Are you able to build using maven (don't use the package.sh script, do
>> mvn clean install).
>>
>
>

Re: Can't compile cloudstack 4.2 rpms from source

Posted by benoit lair <ku...@gmail.com>.
Yes Chip,

Even if try to compile cs 4.2.0 with mvn -P deps or if i try to compile
with the package.sh script, i have the same errors.

here is the ouput generated with package.sh :

http://pastebin.com/TNegzXUX

Regards, Benoit Lair.


2013/10/3 Chip Childers <ch...@sungard.com>

> So the mvn build has the same issues as the RPM build?  I'm just
> confirming what you are saying is the condition.
>
> On Thu, Oct 03, 2013 at 05:20:19PM +0200, benoit lair wrote:
> > Hello Chip,
> >
> > Yes i do. I've tried mvn clean install, and :
> >
> > mvn
> > mvn clean install
> > mvn - P deps (as the install way of cs 4.0.0)
> > mvn clean install
> >
> >
> > I got always the same errors.
> >
> >
> > 2013/10/3 Chip Childers <ch...@sungard.com>
> >
> > > On Thu, Oct 03, 2013 at 11:21:57AM +0200, benoit lair wrote:
> > > > A precision, the linux centos 6.3 i used is a ghost of the centos 6.3
> > > > environment i use for compiling apache cloudstack 4.0.0-incubating,
> which
> > > > works very well, but not with cs 4.2.0
> > >
> > > Are you able to build using maven (don't use the package.sh script, do
> > > mvn clean install).
> > >
>

Re: Can't compile cloudstack 4.2 rpms from source

Posted by Chip Childers <ch...@sungard.com>.
So the mvn build has the same issues as the RPM build?  I'm just
confirming what you are saying is the condition.

On Thu, Oct 03, 2013 at 05:20:19PM +0200, benoit lair wrote:
> Hello Chip,
> 
> Yes i do. I've tried mvn clean install, and :
> 
> mvn
> mvn clean install
> mvn - P deps (as the install way of cs 4.0.0)
> mvn clean install
> 
> 
> I got always the same errors.
> 
> 
> 2013/10/3 Chip Childers <ch...@sungard.com>
> 
> > On Thu, Oct 03, 2013 at 11:21:57AM +0200, benoit lair wrote:
> > > A precision, the linux centos 6.3 i used is a ghost of the centos 6.3
> > > environment i use for compiling apache cloudstack 4.0.0-incubating, which
> > > works very well, but not with cs 4.2.0
> >
> > Are you able to build using maven (don't use the package.sh script, do
> > mvn clean install).
> >

Re: Can't compile cloudstack 4.2 rpms from source

Posted by benoit lair <ku...@gmail.com>.
Hello Chip,

Yes i do. I've tried mvn clean install, and :

mvn
mvn clean install
mvn - P deps (as the install way of cs 4.0.0)
mvn clean install


I got always the same errors.


2013/10/3 Chip Childers <ch...@sungard.com>

> On Thu, Oct 03, 2013 at 11:21:57AM +0200, benoit lair wrote:
> > A precision, the linux centos 6.3 i used is a ghost of the centos 6.3
> > environment i use for compiling apache cloudstack 4.0.0-incubating, which
> > works very well, but not with cs 4.2.0
>
> Are you able to build using maven (don't use the package.sh script, do
> mvn clean install).
>

Re: Can't compile cloudstack 4.2 rpms from source

Posted by Chip Childers <ch...@sungard.com>.
On Thu, Oct 03, 2013 at 11:21:57AM +0200, benoit lair wrote:
> A precision, the linux centos 6.3 i used is a ghost of the centos 6.3
> environment i use for compiling apache cloudstack 4.0.0-incubating, which
> works very well, but not with cs 4.2.0

Are you able to build using maven (don't use the package.sh script, do
mvn clean install).

Re: Can't compile cloudstack 4.2 rpms from source

Posted by benoit lair <ku...@gmail.com>.
A precision, the linux centos 6.3 i used is a ghost of the centos 6.3
environment i use for compiling apache cloudstack 4.0.0-incubating, which
works very well, but not with cs 4.2.0


2013/10/3 benoit lair <ku...@gmail.com>

> Hello guys,
>
>
> I've already installed cs 4.2 from cloudstack rpm repos.
>
> It seems all is okay.
>
> Now i want to build my own rpm from source.
>
> I work on a centos 6.3 linux for building the rpms.
>
> I followed the docs in order to prepare my dev environment according to
> the following page :
>
>
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Installation_Guide/sect-source-buildrpm.html
>
> I adapted the filenames (here 4.0.0 with 4.2.0), but i got the following
> errors when trying to generate the rpms.
>
>
> -----------------------------------------------------------------------------------------
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 13:26.004s
> [INFO] Finished at: Thu Oct 03 10:07:41 CEST 2013
> [INFO] Final Memory: 37M/146M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile
> (default-compile) on project cloud-plugin-hypervisor-xen: Compilation
> failure: Compilation failure:
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[890,16]
> cannot find symbol
> [ERROR] symbol  : variable lockingMode
> [ERROR] location: class com.xensource.xenapi.VIF.Record
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[890,36]
> cannot find symbol
> [ERROR] symbol  : variable VifLockingMode
> [ERROR] location: class com.xensource.xenapi.Types
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[1099,12]
> cannot find symbol
> [ERROR] symbol  : variable lockingMode
> [ERROR] location: class com.xensource.xenapi.VIF.Record
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[1099,32]
> cannot find symbol
> [ERROR] symbol  : variable VifLockingMode
> [ERROR] location: class com.xensource.xenapi.Types
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[4869,20]
> cannot find symbol
> [ERROR] symbol  : variable lockingMode
> [ERROR] location: class com.xensource.xenapi.VIF.Record
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/CitrixResourceBase.java:[4869,40]
> cannot find symbol
> [ERROR] symbol  : variable VifLockingMode
> [ERROR] location: class com.xensource.xenapi.Types
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[160,43]
> cannot find symbol
> [ERROR] symbol  : method
> migrateReceive(com.xensource.xenapi.Connection,com.xensource.xenapi.Network,java.util.Map<java.lang.String,java.lang.String>)
> [ERROR] location: class com.xensource.xenapi.Host
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[175,30]
> cannot find symbol
> [ERROR] symbol  : method
> assertCanMigrateAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
> com.xensource.xenapi.SR
> >,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
> [ERROR] location: class com.xensource.xenapi.VM
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[189,30]
> cannot find symbol
> [ERROR] symbol  : method
> migrateSendAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
> com.xensource.xenapi.SR
> >,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
> [ERROR] location: class com.xensource.xenapi.VM
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[251,43]
> cannot find symbol
> [ERROR] symbol  : method
> migrateReceive(com.xensource.xenapi.Connection,com.xensource.xenapi.Network,java.util.Map<java.lang.String,java.lang.String>)
> [ERROR] location: class com.xensource.xenapi.Host
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[310,30]
> cannot find symbol
> [ERROR] symbol  : method
> assertCanMigrateAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
> com.xensource.xenapi.SR
> >,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
> [ERROR] location: class com.xensource.xenapi.VM
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[322,30]
> cannot find symbol
> [ERROR] symbol  : method
> migrateSendAsync(com.xensource.xenapi.Connection,java.util.Map<java.lang.String,java.lang.String>,boolean,java.util.Map<com.xensource.xenapi.VDI,
> com.xensource.xenapi.SR
> >,java.util.Map<com.xensource.xenapi.VIF,com.xensource.xenapi.Network>,java.util.Map<java.lang.String,java.lang.String>)
> [ERROR] location: class com.xensource.xenapi.VM
> [ERROR]
> /root/repository/apache-cloudstack-4.2.0-src/dist/rpmbuild/BUILD/cloudstack-4.2.0/plugins/hypervisors/xen/src/com/cloud/hypervisor/xen/resource/XenServer610Resource.java:[407,33]
> cannot find symbol
> [ERROR] symbol  : method poolMigrateAsync(com.xensource.xenapi.Connection,
> com.xensource.xenapi.SR,java.util.Map<java.lang.String,java.lang.String>)
> [ERROR] location: class com.xensource.xenapi.VDI
> [ERROR] -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
> [ERROR]
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]   mvn <goals> -rf :cloud-plugin-hypervisor-xen
> error: Bad exit status from /var/tmp/rpm-tmp.3KnzJm (%build)
>
>
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.3KnzJm (%build)
> [root@localhost centos63]#
>
> -------------------------------------------------------------------------------------------------------------
>
>
> Althought, i have well prepared my linux environment.
> Installed the rpm group "Developpement tools"
> Installed all the dependencies needed to compile the project
> Installed apache marvin 3.0.4 binaries
> moved them to /usr/local/maven
> made the symbolic links
> made the path updates with maven and the good jdk machine one
> executed mvn --version without errors
> so tar xvfz apache-cloudstack-4.2.0-src.tar.gz
> gone to packages/centos63
> launched ./package.sh
>
> So i got the output verbose errors i wrote at the beginning of my email.
>
> I even tried this tutorial in order to try compiling cloudstack 4.2 :
> http://thehyperadvisor.com/2013/09/25/cloudstack-4-2-rpm-build-how-to/
>
> In this blog, the differences are :
>
> yum install git ant ant-devel java-1.6.0-openjdk java-1.6.0-openjdk-devel mysql mysql-server tomcat6 mkisofs gcc python MySQL-python openssh-clients wget rpm-build ws-commons-util net-snmp genisoimage -y
>
> the use of apache maven 3.0.5 in place of maven 3.0.4 in the official docs.
>
> The set of the environment variables in /etc/profile.d/maven.sh instead of setting them just in a shell
>
>
>
> Even with this post, i can't build cs 4.2 from the source i got the same
> errors.
>
> Could you help me with this bug, Please ?
>
> Thanks a lot.
>
> Regards.
>
> Benoit Lair.
>