Martinx - ジェームズ
2010-Dec-10 22:09 UTC
[Xen-devel] Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
Guys, I''m trying to compile the Xen 4.0.1 on top of a Ubuntu Natty 11.04 32 bits but, it stops at blktap, check it out: make[5]: Entering directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' Makefile:23: === libgcrypt not installed: falling back to libcrypto ==gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blktapctrl.o blktapctrl.c gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blktapctrl_linux.o blktapctrl_linux.c gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -o blktapctrl blktapctrl.o blktapctrl_linux.o -L../../../tools/libxc -lxenctrl -L../../../tools/xenstore -lxenstore ../../memshr/libmemshr.a -L../lib -lblktap -lrt -lm -lpthread ../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_initialize'': /usr/src/xen-4.0.1/tools/memshr/interface.c:116: undefined reference to `xc_interface_open'' ../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_issue_ro_request'': /usr/src/xen-4.0.1/tools/memshr/interface.c:165: undefined reference to `xc_memshr_nominate_gref'' /usr/src/xen-4.0.1/tools/memshr/interface.c:179: undefined reference to `xc_memshr_share'' collect2: ld returned 1 exit status make[5]: *** [blktapctrl] Error 1 make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' make[4]: *** [subdir-install-drivers] Error 2 make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' make[3]: *** [subdirs-install] Error 2 make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' make[2]: *** [subdir-install-blktap] Error 2 make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'' make: *** [install-tools] Error 2 But the packages are installed... # dpkg -l | grep cryp ii libcrypto++-dev 5.6.0-6 General purpose cryptographic library - C++ development ii libcrypto++8 5.6.0-6 General purpose cryptographic library - shared library ii libgcrypt11 1.4.5-2ubuntu2 LGPL Crypto library - runtime library ii libgcrypt11-dev 1.4.5-2ubuntu2 LGPL Crypto library - development files ii libk5crypto3 1.8.3+dfsg-3 MIT Kerberos runtime libraries - Crypto Library ii openssl 0.9.8o-3ubuntu1 Secure Socket Layer (SSL) binary and related cryptographic tools What can I do? Thanks! Thiago _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Martinx - ジェームズ
2010-Dec-10 23:04 UTC
[Xen-users] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
Guys, I do: hg clone http://xenbits.xensource.com/xen-unstable.hg cd xen-unstable.hg make xen #OKAY ... make tools #FAIL ... make[4]: Entering directory `/home/administrativo/xen-unstable.hg/tools/blktap'' make -C drivers install make[5]: Entering directory `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'' Makefile:23: === libgcrypt not installed: falling back to libcrypto ==gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blk_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blk_linux.o blk_linux.c cc1: warnings being treated as errors In file included from tapdisk.h:62:0, from blk_linux.c:4: ../lib/blktaplib.h:199:0: error: "WRITE" redefined /usr/include/linux/fs.h:160:0: note: this is the location of the previous definition make[5]: *** [blk_linux.o] Error 1 make[5]: Leaving directory `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'' make[4]: *** [subdir-install-drivers] Error 2 make[4]: Leaving directory `/home/administrativo/xen-unstable.hg/tools/blktap'' make[3]: *** [subdirs-install] Error 2 make[3]: Leaving directory `/home/administrativo/xen-unstable.hg/tools/blktap'' make[2]: *** [subdir-install-blktap] Error 2 make[2]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'' make: *** [install-tools] Error 2 Can someone help me?! Thanks! Thiago 2010/12/10 Martinx - ジェА璽爛 <thiagocmartinsc@gmail.com>> Guys, > > I''m trying to compile the Xen 4.0.1 on top of a Ubuntu Natty 11.04 32 bits > but, it stops at blktap, check it out: > > make[5]: Entering directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' > Makefile:23: === libgcrypt not installed: falling back to libcrypto ==> gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing > -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value > -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.o.d > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib > -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore > -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE > -DMEMSHR -c -o blktapctrl.o blktapctrl.c > gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing > -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value > -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF > .blktapctrl_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror > -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include > -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I > ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blktapctrl_linux.o > blktapctrl_linux.c > gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing > -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value > -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.d > -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE > -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib > -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore > -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE > -DMEMSHR -o blktapctrl blktapctrl.o blktapctrl_linux.o > -L../../../tools/libxc -lxenctrl -L../../../tools/xenstore -lxenstore > ../../memshr/libmemshr.a -L../lib -lblktap -lrt -lm -lpthread > ../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_initialize'': > /usr/src/xen-4.0.1/tools/memshr/interface.c:116: undefined reference to > `xc_interface_open'' > ../../memshr/libmemshr.a(interface.o): In function > `memshr_vbd_issue_ro_request'': > /usr/src/xen-4.0.1/tools/memshr/interface.c:165: undefined reference to > `xc_memshr_nominate_gref'' > /usr/src/xen-4.0.1/tools/memshr/interface.c:179: undefined reference to > `xc_memshr_share'' > collect2: ld returned 1 exit status > make[5]: *** [blktapctrl] Error 1 > make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' > make[4]: *** [subdir-install-drivers] Error 2 > make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' > make[3]: *** [subdirs-install] Error 2 > make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' > make[2]: *** [subdir-install-blktap] Error 2 > make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' > make[1]: *** [subdirs-install] Error 2 > make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'' > make: *** [install-tools] Error 2 > > But the packages are installed... > > # dpkg -l | grep cryp > ii libcrypto++-dev 5.6.0-6 > General purpose cryptographic library - C++ development > ii libcrypto++8 5.6.0-6 > General purpose cryptographic library - shared library > ii libgcrypt11 1.4.5-2ubuntu2 > LGPL Crypto library - runtime library > ii libgcrypt11-dev 1.4.5-2ubuntu2 > LGPL Crypto library - development files > ii libk5crypto3 1.8.3+dfsg-3 > MIT Kerberos runtime libraries - Crypto Library > ii openssl 0.9.8o-3ubuntu1 > Secure Socket Layer (SSL) binary and related cryptographic tools > > What can I do? > > Thanks! > Thiago > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Martinx - ジェームズ
2010-Dec-15 22:15 UTC
[Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
Guys, I''m trying to repeat my compilation process, wich works on top of Ubuntu 10.04 and 10.10, on top of Ubuntu Natty 11.04 but, neither version 4.01 or 4.1-unstable are compiling... Xen 4.0.1: Ubuntu 10.04 64 bits - compiles Okay Ubuntu 10.10 64 bits - compiles Okay Ubuntu 11.04 64 bits - compilation failed Xen-Unstable: Ubuntu 10.04 64 bits - compiles Okay Ubuntu 10.10 64 bits - compiles Okay Ubuntu 11.04 64 bits - compilation failed --- My compilation procedure: Install Ubuntu 10.04 or 10.10 64 bits / Server or Desktop: aptitude update aptitude install bridge-utils build-essential libncurses5-dev dpkg-dev debhelper fakeroot uuid-dev iasl texinfo git-core apt-get build-dep xen-3.3 cd /usr/src wget http://bits.xensource.com/oss-xen/release/4.0.1/xen-4.0.1.tar.gz # can be: "hg clone http://xenbits.xensource.com/xen-unstable.hg" tar xf xen-4.0.1.tar.gz cd xen-4.0.1 # can be "cd xen-unstable.hg" make xen make tools make stubdom make install-xen # make install-tools make install-tools PYTHON_PREFIX_ARG make install-stubdom --- This procedure works fine on top of Ubuntu 10.04 and 10.10 but, it does not work with Ubuntu 11.04. Even if I install the libgcrypt... The compilation of the dom0 kernel is out of the scope of this work. Can someone help-me?! Thanks! Thiago 2010/12/10 Martinx - ジェームズ <thiagocmartinsc@gmail.com>> Guys, > > I do: > > hg clone http://xenbits.xensource.com/xen-unstable.hg > cd xen-unstable.hg > > make xen #OKAY > ... > make tools #FAIL > ... > make[4]: Entering directory > `/home/administrativo/xen-unstable.hg/tools/blktap'' > make -C drivers install > make[5]: Entering directory > `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'' > > Makefile:23: === libgcrypt not installed: falling back to libcrypto ==> gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 > -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes > -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF > .blk_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror > -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include > -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I > ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blk_linux.o blk_linux.c > cc1: warnings being treated as errors > In file included from tapdisk.h:62:0, > from blk_linux.c:4: > ../lib/blktaplib.h:199:0: error: "WRITE" redefined > /usr/include/linux/fs.h:160:0: note: this is the location of the previous > definition > make[5]: *** [blk_linux.o] Error 1 > make[5]: Leaving directory > `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'' > > make[4]: *** [subdir-install-drivers] Error 2 > make[4]: Leaving directory > `/home/administrativo/xen-unstable.hg/tools/blktap'' > > make[3]: *** [subdirs-install] Error 2 > make[3]: Leaving directory > `/home/administrativo/xen-unstable.hg/tools/blktap'' > > make[2]: *** [subdir-install-blktap] Error 2 > make[2]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'' > > make[1]: *** [subdirs-install] Error 2 > make[1]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'' > > make: *** [install-tools] Error 2 > > Can someone help me?! > > Thanks! > Thiago > > 2010/12/10 Martinx - ジェームズ <thiagocmartinsc@gmail.com> > > Guys, >> >> I''m trying to compile the Xen 4.0.1 on top of a Ubuntu Natty 11.04 32 >> bits but, it stops at blktap, check it out: >> >> make[5]: Entering directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' >> Makefile:23: === libgcrypt not installed: falling back to libcrypto ==>> gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing >> -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value >> -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.o.d >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib >> -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore >> -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE >> -DMEMSHR -c -o blktapctrl.o blktapctrl.c >> gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing >> -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value >> -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF >> .blktapctrl_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror >> -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include >> -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I >> ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blktapctrl_linux.o >> blktapctrl_linux.c >> gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing >> -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value >> -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.d >> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE >> -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib >> -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore >> -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE >> -DMEMSHR -o blktapctrl blktapctrl.o blktapctrl_linux.o >> -L../../../tools/libxc -lxenctrl -L../../../tools/xenstore -lxenstore >> ../../memshr/libmemshr.a -L../lib -lblktap -lrt -lm -lpthread >> ../../memshr/libmemshr.a(interface.o): In function >> `memshr_vbd_initialize'': >> /usr/src/xen-4.0.1/tools/memshr/interface.c:116: undefined reference to >> `xc_interface_open'' >> ../../memshr/libmemshr.a(interface.o): In function >> `memshr_vbd_issue_ro_request'': >> /usr/src/xen-4.0.1/tools/memshr/interface.c:165: undefined reference to >> `xc_memshr_nominate_gref'' >> /usr/src/xen-4.0.1/tools/memshr/interface.c:179: undefined reference to >> `xc_memshr_share'' >> collect2: ld returned 1 exit status >> make[5]: *** [blktapctrl] Error 1 >> make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' >> make[4]: *** [subdir-install-drivers] Error 2 >> make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' >> make[3]: *** [subdirs-install] Error 2 >> make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' >> make[2]: *** [subdir-install-blktap] Error 2 >> make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' >> make[1]: *** [subdirs-install] Error 2 >> make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'' >> make: *** [install-tools] Error 2 >> >> But the packages are installed... >> >> # dpkg -l | grep cryp >> ii libcrypto++-dev 5.6.0-6 >> General purpose cryptographic library - C++ development >> ii libcrypto++8 5.6.0-6 >> General purpose cryptographic library - shared library >> ii libgcrypt11 1.4.5-2ubuntu2 >> LGPL Crypto library - runtime library >> ii libgcrypt11-dev 1.4.5-2ubuntu2 >> LGPL Crypto library - development files >> ii libk5crypto3 1.8.3+dfsg-3 >> MIT Kerberos runtime libraries - Crypto Library >> ii openssl 0.9.8o-3ubuntu1 >> Secure Socket Layer (SSL) binary and related cryptographic tools >> >> What can I do? >> >> Thanks! >> Thiago >> >> >> >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Martinx - ジェームズ
2010-Dec-15 22:21 UTC
[Xen-users] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
Sorry, some times my english are terrible... I''m trying to repeat my compilation process, wich works on top of Ubuntu 10.04 and 10.10* but, on top of Ubuntu Natty 11.04*, neither version 4.01 or 4.1-unstable are compiling... Regards, Thiago 2010/12/15 Martinx - ジェА璽爛 <thiagocmartinsc@gmail.com>> Guys, > > I''m trying to repeat my compilation process, wich works on top of Ubuntu > 10.04 and 10.10, on top of Ubuntu Natty 11.04 but, neither version 4.01 or > 4.1-unstable are compiling... > > Xen 4.0.1: > Ubuntu 10.04 64 bits - compiles Okay > Ubuntu 10.10 64 bits - compiles Okay > Ubuntu 11.04 64 bits - compilation failed > > Xen-Unstable: > Ubuntu 10.04 64 bits - compiles Okay > Ubuntu 10.10 64 bits - compiles Okay > Ubuntu 11.04 64 bits - compilation failed > > --- > > My compilation procedure: > > Install Ubuntu 10.04 or 10.10 64 bits / Server or Desktop: > > aptitude update > aptitude install bridge-utils build-essential libncurses5-dev dpkg-dev > debhelper fakeroot uuid-dev iasl texinfo git-core > apt-get build-dep xen-3.3 > > cd /usr/src > > wget http://bits.xensource.com/oss-xen/release/4.0.1/xen-4.0.1.tar.gz # > can be: "hg clone http://xenbits.xensource.com/xen-unstable.hg" > tar xf xen-4.0.1.tar.gz > cd xen-4.0.1 # can be "cd xen-unstable.hg" > > make xen > make tools > make stubdom > > make install-xen > # make install-tools > make install-tools PYTHON_PREFIX_ARG> make install-stubdom > > --- > > This procedure works fine on top of Ubuntu 10.04 and 10.10 but, it does > not work with Ubuntu 11.04. Even if I install the libgcrypt... > > The compilation of the dom0 kernel is out of the scope of this work. > > > Can someone help-me?! > > Thanks! > Thiago > > 2010/12/10 Martinx - ジェА璽爛 <thiagocmartinsc@gmail.com> > >> Guys, >> >> I do: >> >> hg clone http://xenbits.xensource.com/xen-unstable.hg >> cd xen-unstable.hg >> >> make xen #OKAY >> ... >> make tools #FAIL >> ... >> make[4]: Entering directory >> `/home/administrativo/xen-unstable.hg/tools/blktap'' >> make -C drivers install >> make[5]: Entering directory >> `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'' >> >> Makefile:23: === libgcrypt not installed: falling back to libcrypto ==>> gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m32 >> -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes >> -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF >> .blk_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 >> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror >> -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include >> -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I >> ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blk_linux.o blk_linux.c >> cc1: warnings being treated as errors >> In file included from tapdisk.h:62:0, >> from blk_linux.c:4: >> ../lib/blktaplib.h:199:0: error: "WRITE" redefined >> /usr/include/linux/fs.h:160:0: note: this is the location of the previous >> definition >> make[5]: *** [blk_linux.o] Error 1 >> make[5]: Leaving directory >> `/home/administrativo/xen-unstable.hg/tools/blktap/drivers'' >> >> make[4]: *** [subdir-install-drivers] Error 2 >> make[4]: Leaving directory >> `/home/administrativo/xen-unstable.hg/tools/blktap'' >> >> make[3]: *** [subdirs-install] Error 2 >> make[3]: Leaving directory >> `/home/administrativo/xen-unstable.hg/tools/blktap'' >> >> make[2]: *** [subdir-install-blktap] Error 2 >> make[2]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'' >> >> make[1]: *** [subdirs-install] Error 2 >> make[1]: Leaving directory `/home/administrativo/xen-unstable.hg/tools'' >> >> make: *** [install-tools] Error 2 >> >> Can someone help me?! >> >> Thanks! >> Thiago >> >> 2010/12/10 Martinx - ジェА璽爛 <thiagocmartinsc@gmail.com> >> >> Guys, >>> >>> I''m trying to compile the Xen 4.0.1 on top of a Ubuntu Natty 11.04 32 >>> bits but, it stops at blktap, check it out: >>> >>> make[5]: Entering directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' >>> Makefile:23: === libgcrypt not installed: falling back to libcrypto ==>>> gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing >>> -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value >>> -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.o.d >>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE >>> -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib >>> -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore >>> -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE >>> -DMEMSHR -c -o blktapctrl.o blktapctrl.c >>> gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing >>> -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value >>> -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF >>> .blktapctrl_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 >>> -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror >>> -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include >>> -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I >>> ../../memshr -D_GNU_SOURCE -DMEMSHR -c -o blktapctrl_linux.o >>> blktapctrl_linux.c >>> gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing >>> -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value >>> -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.d >>> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE >>> -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib >>> -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore >>> -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE >>> -DMEMSHR -o blktapctrl blktapctrl.o blktapctrl_linux.o >>> -L../../../tools/libxc -lxenctrl -L../../../tools/xenstore -lxenstore >>> ../../memshr/libmemshr.a -L../lib -lblktap -lrt -lm -lpthread >>> ../../memshr/libmemshr.a(interface.o): In function >>> `memshr_vbd_initialize'': >>> /usr/src/xen-4.0.1/tools/memshr/interface.c:116: undefined reference to >>> `xc_interface_open'' >>> ../../memshr/libmemshr.a(interface.o): In function >>> `memshr_vbd_issue_ro_request'': >>> /usr/src/xen-4.0.1/tools/memshr/interface.c:165: undefined reference to >>> `xc_memshr_nominate_gref'' >>> /usr/src/xen-4.0.1/tools/memshr/interface.c:179: undefined reference to >>> `xc_memshr_share'' >>> collect2: ld returned 1 exit status >>> make[5]: *** [blktapctrl] Error 1 >>> make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' >>> make[4]: *** [subdir-install-drivers] Error 2 >>> make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' >>> make[3]: *** [subdirs-install] Error 2 >>> make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' >>> make[2]: *** [subdir-install-blktap] Error 2 >>> make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' >>> make[1]: *** [subdirs-install] Error 2 >>> make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'' >>> make: *** [install-tools] Error 2 >>> >>> But the packages are installed... >>> >>> # dpkg -l | grep cryp >>> ii libcrypto++-dev >>> 5.6.0-6 General purpose cryptographic library - >>> C++ development >>> ii libcrypto++8 >>> 5.6.0-6 General purpose cryptographic library - >>> shared library >>> ii libgcrypt11 >>> 1.4.5-2ubuntu2 LGPL Crypto library - runtime library >>> ii libgcrypt11-dev >>> 1.4.5-2ubuntu2 LGPL Crypto library - development files >>> ii libk5crypto3 >>> 1.8.3+dfsg-3 MIT Kerberos runtime libraries - Crypto >>> Library >>> ii openssl >>> 0.9.8o-3ubuntu1 Secure Socket Layer (SSL) binary and >>> related cryptographic tools >>> >>> What can I do? >>> >>> Thanks! >>> Thiago >>> >>> >>> >> >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ian Campbell
2010-Dec-16 09:34 UTC
[Xen-users] Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
On Wed, 2010-12-15 at 22:15 +0000, Martinx - ジェームズ wrote:> > gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls > -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall > -Wstrict-prototypes -Wno-unused-value > -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD > -MF .blk_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib > -I../../../tools/libxc -I../../../tools/include > -I../../../tools/xenstore -I../../../tools/include > -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c > -o blk_linux.o blk_linux.c > cc1: warnings being treated as errors > In file included from tapdisk.h:62:0, > from blk_linux.c:4: > ../lib/blktaplib.h:199:0: error: "WRITE" redefined > /usr/include/linux/fs.h:160:0: note: this is the location of > the previous definitionThe headers on natty appear to include a definition of WRITE which conflicts with the use of that name in blktap. This should avoid the issue. Ian. 8<--------------------------------------- # HG changeset patch # User Ian Campbell <ian.campbell@citrix.com> # Date 1292492034 0 # Node ID 0236d8adb081b93e509ec52654201ce88ad6570b # Parent d70d7c3311c495305ac1bde256122b09c58463e5 blktap[12]: include <sys/mount.h> instead of <linux/fs.h> The former is a userspace sanitised header which contains the definitions we need. In some distros linux/fs.h defines WRITE which conflicts with blktaps own use of that name. Also there is no reason to use <linux/errno.h> over the more normal <errno.h>. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> diff -r d70d7c3311c4 -r 0236d8adb081 tools/blktap/drivers/blk_linux.c --- a/tools/blktap/drivers/blk_linux.c Tue Dec 14 17:10:49 2010 +0000 +++ b/tools/blktap/drivers/blk_linux.c Thu Dec 16 09:33:54 2010 +0000 @@ -1,6 +1,6 @@ #include <inttypes.h> #include <sys/ioctl.h> -#include <linux/fs.h> +#include <sys/mount.h> #include "tapdisk.h" #include "blk.h" diff -r d70d7c3311c4 -r 0236d8adb081 tools/blktap2/drivers/blk_linux.c --- a/tools/blktap2/drivers/blk_linux.c Tue Dec 14 17:10:49 2010 +0000 +++ b/tools/blktap2/drivers/blk_linux.c Thu Dec 16 09:33:54 2010 +0000 @@ -1,7 +1,7 @@ #include <inttypes.h> +#include <errno.h> #include <sys/ioctl.h> -#include <linux/fs.h> -#include <linux/errno.h> +#include <sys/mount.h> #include "tapdisk.h" #include "blk.h" _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Martinx - ジェームズ
2010-Dec-16 17:27 UTC
Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
Ian, I chenge the files but, the error persist, check it out: root@natty02:/usr/src/xen-4.0.1# *head tools/blktap/drivers/blk_linux.c * #include <inttypes.h> #include <sys/ioctl.h> *#include <sys/mount.h>* #include "tapdisk.h" #include "blk.h" int blk_getimagesize(int fd, uint64_t *size) { int rc; root@natty02:/usr/src/xen-4.0.1# *make clean ; make tools* .... make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/memshr'' make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' make[2]: Entering directory `/usr/src/xen-4.0.1/tools'' make -C blktap install make[3]: Entering directory `/usr/src/xen-4.0.1/tools/blktap'' make[4]: Entering directory `/usr/src/xen-4.0.1/tools/blktap'' make -C lib install make[5]: Entering directory `/usr/src/xen-4.0.1/tools/blktap/lib'' ../../../tools/cross-install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/usr/lib64 ../../../tools/cross-install -d -m0755 -p /usr/src/xen-4.0.1/dist/install/usr/include ../../../tools/cross-install -m0644 -p libblktap.a libblktap.so.3.0.0 /usr/src/xen-4.0.1/dist/install/usr/lib64 ln -sf libblktap.so.3.0.0 /usr/src/xen-4.0.1/dist/install/usr/lib64/libblktap.so.3.0 ln -sf libblktap.so.3.0 /usr/src/xen-4.0.1/dist/install/usr/lib64/libblktap.so ../../../tools/cross-install -m0644 -p blktaplib.h /usr/src/xen-4.0.1/dist/install/usr/include make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap/lib'' make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' make[4]: Entering directory `/usr/src/xen-4.0.1/tools/blktap'' make -C drivers install make[5]: Entering directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' Makefile:23: === libgcrypt not installed: falling back to libcrypto ==gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .blktapctrl.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -Werror -Wno-unused -I../lib -I../../../tools/libxc -I../../../tools/include -I../../../tools/xenstore -I../../../tools/include -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -o blktapctrl blktapctrl.o blktapctrl_linux.o -L../../../tools/libxc -lxenctrl -L../../../tools/xenstore -lxenstore ../../memshr/libmemshr.a -L../lib -lblktap -lrt -lm -lpthread ../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_initialize'': /usr/src/xen-4.0.1/tools/memshr/interface.c:116: undefined reference to `xc_interface_open'' ../../memshr/libmemshr.a(interface.o): In function `memshr_vbd_issue_ro_request'': /usr/src/xen-4.0.1/tools/memshr/interface.c:165: undefined reference to `xc_memshr_nominate_gref'' /usr/src/xen-4.0.1/tools/memshr/interface.c:179: undefined reference to `xc_memshr_share'' collect2: ld returned 1 exit status make[5]: *** [blktapctrl] Error 1 make[5]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap/drivers'' make[4]: *** [subdir-install-drivers] Error 2 make[4]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' make[3]: *** [subdirs-install] Error 2 make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/blktap'' make[2]: *** [subdir-install-blktap] Error 2 make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'' make: *** [install-tools] Error 2 Thank you! Thiago 2010/12/16 Ian Campbell <Ian.Campbell@citrix.com>> On Wed, 2010-12-15 at 22:15 +0000, Martinx - ジェームズ wrote: > > > > gcc -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls > > -m32 -march=i686 -g -fno-strict-aliasing -std=gnu99 -Wall > > -Wstrict-prototypes -Wno-unused-value > > -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD > > -MF .blk_linux.o.d -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > > -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE > > -mno-tls-direct-seg-refs -Werror -Wno-unused -I../lib > > -I../../../tools/libxc -I../../../tools/include > > -I../../../tools/xenstore -I../../../tools/include > > -I ../../libaio/src -I ../../memshr -D_GNU_SOURCE -DMEMSHR -c > > -o blk_linux.o blk_linux.c > > cc1: warnings being treated as errors > > In file included from tapdisk.h:62:0, > > from blk_linux.c:4: > > ../lib/blktaplib.h:199:0: error: "WRITE" redefined > > /usr/include/linux/fs.h:160:0: note: this is the location of > > the previous definition > > The headers on natty appear to include a definition of WRITE which > conflicts with the use of that name in blktap. > > This should avoid the issue. > > Ian. > > 8<--------------------------------------- > > # HG changeset patch > # User Ian Campbell <ian.campbell@citrix.com> > # Date 1292492034 0 > # Node ID 0236d8adb081b93e509ec52654201ce88ad6570b > # Parent d70d7c3311c495305ac1bde256122b09c58463e5 > blktap[12]: include <sys/mount.h> instead of <linux/fs.h> > > The former is a userspace sanitised header which contains the > definitions we need. In some distros linux/fs.h defines WRITE which > conflicts with blktaps own use of that name. > > Also there is no reason to use <linux/errno.h> over the more normal > <errno.h>. > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> > > diff -r d70d7c3311c4 -r 0236d8adb081 tools/blktap/drivers/blk_linux.c > --- a/tools/blktap/drivers/blk_linux.c Tue Dec 14 17:10:49 2010 +0000 > +++ b/tools/blktap/drivers/blk_linux.c Thu Dec 16 09:33:54 2010 +0000 > @@ -1,6 +1,6 @@ > #include <inttypes.h> > #include <sys/ioctl.h> > -#include <linux/fs.h> > +#include <sys/mount.h> > #include "tapdisk.h" > #include "blk.h" > > diff -r d70d7c3311c4 -r 0236d8adb081 tools/blktap2/drivers/blk_linux.c > --- a/tools/blktap2/drivers/blk_linux.c Tue Dec 14 17:10:49 2010 +0000 > +++ b/tools/blktap2/drivers/blk_linux.c Thu Dec 16 09:33:54 2010 +0000 > @@ -1,7 +1,7 @@ > #include <inttypes.h> > +#include <errno.h> > #include <sys/ioctl.h> > -#include <linux/fs.h> > -#include <linux/errno.h> > +#include <sys/mount.h> > #include "tapdisk.h" > #include "blk.h" > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Olaf Hering
2010-Dec-16 17:36 UTC
Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
On Thu, Dec 16, Martinx - ジェームズ wrote:> Ian, > > I chenge the files but, the error persist, check it out:Try this patch, I sent a similar series once for xen-unstable. Maybe its time to backport the LDFLAGS reordering for 4.0.2. Olaf --- xen-4.0.1-testing.orig/tools/blktap/drivers/Makefile +++ xen-4.0.1-testing/tools/blktap/drivers/Makefile @@ -28,8 +28,9 @@ CFLAGS += -DMEMSHR MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a endif -LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread -LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz +LDFLAGS_xen := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) +LDFLAGS_blktapctrl := $(LDFLAGS_xen) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread $(LDFLAGS_xen) +LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz $(LDFLAGS_xen) BLK-OBJS-y := block-aio.o BLK-OBJS-y += block-sync.o _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Martinx - ジェームズ
2010-Dec-16 19:02 UTC
[Xen-users] Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
AWESOME! Thank both of you guys! Ian and Olaf! The two patches together are needed continue the compilation process. Attached to this mail, there is a new patch, which solves this problem. diff -Nru xen-4.0.1/tools/blktap/drivers/blk_linux.c xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c --- xen-4.0.1/tools/blktap/drivers/blk_linux.c 2010-08-25 07:22:07.000000000 -0300 +++ xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c 2010-12-16 16:12:19.464504421 -0200 @@ -1,6 +1,6 @@ #include <inttypes.h> #include <sys/ioctl.h> -#include <linux/fs.h> +#include <sys/mount.h> #include "tapdisk.h" #include "blk.h" diff -Nru xen-4.0.1/tools/blktap/drivers/Makefile xen-4.0.1-patched/tools/blktap/drivers/Makefile --- xen-4.0.1/tools/blktap/drivers/Makefile 2010-08-25 07:22:07.000000000 -0300 +++ xen-4.0.1-patched/tools/blktap/drivers/Makefile 2010-12-16 16:10:18.884503912 -0200 @@ -29,8 +29,9 @@ MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a endif -LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread -LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz +LDFLAGS_xen := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) +LDFLAGS_blktapctrl := $(LDFLAGS_xen) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread $(LDFLAGS_xen) +LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz $(LDFLAGS_xen) BLK-OBJS-y := block-aio.o BLK-OBJS-y += block-sync.o diff -Nru xen-4.0.1/tools/blktap2/drivers/blk_linux.c xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c --- xen-4.0.1/tools/blktap2/drivers/blk_linux.c 2010-08-25 07:22:07.000000000 -0300 +++ xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c 2010-12-16 16:12:39.094504255 -0200 @@ -1,7 +1,7 @@ #include <inttypes.h> +#include <errno.h> #include <sys/ioctl.h> -#include <linux/fs.h> -#include <linux/errno.h> +#include <sys/mount.h> #include "tapdisk.h" #include "blk.h" But now, I''m facing another problem, check it out: make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/remus'' make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' make[2]: Entering directory `/usr/src/xen-4.0.1/tools'' make -C xenpaging install make[3]: Entering directory `/usr/src/xen-4.0.1/tools/xenpaging'' gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .file_ops.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I ../../tools/python/xen/lowlevel/xc -I ./ -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -Werror -Wno-unused -g -Wp,-MD,.file_ops.o.d -c -o file_ops.o file_ops.c gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .xc.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I ../../tools/python/xen/lowlevel/xc -I ./ -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -Werror -Wno-unused -g -Wp,-MD,.xc.o.d -c -o xc.o xc.c gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .xenpaging.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I ../../tools/python/xen/lowlevel/xc -I ./ -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -Werror -Wno-unused -g -Wp,-MD,.xenpaging.o.d -c -o xenpaging.o xenpaging.c gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .policy_default.o.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I ../../tools/python/xen/lowlevel/xc -I ./ -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -Werror -Wno-unused -g -Wp,-MD,.policy_default.o.d -c -o policy_default.o policy_default.c gcc -O2 -fomit-frame-pointer -m64 -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement -D__XEN_TOOLS__ -MMD -MF .xenpaging.d -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I ../../tools/python/xen/lowlevel/xc -I ./ -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -Werror -Wno-unused -g -Wp,-MD,.xenpaging.d -L../../tools/libxc -lxenctrl -L../../tools/xenstore -lxenstore -o xenpaging file_ops.o xc.o xenpaging.o policy_default.o xc.o: In function `get_platform_info'': /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xg_save_restore.h:52: undefined reference to `xc_version'' /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xg_save_restore.h:55: undefined reference to `xc_version'' /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xg_save_restore.h:58: undefined reference to `xc_memory_op'' xc.o: In function `do_domctl'': /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xc_private.h:143: undefined reference to `hcall_buf_prep'' /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xc_private.h:145: undefined reference to `safe_strerror'' /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xc_private.h:145: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xc_private.h:154: undefined reference to `do_xen_hypercall'' /usr/src/xen-4.0.1/tools/xenpaging/../../tools/libxc/xc_private.h:161: undefined reference to `hcall_buf_release'' xc.o: In function `xc_mem_paging_flush_ioemu_cache'': /usr/src/xen-4.0.1/tools/xenpaging/xc.c:56: undefined reference to `xs_daemon_open'' /usr/src/xen-4.0.1/tools/xenpaging/xc.c:60: undefined reference to `xs_write'' /usr/src/xen-4.0.1/tools/xenpaging/xc.c:62: undefined reference to `xs_daemon_close'' xc.o: In function `xc_wait_for_event_or_timeout'': /usr/src/xen-4.0.1/tools/xenpaging/xc.c:79: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xc.c:85: undefined reference to `xc_evtchn_pending'' /usr/src/xen-4.0.1/tools/xenpaging/xc.c:92: undefined reference to `xc_evtchn_unmask'' /usr/src/xen-4.0.1/tools/xenpaging/xc.c:95: undefined reference to `xc_set_error'' xenpaging.o: In function `xenpaging_init'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:81: undefined reference to `xc_interface_open'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:117: undefined reference to `xc_mem_event_enable'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:127: undefined reference to `xc_evtchn_open'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:135: undefined reference to `xc_evtchn_bind_interdomain'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:170: undefined reference to `xc_domain_getinfolist'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:174: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:158: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:122: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:185: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:84: undefined reference to `xc_set_error'' xenpaging.o:/usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:103: more undefined references to `xc_set_error'' follow xenpaging.o: In function `xenpaging_teardown'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:219: undefined reference to `xc_mem_event_disable'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:227: undefined reference to `xc_evtchn_unbind'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:236: undefined reference to `xc_evtchn_close'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:245: undefined reference to `xc_interface_close'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:222: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:230: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:239: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:248: undefined reference to `xc_set_error'' xenpaging.o: In function `xenpaging_evict_page'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:316: undefined reference to `xc_map_foreign_pages'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:339: undefined reference to `xc_mem_paging_evict'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:343: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:329: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:320: undefined reference to `xc_set_error'' xenpaging.o: In function `evict_victim'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:433: undefined reference to `xc_mem_paging_nominate'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:441: undefined reference to `xc_set_error'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:447: undefined reference to `xc_set_error'' xenpaging.o: In function `xenpaging_resume_page'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:367: undefined reference to `xc_mem_paging_resume'' xenpaging.o: In function `xenpaging_populate_page'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:384: undefined reference to `xc_mem_paging_prep'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:388: undefined reference to `xc_set_error'' xenpaging.o: In function `main'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:572: undefined reference to `xc_set_error'' xenpaging.o: In function `xenpaging_populate_page'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:395: undefined reference to `xc_map_foreign_pages'' /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:408: undefined reference to `xc_set_error'' xenpaging.o: In function `main'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:613: undefined reference to `xc_set_error'' xenpaging.o: In function `xenpaging_populate_page'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:400: undefined reference to `xc_set_error'' xenpaging.o: In function `main'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:499: undefined reference to `xc_set_error'' xenpaging.o: In function `xenpaging_resume_page'': /usr/src/xen-4.0.1/tools/xenpaging/xenpaging.c:369: undefined reference to `xc_evtchn_notify'' collect2: ld returned 1 exit status make[3]: *** [xenpaging] Error 1 make[3]: Leaving directory `/usr/src/xen-4.0.1/tools/xenpaging'' make[2]: *** [subdir-install-xenpaging] Error 2 make[2]: Leaving directory `/usr/src/xen-4.0.1/tools'' make[1]: *** [subdirs-install] Error 2 make[1]: Leaving directory `/usr/src/xen-4.0.1/tools'' make: *** [install-tools] Error 2 Can you help me again?! Best regards! Thiago 2010/12/16 Olaf Hering <olaf@aepfle.de>> On Thu, Dec 16, Martinx - ジェームズ wrote: > > > Ian, > > > > I chenge the files but, the error persist, check it out: > > Try this patch, I sent a similar series once for xen-unstable. > Maybe its time to backport the LDFLAGS reordering for 4.0.2. > > Olaf > > --- xen-4.0.1-testing.orig/tools/blktap/drivers/Makefile > +++ xen-4.0.1-testing/tools/blktap/drivers/Makefile > @@ -28,8 +28,9 @@ CFLAGS += -DMEMSHR > MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a > endif > > -LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) > $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread > -LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz > +LDFLAGS_xen := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) > +LDFLAGS_blktapctrl := $(LDFLAGS_xen) $(MEMSHRLIBS) -L../lib -lblktap -lrt > -lm -lpthread $(LDFLAGS_xen) > +LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz > $(LDFLAGS_xen) > > BLK-OBJS-y := block-aio.o > BLK-OBJS-y += block-sync.o >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Olaf Hering
2010-Dec-16 19:16 UTC
[Xen-users] Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
On Thu, Dec 16, Martinx - ジェームズ wrote:> Can you help me again?!(xen-unstable changeset: 21972:d3de6f484610) --- xen-4.0.1-testing.orig/tools/xenpaging/Makefile +++ xen-4.0.1-testing/tools/xenpaging/Makefile @@ -27,7 +27,7 @@ IBINS = xenpaging all: $(IBINS) xenpaging: $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) install: all $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Martinx - ジェームズ
2010-Dec-16 20:21 UTC
Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
Olaf, You are the man! :-D Problem solved! Here is the patch to run "make xen ; make tools" from xen-4.0.1.tar.gz source on top of Ubuntu 11.04: diff -Nru xen-4.0.1/tools/blktap/drivers/blk_linux.c xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c --- xen-4.0.1/tools/blktap/drivers/blk_linux.c 2010-08-25 07:22:07.000000000 -0300 +++ xen-4.0.1-patched/tools/blktap/drivers/blk_linux.c 2010-12-16 17:42:14.694504013 -0200 @@ -1,6 +1,6 @@ #include <inttypes.h> #include <sys/ioctl.h> -#include <linux/fs.h> +#include <sys/mount.h> #include "tapdisk.h" #include "blk.h" diff -Nru xen-4.0.1/tools/blktap/drivers/Makefile xen-4.0.1-patched/tools/blktap/drivers/Makefile --- xen-4.0.1/tools/blktap/drivers/Makefile 2010-08-25 07:22:07.000000000 -0300 +++ xen-4.0.1-patched/tools/blktap/drivers/Makefile 2010-12-16 17:45:06.214503843 -0200 @@ -29,8 +29,9 @@ MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a endif -LDFLAGS_blktapctrl := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread -LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz +LDFLAGS_xen := $(LDFLAGS_libxenctrl) $(LDFLAGS_libxenstore) +LDFLAGS_blktapctrl := $(LDFLAGS_xen) $(MEMSHRLIBS) -L../lib -lblktap -lrt -lm -lpthread $(LDFLAGS_xen) +LDFLAGS_img := $(LIBAIO_DIR)/libaio.a $(CRYPT_LIB) -lpthread -lz $(LDFLAGS_xen) BLK-OBJS-y := block-aio.o BLK-OBJS-y += block-sync.o diff -Nru xen-4.0.1/tools/blktap2/drivers/blk_linux.c xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c --- xen-4.0.1/tools/blktap2/drivers/blk_linux.c 2010-08-25 07:22:07.000000000 -0300 +++ xen-4.0.1-patched/tools/blktap2/drivers/blk_linux.c 2010-12-16 17:43:12.624504046 -0200 @@ -1,7 +1,7 @@ #include <inttypes.h> +#include <errno.h> #include <sys/ioctl.h> -#include <linux/fs.h> -#include <linux/errno.h> +#include <sys/mount.h> #include "tapdisk.h" #include "blk.h" diff -Nru xen-4.0.1/tools/xenpaging/Makefile xen-4.0.1-patched/tools/xenpaging/Makefile --- xen-4.0.1/tools/xenpaging/Makefile 2010-08-25 07:22:10.000000000 -0300 +++ xen-4.0.1-patched/tools/xenpaging/Makefile 2010-12-16 17:45:35.264502700 -0200 @@ -27,7 +27,7 @@ all: $(IBINS) xenpaging: $(OBJS) - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) install: all $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) ---- Thank you! Thiago 2010/12/16 Olaf Hering <olaf@aepfle.de>> On Thu, Dec 16, Martinx - ジェームズ wrote: > > > Can you help me again?! > > (xen-unstable changeset: 21972:d3de6f484610) > > > --- xen-4.0.1-testing.orig/tools/xenpaging/Makefile > +++ xen-4.0.1-testing/tools/xenpaging/Makefile > @@ -27,7 +27,7 @@ IBINS = xenpaging > all: $(IBINS) > > xenpaging: $(OBJS) > - $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ > + $(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS) > > install: all > $(INSTALL_DIR) $(DESTDIR)$(SBINDIR) >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2010-Dec-22 16:35 UTC
[Xen-users] Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
Martinx - ¸§¼àº writes ("Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits"):> Here is the patch to run "make xen ; make tools" from xen-4.0.1.tar.gz > source on top of Ubuntu 11.04:I''ve been sort of following this conversation. How much of this do you think ought to be in xen-4.0-testing ? I ask because a big part of this change is to sort out the ordering of a linker command line, and we already have a much bigger change to do this in xen-unstable.hg (which will become Xen 4.1). Bear in mind that Xen 4.1 will be out early next year, and already has at least the link link ordering fix. Ian. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Olaf Hering
2011-Jan-10 10:23 UTC
[Xen-users] Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
On Wed, Dec 22, Ian Jackson wrote:> Martinx - ¸§¼àº writes ("Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits"): > > Here is the patch to run "make xen ; make tools" from xen-4.0.1.tar.gz > > source on top of Ubuntu 11.04: > > I''ve been sort of following this conversation. How much of this do > you think ought to be in xen-4.0-testing ? I ask because a big part > of this change is to sort out the ordering of a linker command line, > and we already have a much bigger change to do this in xen-unstable.hg > (which will become Xen 4.1).> Bear in mind that Xen 4.1 will be out early next year, and already has > at least the link link ordering fix.Looking at their website at https://wiki.ubuntu.com/NattyReleaseSchedule indicates that Xen 4.1 and their 11.04 release overlap. So those who compile from source could also use the 4.1 release. Olaf _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users