cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benoit lair <kurushi4...@gmail.com>
Subject Can't compile cloudstack 4.2 rpms from source
Date Thu, 03 Oct 2013 09:09:28 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message