IO:AIO Patch (Necessary for MogileFS::Server install)

13 views
Skip to first unread message

okwap

unread,
Nov 7, 2019, 2:13:28 AM11/7/19
to mogile
Hi all,
I encounter IO:AIO issues while installing MogileFS::Server.

The root cause is configure file of IO:AIO is incompatible with modern GCC versions.

Here is a patch to fix it:

--- IO-AIO-4.72.bad/configure   2019-04-03 10:38:14.000000000 +0800
+++ IO-AIO-4.72.good/configure  2019-11-07 11:36:31.701231825 +0800
@@ -2346,10 +2346,13 @@
 ... rest of stderr output deleted ...
          10q' conftest.err >conftest.er1
     cat conftest.er1 >&5
+    rm -f conftest.er1 conftest.err
   fi
-  rm -f conftest.er1 conftest.err
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }
+  if test $ac_status = 0; then :
+    break
+  fi
+  }
 done

 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3595,10 +3598,13 @@
 ... rest of stderr output deleted ...
          10q' conftest.err >conftest.er1
     cat conftest.er1 >&5
+    rm -f conftest.er1 conftest.err
   fi
-  rm -f conftest.er1 conftest.err
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
-  test $ac_status = 0; }
+  if test $ac_status = 0; then :
+    break
+  fi
+  }
 done


Dave Lambley

unread,
Nov 10, 2019, 9:23:24 AM11/10/19
to mog...@googlegroups.com
Hi,

On Thu, 7 Nov 2019 at 07:13, okwap <peter...@gmail.com> wrote:
>
> Hi all,
> I encounter IO:AIO issues while installing MogileFS::Server.
>
> The root cause is configure file of IO:AIO is incompatible with modern GCC versions.

What version of GCC / OS are you using?

Dave

okwap

unread,
Nov 14, 2019, 12:25:00 AM11/14/19
to mogile
Hi Dave,

root@20d01f7d587d:/# gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

root@20d01f7d587d:/# cat /etc/issue
Ubuntu 18.04.3 LTS \n \l

Dave Lambley

unread,
Nov 14, 2019, 10:49:07 AM11/14/19
to mog...@googlegroups.com
On Thu, 14 Nov 2019 at 05:25, okwap <peter...@gmail.com> wrote:
>
> Hi Dave,
>
> root@20d01f7d587d:/# gcc --version
> gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
> Copyright (C) 2017 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> root@20d01f7d587d:/# cat /etc/issue
> Ubuntu 18.04.3 LTS \n \l

Ah, thank you Peter. It seems to be looking for libperl, which doesn't
seem to be necessary for it to work. Installing libperl-dev fixes it
though.

Cheers,
Dave

okwap

unread,
Nov 15, 2019, 5:31:05 AM11/15/19
to mogile
Yeah I think libperl-dev is necessary for MogileFS installation.

However, in this case, the error message is:
gcc: error: unrecognized command line option '-V'

Dave Lambley

unread,
Nov 15, 2019, 9:22:06 AM11/15/19
to mog...@googlegroups.com
On Fri, 15 Nov 2019 at 10:31, okwap <peter...@gmail.com> wrote:
>
> Yeah I think libperl-dev is necessary for MogileFS installation.
>
> However, in this case, the error message is:
>
> gcc: error: unrecognized command line option '-V'

I saw those errors in config.log, but on my machine Makefile.PL
successfully completed once libperl-dev was installed. I've sent the
attached patch to the author, which seems to fix building *without*
libperl-dev, as it wasn't necessary on earlier versions.

Dave
libperl.patch

okwap

unread,
Nov 18, 2019, 12:43:54 AM11/18/19
to mogile
GJ!
I sent my patch to the author too.
Reply all
Reply to author
Forward
0 new messages