On Fri, Oct 17, 2014 at 02:24:10PM +0200, Thorsten Glaser wrote:
> Try apt-get install bzip2:i386 then retry the above test.

ok:
mattia@chase ~ % eatmydata bzip2 -h 2>&1 | head -2
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libeatmydata.so' from 
LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.
mattia@chase ~ % LD_PRELOAD="libeatmydata.so" bzip2 -h 2>&1 | head -2
bzip2, a block-sorting file compressor.  Version 1.0.6, 6-Sept-2010.

mattia@chase ~ % dpkg -l | egrep (eatmydata|bzip2)
ii  bzip2                                 1.0.6-7                             
i386         high-quality block-sorting file compressor - utilities
ii  eatmydata                             82-1                                
all          Library and utilities designed to disable fsync and friends
ii  libeatmydata1:amd64                   82-1                                
amd64        Library and utilities to disable fsync and friends - shared library
ii  libeatmydata1:armel                   82-1                                
armel        Library and utilities to disable fsync and friends - shared library
ii  libeatmydata1:armhf                   82-1                                
armhf        Library and utilities to disable fsync and friends - shared library
ii  libeatmydata1:i386                    82-1                                
i386         Library and utilities to disable fsync and friends - shared library
ii  libeatmydata1:s390x                   82-1                                
s390x        Library and utilities to disable fsync and friends - shared library
ii  pbzip2                                1.1.9-1                             
amd64        parallel bzip2 implementation
mattia@chase ~ %

(I also tried with bzip2:{armhf,armel} I don't currently have libeatmydata:arm64
because I waiting for the buildds to finish...)

As I said previusly, what's matter is *how* you load the library.
Currently the "bug" is in the script, and can be fixed just stripping out the
full path, but given that I'm not 101% of what that means, I'll leave it there
for now (as I already said)

Also, please note the different error ld yields:
mine: wrong ELF class: ELFCLASS64
yours: cannot open shared object file

I do expect mine, but yours make no sense to me, and for what I'm concerned
there is something wrong on your part.

-- 
regards,
                                                Mattia Rizzolo

GPG Key: 4096R/B9444540 http://goo.gl/I8TMB
more about me:          http://mapreri.org
Launchpad User:         https://launchpad.net/~mapreri
Ubuntu Wiki page:       https://wiki.ubuntu.com/MattiaRizzolo

Attachment: signature.asc
Description: Digital signature

Reply via email to