xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
@ 2010-12-10 22:09 Martinx - ジェームズ
  2010-12-10 23:04 ` Martinx - ジェームズ
  0 siblings, 1 reply; 12+ messages in thread
From: Martinx - ジェームズ @ 2010-12-10 22:09 UTC (permalink / raw)
  To: xen-devel, Xen List


[-- Attachment #1.1: Type: text/plain, Size: 3711 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 4081 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-10 22:09 Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits Martinx - ジェームズ
@ 2010-12-10 23:04 ` Martinx - ジェームズ
  2010-12-15 22:15   ` Martinx - ジェームズ
  0 siblings, 1 reply; 12+ messages in thread
From: Martinx - ジェームズ @ 2010-12-10 23:04 UTC (permalink / raw)
  To: xen-devel, Xen List


[-- Attachment #1.1: Type: text/plain, Size: 5799 bytes --]

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
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 8063 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-10 23:04 ` Martinx - ジェームズ
@ 2010-12-15 22:15   ` Martinx - ジェームズ
  2010-12-15 22:21     ` Martinx - ジェームズ
  2010-12-16  9:34     ` [Xen-devel] " Ian Campbell
  0 siblings, 2 replies; 12+ messages in thread
From: Martinx - ジェームズ @ 2010-12-15 22:15 UTC (permalink / raw)
  To: xen-devel, Xen List


[-- Attachment #1.1: Type: text/plain, Size: 7591 bytes --]

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
>>
>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 9153 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-15 22:15   ` Martinx - ジェームズ
@ 2010-12-15 22:21     ` Martinx - ジェームズ
  2010-12-16  9:34     ` [Xen-devel] " Ian Campbell
  1 sibling, 0 replies; 12+ messages in thread
From: Martinx - ジェームズ @ 2010-12-15 22:21 UTC (permalink / raw)
  To: xen-devel, Xen List


[-- Attachment #1.1: Type: text/plain, Size: 7972 bytes --]

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
>>>
>>>
>>>
>>
>

[-- Attachment #1.2: Type: text/html, Size: 11079 bytes --]

[-- Attachment #2: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-15 22:15   ` Martinx - ジェームズ
  2010-12-15 22:21     ` Martinx - ジェームズ
@ 2010-12-16  9:34     ` Ian Campbell
  2010-12-16 17:27       ` Martinx - ジェームズ
  1 sibling, 1 reply; 12+ messages in thread
From: Ian Campbell @ 2010-12-16  9:34 UTC (permalink / raw)
  To: Martinx - ジェームズ; +Cc: xen-devel, Xen List

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"
 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-16  9:34     ` [Xen-devel] " Ian Campbell
@ 2010-12-16 17:27       ` Martinx - ジェームズ
  2010-12-16 17:36         ` Olaf Hering
  0 siblings, 1 reply; 12+ messages in thread
From: Martinx - ジェームズ @ 2010-12-16 17:27 UTC (permalink / raw)
  To: Ian Campbell; +Cc: xen-devel, Xen List


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: Type: text/plain; charset=GB2312, Size: 6193 bytes --]

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"
>
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 7305 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-16 17:27       ` Martinx - ジェームズ
@ 2010-12-16 17:36         ` Olaf Hering
  2010-12-16 19:02           ` [Xen-devel] " Martinx - ジェームズ
  0 siblings, 1 reply; 12+ messages in thread
From: Olaf Hering @ 2010-12-16 17:36 UTC (permalink / raw)
  To: Martinx - ジェームズ
  Cc: xen-devel, Ian Campbell, Xen List

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-16 17:36         ` Olaf Hering
@ 2010-12-16 19:02           ` Martinx - ジェームズ
  2010-12-16 19:16             ` Olaf Hering
  0 siblings, 1 reply; 12+ messages in thread
From: Martinx - ジェームズ @ 2010-12-16 19:02 UTC (permalink / raw)
  To: Olaf Hering; +Cc: xen-devel, Ian Campbell, Xen List


[-- Attachment #1.1: Type: text/plain, Size: 11851 bytes --]

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
>

[-- Attachment #1.2: Type: text/html, Size: 13012 bytes --]

[-- Attachment #2: xen-4.0.1-bkltaps.patch --]
[-- Type: text/x-patch, Size: 1734 bytes --]

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"
 

[-- Attachment #3: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-16 19:02           ` [Xen-devel] " Martinx - ジェームズ
@ 2010-12-16 19:16             ` Olaf Hering
  2010-12-16 20:21               ` Martinx - ジェームズ
  0 siblings, 1 reply; 12+ messages in thread
From: Olaf Hering @ 2010-12-16 19:16 UTC (permalink / raw)
  To: Martinx - ジェームズ
  Cc: xen-devel, Ian Campbell, Xen List

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)

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-16 19:16             ` Olaf Hering
@ 2010-12-16 20:21               ` Martinx - ジェームズ
  2010-12-22 16:35                 ` [Xen-devel] " Ian Jackson
  0 siblings, 1 reply; 12+ messages in thread
From: Martinx - ジェームズ @ 2010-12-16 20:21 UTC (permalink / raw)
  To: Olaf Hering; +Cc: xen-devel, Ian Campbell, Xen List


[-- Attachment #1.1: Type: text/plain, Size: 3000 bytes --]

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)
>

[-- Attachment #1.2: Type: text/html, Size: 3968 bytes --]

[-- Attachment #2: xen-4.0.1-tools.diff --]
[-- Type: text/x-patch, Size: 2165 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-16 20:21               ` Martinx - ジェームズ
@ 2010-12-22 16:35                 ` Ian Jackson
  2011-01-10 10:23                   ` Olaf Hering
  0 siblings, 1 reply; 12+ messages in thread
From: Ian Jackson @ 2010-12-22 16:35 UTC (permalink / raw)
  To: Martinx -; +Cc: Olaf Hering, xen-devel, Ian Campbell, Xen List

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.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [Xen-devel] Re: Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits
  2010-12-22 16:35                 ` [Xen-devel] " Ian Jackson
@ 2011-01-10 10:23                   ` Olaf Hering
  0 siblings, 0 replies; 12+ messages in thread
From: Olaf Hering @ 2011-01-10 10:23 UTC (permalink / raw)
  To: Ian Jackson; +Cc: xen-devel, Ian Campbell, Martinx -, Xen List

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-01-10 10:23 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-10 22:09 Xen 4.0.1 failed to compile on Ubuntu Natty 32 bits Martinx - ジェームズ
2010-12-10 23:04 ` Martinx - ジェームズ
2010-12-15 22:15   ` Martinx - ジェームズ
2010-12-15 22:21     ` Martinx - ジェームズ
2010-12-16  9:34     ` [Xen-devel] " Ian Campbell
2010-12-16 17:27       ` Martinx - ジェームズ
2010-12-16 17:36         ` Olaf Hering
2010-12-16 19:02           ` [Xen-devel] " Martinx - ジェームズ
2010-12-16 19:16             ` Olaf Hering
2010-12-16 20:21               ` Martinx - ジェームズ
2010-12-22 16:35                 ` [Xen-devel] " Ian Jackson
2011-01-10 10:23                   ` Olaf Hering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).