Error compiling Linux::AIO 1.3 on Fedora Core 1 and Fedora Core 2
Yusuf Goolamabbas
yusufg at outblaze.com
Sun Oct 24 23:32:14 PDT 2004
Anybody got perlbal running on Fedora Core, I got the following errors
trying to compile Linux::AIO 1.3 on Fedora Core 1 and Fedora Core 2
(have sent the error messages to Marc Lehman) but in case anyone on this
list has patches or workaround, pls point them to me
On Fedora Core 1, running kernel 2.6.9. I get the following when doing
perl Makefile.PL ; make
[root at 214 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:257: error: syntax error before "offset_t"
AIO.xs: In function `pread':
AIO.xs:257: error: `fd' undeclared (first use in this function)
AIO.xs:257: error: (Each undeclared identifier is reported only once
AIO.xs:257: error: for each function it appears in.)
AIO.xs:257: error: `buf' undeclared (first use in this function)
AIO.xs:257: error: `count' undeclared (first use in this function)
AIO.xs:257: error: `offset' undeclared (first use in this function)
AIO.xs: In function `aio_proc':
AIO.xs:258: error: syntax error before "offset_t"
AIO.xs: In function `pwrite':
AIO.xs:258: error: `fd' undeclared (first use in this function)
On Fedora Core 2 running 2.6.8-1.521, I get the following
[yusufg at yghome 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:290: error: too many arguments to function `pread64'
AIO.xs:291: error: too many arguments to function `pwrite64'
make: *** [AIO.o] Error 1
--
Yusuf Goolamabbas
yusufg at outblaze.com
More information about the perlbal
mailing list