Jump to content
Форум по продукции MOXA

ц70

Пользователи
  • Posts

    1
  • Joined

  • Last visited

Posts posted by ц70

  1. В 14.08.2022 в 00:59, dima35 сказал:
    root@server:~/temp/moxa/moxa/moxa# ./mxinst
    
    ===============================================================================
    Copyright (C) 2002-2021  Moxa Inc.
    All Rights Reserved.
    
    MOXA NPort Server Real TTY Driver Ver5.1 Installation.
    System Information: Kernel 5.15.0-43-generic; Machine x86_64.
    ===============================================================================
    
    ********************************WARNING**********************************
     MOXA NPort Server Real TTY Driver has been tested under kernel 5.13.4.
     That may not be compatible with Linux Kernel versions 5.15.0-43-generic .
     To download the available driver, please visit Moxa at: http://www.moxa.com
     If you have questions, please contact Moxa support at: support@moxa.com
    *************************************************************************
    Press enter to continue...
    
    
    Building driver...
    
    If you want to use secure communication with target,
    you might choose [y] to enable the SSL function.
    Note: This function support RealCOM with secure mode only.
    Do you want to enable secure function? [y/N].
    
    make -C /lib/modules/5.15.0-43-generic/build M=/root/temp/moxa/moxa/moxa EXTRA_CFLAGS=" -DTTYNAME='"ttyr"'" modules
    make[1]: Entering directory '/usr/src/linux-headers-5.15.0-43-generic'
      CC [M]  /root/temp/moxa/moxa/moxa/npreal2.o
    /root/temp/moxa/moxa/moxa/npreal2.c:490:31: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
      490 |                 .write_room = npreal_write_room,
          |                               ^~~~~~~~~~~~~~~~~
    /root/temp/moxa/moxa/moxa/npreal2.c:490:31: note: (near initialization for ‘mpvar_ops.write_room’)
    /root/temp/moxa/moxa/moxa/npreal2.c:491:36: error: initialization of ‘unsigned int (*)(struct tty_struct *)’ from incompatible pointer type ‘int (*)(struct tty_struct *)’ [-Werror=incompatible-pointer-types]
      491 |                 .chars_in_buffer = npreal_chars_in_buffer,
          |                                    ^~~~~~~~~~~~~~~~~~~~~~
    /root/temp/moxa/moxa/moxa/npreal2.c:491:36: note: (near initialization for ‘mpvar_ops.chars_in_buffer’)
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal2_module_exit’:
    /root/temp/moxa/moxa/moxa/npreal2.c:570:9: error: implicit declaration of function ‘put_tty_driver’ [-Werror=implicit-function-declaration]
      570 |         put_tty_driver(DRV_VAR);
          |         ^~~~~~~~~~~~~~
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_init’:
    /root/temp/moxa/moxa/moxa/npreal2.c:663:25: error: implicit declaration of function ‘alloc_tty_driver’ [-Werror=implicit-function-declaration]
      663 |         npvar_sdriver = alloc_tty_driver(NPREAL_PORTS+1);
          |                         ^~~~~~~~~~~~~~~~
    /root/temp/moxa/moxa/moxa/npreal2.c:663:23: warning: assignment to ‘struct tty_driver *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
      663 |         npvar_sdriver = alloc_tty_driver(NPREAL_PORTS+1);
          |                       ^
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_close’:
    /root/temp/moxa/moxa/moxa/npreal2.c:1065:34: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     1065 |                         current->state = TASK_INTERRUPTIBLE;
          |                                  ^~~~~
          |                                  __state
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_ldisc_flush_buffer’:
    /root/temp/moxa/moxa/moxa/npreal2.c:1326:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     1326 |         current->state = TASK_INTERRUPTIBLE;
          |                  ^~~~~
          |                  __state
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_ioctl’:
    /root/temp/moxa/moxa/moxa/npreal2.c:1434:26: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     1434 |                 current->state = TASK_RUNNING;
          |                          ^~~~~
          |                          __state
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_block_til_ready’:
    /root/temp/moxa/moxa/moxa/npreal2.c:1755:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     1755 |         current->state = TASK_RUNNING;
          |                  ^~~~~
          |                  __state
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_startup’:
    /root/temp/moxa/moxa/moxa/npreal2.c:1792:18: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     1792 |         current->state = TASK_RUNNING;
          |                  ^~~~~
          |                  __state
    /root/temp/moxa/moxa/moxa/npreal2.c:1939:34: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     1939 |                         current->state = TASK_INTERRUPTIBLE;
          |                                  ^~~~~
          |                                  __state
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_shutdown’:
    /root/temp/moxa/moxa/moxa/npreal2.c:2052:26: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     2052 |                 current->state = TASK_INTERRUPTIBLE;
          |                          ^~~~~
          |                          __state
    /root/temp/moxa/moxa/moxa/npreal2.c: In function ‘npreal_wait_and_set_command’:
    /root/temp/moxa/moxa/moxa/npreal2.c:3935:34: error: ‘struct task_struct’ has no member named ‘state’; did you mean ‘__state’?
     3935 |                         current->state = TASK_INTERRUPTIBLE;
          |                                  ^~~~~
          |                                  __state
    cc1: some warnings being treated as errors
    make[2]: *** [scripts/Makefile.build:285: /root/temp/moxa/moxa/moxa/npreal2.o] Error 1
    make[1]: *** [Makefile:1875: /root/temp/moxa/moxa/moxa] Error 2
    make[1]: Leaving directory '/usr/src/linux-headers-5.15.0-43-generic'
    make: *** [Makefile:75: module] Error 2
    
    FAILED !!! Please check above message.

     

    # uname -a
    Linux server 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
    

     

    # lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 22.04.1 LTS
    Release:        22.04
    Codename:       jammy

     

    Такая же проблема с Astra Linux.... (((

    Moxa.jpg

×
×
  • Create New...