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

frdemon

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

    3
  • Joined

  • Last visited

Everything posted by frdemon

  1. Теперь все замечательно собирается, есть варнинги: [root@localhost moxa]# make make -C /lib/modules/3.12.19-std-def-alt2/build SUBDIRS=/root/build/moxa modules make[1]: Вход в каталог `/usr/src/linux-3.12.19-std-def-alt2' CC [M] /root/build/moxa/npreal2.o Building modules, stage 2. MODPOST 1 modules CC /root/build/moxa/npreal2.mod.o LD [M] /root/build/moxa/npreal2.ko make[1]: Выход из каталога `/usr/src/linux-3.12.19-std-def-alt2' cp -p npreal2.ko /lib/modules/3.12.19-std-def-alt2/kernel/drivers/char/ depmod -a cc -c npreal2d.c cc npreal2d.o -o npreal2d strip npreal2d cc -c redund_main.c cc -c redund.c cc redund_main.o redund.o -lpthread -o npreal2d_redund strip npreal2d_redund cc -o mxaddsvr mxaddsvr.c mxaddsvr.c: In function ‘main’: mxaddsvr.c:562:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxaddsvr.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ strip mxaddsvr cc -o mxdelsvr mxdelsvr.c mxdelsvr.c: In function ‘main’: mxdelsvr.c:74:13: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxdelsvr.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ mxdelsvr.c:129:13: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxdelsvr.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ mxdelsvr.c:225:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxdelsvr.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ strip mxdelsvr cc -o mxcfmat mxcfmat.c mxcfmat.c: In function ‘main’: mxcfmat.c:44:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxcfmat.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ strip mxcfmat cc -o mxloadsvr mxloadsvr.c mxloadsvr.c: In function ‘modify_script’: mxloadsvr.c:149:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&filestr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxloadsvr.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ mxloadsvr.c:162:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&filestr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxloadsvr.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ mxloadsvr.c: In function ‘main’: mxloadsvr.c:265:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxloadsvr.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ strip mxloadsvr cc -o mxsetsec mxsetsec.c mxsetsec.c: In function ‘main’: mxsetsec.c:206:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxsetsec.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ mxsetsec.c:298:9: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default] if (getline (&tmpstr, &len, f) < 0) ^ In file included from nport.h:1:0, from mxsetsec.c:1: /usr/include/stdio.h:678:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘int *’ extern _IO_ssize_t getline (char **__restrict __lineptr, ^ strip mxsetsec
  2. Примите мои извинения за немногословность. Именно это я и хотел сказать.
  3. [root@localhost moxa]# make make -C /lib/modules/3.12.19-std-def-alt2/build SUBDIRS=/root/build/moxa modules make[1]: Вход в каталог `/usr/src/linux-3.12.19-std-def-alt2' CC [M] /root/build/moxa/npreal2.o /root/build/moxa/npreal2.c: In function ‘tty_buffer_free’: /root/build/moxa/npreal2.c:3556:17: error: incompatible types when assigning to type ‘struct tty_buffer *’ from type ‘struct llist_head’ /root/build/moxa/npreal2.c:3557:29: error: incompatible types when assigning to type ‘struct llist_head’ from type ‘struct tty_buffer *’ /root/build/moxa/npreal2.c: In function ‘npreal_flush_to_ldisc’: /root/build/moxa/npreal2.c:3630:9: warning: passing argument 1 of ‘spinlock_check’ from incompatible pointer type [enabled by default] In file included from include/linux/seqlock.h:35:0, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /root/build/moxa/npreal2.c:42: include/linux/spinlock.h:280:31: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct mutex *’ /root/build/moxa/npreal2.c:3663:26: error: ‘struct tty_buffer’ has no member named ‘char_buf_ptr’ /root/build/moxa/npreal2.c:3664:26: error: ‘struct tty_buffer’ has no member named ‘flag_buf_ptr’ /root/build/moxa/npreal2.c:3669:17: warning: passing argument 1 of ‘spin_unlock_irqrestore’ from incompatible pointer type [enabled by default] In file included from include/linux/seqlock.h:35:0, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /root/build/moxa/npreal2.c:42: include/linux/spinlock.h:346:20: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct mutex *’ /root/build/moxa/npreal2.c:3679:17: warning: passing argument 1 of ‘spinlock_check’ from incompatible pointer type [enabled by default] In file included from include/linux/seqlock.h:35:0, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /root/build/moxa/npreal2.c:42: include/linux/spinlock.h:280:31: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct mutex *’ /root/build/moxa/npreal2.c:3691:9: warning: passing argument 1 of ‘spin_unlock_irqrestore’ from incompatible pointer type [enabled by default] In file included from include/linux/seqlock.h:35:0, from include/linux/time.h:5, from include/linux/stat.h:18, from include/linux/module.h:10, from /root/build/moxa/npreal2.c:42: include/linux/spinlock.h:346:20: note: expected ‘struct spinlock_t *’ but argument is of type ‘struct mutex *’ /root/build/moxa/npreal2.c: In function ‘npreal_net_open’: /root/build/moxa/npreal2.c:3811:28: warning: unused variable ‘de’ [-Wunused-variable] /root/build/moxa/npreal2.c: At top level: /root/build/moxa/npreal2.c:3768:13: warning: ‘npreal_create_proc_entry’ defined but not used [-Wunused-function] make[2]: *** [/root/build/moxa/npreal2.o] Ошибка 1 make[1]: *** [_module_/root/build/moxa] Ошибка 2 make[1]: Выход из каталога `/usr/src/linux-3.12.19-std-def-alt2' make: *** [module] Ошибка 2 [root@localhost moxa]# uname -a Linux localhost.localdomain 3.12.19-std-def-alt2 #1 SMP Mon May 12 05:46:44 UTC 2014 x86_64 GNU/Linux [root@localhost moxa]# gcc -v Using built-in specs. COLLECT_GCC=x86_64-alt-linux-gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-alt-linux/4.8/lto-wrapper Target: x86_64-alt-linux Configured with: ../configure --host=x86_64-alt-linux --build=x86_64-alt-linux --target=x86_64-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var/lib --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext --enable-shared --enable-bootstrap --program-suffix=-4.8 --with-slibdir=/lib64 --with-bugurl=http://bugzilla.altlinux.org --enable-__cxa_atexit --enable-threads=posix --enable-checking=release --with-system-zlib --without-included-gettext --enable-multilib --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,fortran,objc,obj-c++,java,ada,go,lto --enable-plugin --enable-java-awt=gtk --with-native-libdir=/usr/lib64/gcj-4.8 --with-ecj-jar=/usr/share/java/ecj.jar --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-1.5.0.0/jre --enable-libgcj-multifile --disable-libjava-multilib --enable-java-maintainer-mode --with-arch_32=i586 --with-tune_32=generic --with-multilib-list=m64,m32,mx32 Thread model: posix gcc version 4.8.2 20140120 (ALT Linux 4.8.2-alt3) (GCC)
×
×
  • Create New...