[ptxdist] Current build breaks: host-util-linux-ng 2.17 and fallocate tool

2010-02-22 Thread Carsten Schlote
Hi

while setting up a VM machine from scratch for ptxdist development, we
found then following problem:

fallocate.o: In function `main':
/home/cschlote/src/ptx/ptxdist-projects.git/ptxdist-kp-prj/platform-kp-mcb2-32/build-host/util-linux-ng-2.17/sys-utils/fallocate.c:162:
 undefined reference to `fallocate64'
collect2: ld returned 1 exit status
make[3]: *** [fallocate] Error 1
make[3]: *** Waiting for unfinished jobs
make[3]: Leaving directory
`/home/cschlote/src/ptx/ptxdist-projects.git/ptxdist-kp-prj/platform-kp-mcb2-32/build-host/util-linux-ng-2.17/sys-utils'
make[2]: Leaving directory
`/home/cschlote/src/ptx/ptxdist-projects.git/ptxdist-kp-prj/platform-kp-mcb2-32/build-host/util-linux-ng-2.17'
make[2]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/cschlote/src/ptx/ptxdist-projects.git/ptxdist-kp-prj/platform-kp-mcb2-32/build-host/util-linux-ng-2.17'
make[1]: *** [all] Error 2
make: ***
[/home/cschlote/src/ptx/ptxdist-projects.git/ptxdist-kp-prj/platform-kp-mcb2-32/state/host-util-linux-ng.compile]
 Error 2


This problem was already reported by Mike Frysinger:
http://groups.google.com/group/linux.kernel/browse_thread/thread/f8ec94b7f4eddfdb

There seem to be also some other problems with util-linux-ng/libblkid:
https://bugs.launchpad.net/ubuntu/lucid/+source/util-linux/+bug/426027

I think the problem started with the update from 2.16.1 to 2.17 some
days ago.

The usual workaround is to omit 'fallocate' from the build right now -
at least regarding other postings on the net.

Patch for that is WIP.

As an immediate workaround you can touch/create the resulting fallocate
tool by hand. The tool isn't required anyway right now.


-- 
Carsten Schlote c.schl...@konzeptpark.de
konzeptpark.de

--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Current build breaks: host-util-linux-ng 2.17 and fallocate tool

2010-02-22 Thread Carsten Schlote
Hi

The problem can be avoided with the attached patch. It configures the
host built to omit fallocate from the build.

Carsten




commit-2c422d1
Description: commit-2c422d1
--
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] Current build breaks: host-util-linux-ng 2.17 and fallocate tool

2010-02-22 Thread Michael Olbrich
Hi,

On Mon, Feb 22, 2010 at 10:49:25AM +0100, Carsten Schlote wrote:
 while setting up a VM machine from scratch for ptxdist development, we
 found then following problem:
 
 fallocate.o: In function `main':
 /home/cschlote/src/ptx/ptxdist-projects.git/ptxdist-kp-prj/platform-kp-mcb2-32/build-host/util-linux-ng-2.17/sys-utils/fallocate.c:162:
  undefined reference to `fallocate64'
[...]
 This problem was already reported by Mike Frysinger:
 http://groups.google.com/group/linux.kernel/browse_thread/thread/f8ec94b7f4eddfdb
 
 There seem to be also some other problems with util-linux-ng/libblkid:
 https://bugs.launchpad.net/ubuntu/lucid/+source/util-linux/+bug/426027
 
 I think the problem started with the update from 2.16.1 to 2.17 some
 days ago.
 
 The usual workaround is to omit 'fallocate' from the build right now -
 at least regarding other postings on the net.
 
 Patch for that is WIP.
 
 As an immediate workaround you can touch/create the resulting fallocate
 tool by hand. The tool isn't required anyway right now.

Or configure with --disable-fallocate. I pushed patches to do this and
update to 2.17.1 (released today :-)).
Please test if it works now.

Regards,
Michael Olbrich

-- 
Pengutronix e.K.   | |
Industrial Linux Solutions | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0|
Amtsgericht Hildesheim, HRA 2686   | Fax:   +49-5121-206917- |

--
ptxdist mailing list
ptxdist@pengutronix.de