cpan Linux::AIO 1.3 broken (fwd)

Brad Fitzpatrick brad at danga.com
Mon Oct 25 13:23:03 PDT 2004


Let's wait until Marc fixes this the way he wants to.

In the meantime, perhaps go back to the version before AMD64 support was
added and apply this old patch of mine:

http://danga.com/misc/unlink-aio.diff

For a while Marc and I both had our own 1.1, 1.2, and now 1.3 versions, so
try applying that patch (or its concepts) against his 1.1 or 1.2 to see if
you get a clean apply.

But really 1.2 should be fine... the only reason we require 1.3 is for
the async unlink support we added for doing DELETE http requests without
blocking.  Unless you plan to run a webserver with PUT and DELETE enabled,
you could just change Perlbal to not require version 1.3.

- Brad


On Mon, 25 Oct 2004, Pedro Figueiredo wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> i still get the same errors after applying the patch:
>
> [pfig at tux Perlbal-1.01]$ cd Linux-AIO-1.3
> [pfig at tux Linux-AIO-1.3]$ perl Makefile.PL
>
> WARNING: This module is architecture-dependent and currently only
> tested on
>           little-endian 32-bit architectures. If the module (esp.
> aio_read
>           and aio_write) doesn't work, please report this and I'll fix it
>           for you. I promise ;)
>
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Linux::AIO
> [pfig at tux Linux-AIO-1.3]$ patch < ../AIO.xs.patch
> patching file AIO.xs
> [pfig at tux Linux-AIO-1.3]$ make
> cp AIO.pm blib/lib/Linux/AIO.pm
> /usr/bin/perl /usr/lib/perl5/5.8.3/ExtUtils/xsubpp  -typemap
> /usr/lib/perl5/5.8.3/ExtUtils/typemap  AIO.xs > AIO.xsc && mv AIO.xsc
> AIO.c
> gcc -c   -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING
> - -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
> - -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -march=i386
> - -mcpu=i686   -DVERSION=\"1.3\" -DXS_VERSION=\"1.3\"
> "-I/usr/lib/perl5/5.8.3/i386-linux-thread-multi/CORE"   AIO.c
> AIO.xs: In function `aio_proc':
> AIO.xs:247: error: syntax error before "int"
> AIO.xs:296: error: too many arguments to function `pread64'
> AIO.xs:297: error: too many arguments to function `pwrite64'
> make: *** [AIO.o] Error 1
>
> this is on fedora core 2 with kernel 2.6.5-1-smp
>
> one thing that's bothering me is why the compiler is entering the
> 64-bit branch with pread64 and pwrite64, since i'm on a 32-bit machine
> (quad xeon).
>
> cheers,
>
> pedro
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.6 (Darwin)
>
> iD8DBQFBfV6LuoJcYOTLmGYRAvGNAKDXy973mBmuLkrOox57aT+XCeqseACgxvN2
> 8B9Q/Tx9K3gpEfhkzbMKHXI=
> =bUeD
> -----END PGP SIGNATURE-----
>
>


More information about the perlbal mailing list