• libfuse-perl FTBFS on mips

    From Bastien ROUCARIES@21:1/5 to All on Mon Jul 2 16:00:01 2018
    Hi,

    recent libfuse-perl FTBFS on mips

    I am clue less could you get a glimpse look like a compiler/preprocessor bug

    Bastien

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From YunQiang Su@21:1/5 to All on Mon Jul 2 17:50:02 2018
    Bastien ROUCARIES <roucaries.bastien@gmail.com> 于2018年7月2日周一 下午9:52写道:

    Hi,

    recent libfuse-perl FTBFS on mips

    I am clue less could you get a glimpse look like a compiler/preprocessor bug

    Thank you for your report. I will have a look at it.
    It is a quite strange problem.


    Bastien



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From YunQiang Su@21:1/5 to All on Wed Jul 11 02:40:02 2018
    With some track, I found that x86 use asm-generic/ioctls.h, while
    mips* use itself's asm/ioctls.h,
    which lack some of macros defined.

    I will go ahead to dig why this delta.
    YunQiang Su <wzssyqa@gmail.com> 于2018年7月2日周一 下午11:49写道:

    Bastien ROUCARIES <roucaries.bastien@gmail.com> 于2018年7月2日周一 下午9:52写道:

    Hi,

    recent libfuse-perl FTBFS on mips

    I am clue less could you get a glimpse look like a compiler/preprocessor bug

    Thank you for your report. I will have a look at it.
    It is a quite strange problem.


    Bastien



    --
    YunQiang Su



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From YunQiang Su@21:1/5 to All on Wed Jul 11 04:50:01 2018
    It seems a glibc problem, in /usr/include/mips64el-linux-gnuabi64/asm/sockios.h,

    which use macro from ioctl.h.
    So sys/ioctl.h should be include before sys/socket.h

    #include <sys/socket.h>
    #include <sys/ioctl.h>

    #include <stdio.h>
    int main(){
    long a = IOC_IN;
    printf("%lx\n", a);
    }
    YunQiang Su <wzssyqa@gmail.com> 于2018年7月11日周三 上午8:36写道:

    With some track, I found that x86 use asm-generic/ioctls.h, while
    mips* use itself's asm/ioctls.h,
    which lack some of macros defined.

    I will go ahead to dig why this delta.
    YunQiang Su <wzssyqa@gmail.com> 于2018年7月2日周一 下午11:49写道:

    Bastien ROUCARIES <roucaries.bastien@gmail.com> 于2018年7月2日周一 下午9:52写道:

    Hi,

    recent libfuse-perl FTBFS on mips

    I am clue less could you get a glimpse look like a compiler/preprocessor bug

    Thank you for your report. I will have a look at it.
    It is a quite strange problem.


    Bastien



    --
    YunQiang Su



    --
    YunQiang Su



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From YunQiang Su@21:1/5 to All on Fri Jul 13 04:30:01 2018
    Since this a bug of glibc[1],
    as a workaround now, you can add

    #ifdef __mips
    #include <sys/ioctl.h>
    #endif

    on the top of Fuse.xs.


    [1]. https://sourceware.org/bugzilla/show_bug.cgi?id=23404
    YunQiang Su <wzssyqa@gmail.com> 于2018年7月11日周三 上午10:40写道:

    It seems a glibc problem, in /usr/include/mips64el-linux-gnuabi64/asm/sockios.h,

    which use macro from ioctl.h.
    So sys/ioctl.h should be include before sys/socket.h

    #include <sys/socket.h>
    #include <sys/ioctl.h>

    #include <stdio.h>
    int main(){
    long a = IOC_IN;
    printf("%lx\n", a);
    }
    YunQiang Su <wzssyqa@gmail.com> 于2018年7月11日周三 上午8:36写道:

    With some track, I found that x86 use asm-generic/ioctls.h, while
    mips* use itself's asm/ioctls.h,
    which lack some of macros defined.

    I will go ahead to dig why this delta.
    YunQiang Su <wzssyqa@gmail.com> 于2018年7月2日周一 下午11:49写道:

    Bastien ROUCARIES <roucaries.bastien@gmail.com> 于2018年7月2日周一 下午9:52写道:

    Hi,

    recent libfuse-perl FTBFS on mips

    I am clue less could you get a glimpse look like a compiler/preprocessor bug

    Thank you for your report. I will have a look at it.
    It is a quite strange problem.


    Bastien



    --
    YunQiang Su



    --
    YunQiang Su



    --
    YunQiang Su



    --
    YunQiang Su

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)