Yudi & Matthew RE: > make[1]: Entering directory `/root/martian/modem'
-e CC main.o main.c:15:19: error: stdio.h: No such file or directory main.c:17:40: error: sys/mman.h: No such file or directory main.c:18:36: error: string.h: No such file or directory
------- at http://packages.ubuntu.com/feisty/devel/linux-kernel-devel you need to get the linux-kernel-devel and all its dependent packages which can then be installed with: $ sudo dpkg -i *.deb If you have an alternate ethernet connection, you could just. $ sudo apt-get install linux-kernel-devel However, since I've already compiled the drivers, I'll send then to you: martian-2.6.20-15-generic.tar.gz Under Linux do: $ tar zxf martian*.tar.gz $ ls $ cd martian-20061203 $ls Install the precompiled kmodulemartian_drv.ko and and modem/martian_modem with: $ sudo make install Do NOT do a preliminary "make clean" or you will delete the compiled products MarvS MarvS On 7/26/07, yudi dwi cahyono <cahyono82@xxxxxxxxx> wrote:
Thanks for you help, but I still got problem on it. This is the report which I have done on my Ubuntu 7.04 root@cahyo-laptop:~# cd martian root@cahyo-laptop:~/martian# ls ChangeLog INSTALL Makefile modem scripts Concept kmodule martian.h README root@cahyo-laptop:~/martian# make clean make -C kmodule/ clean make[1]: Entering directory `/root/martian/kmodule' make -C /lib/modules/2.6.20-15-generic/build M="/root/martian/kmodule" clean make[2]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic' CLEAN /root/martian/kmodule/.tmp_versions make[2]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic' make[1]: Leaving directory `/root/martian/kmodule' make -C modem/ clean make[1]: Entering directory `/root/martian/modem' -e RM OBJS -e RM BINS -e RM TOOLS make[1]: Leaving directory `/root/martian/modem' root@cahyo-laptop :~/martian# make make -C kmodule/ modules make[1]: Entering directory `/root/martian/kmodule' make -C /lib/modules/2.6.20-15-generic/build M="/root/martian/kmodule" modules make[2]: Entering directory `/usr/src/linux- headers-2.6.20-15-generic' CC [M] /root/martian/kmodule/martian.o /root/martian/kmodule/martian.c: In function 'martian_isr': /root/martian/kmodule/martian.c:160: warning: value computed is not used /root/martian/kmodule/martian.c: In function 'martian_add': /root/martian/kmodule/martian.c:662: warning: passing argument 2 of 'request_irq' from incompatible pointer type CC [M] /root/martian/kmodule/marsio.o CC [M] /root/martian/kmodule/mfifo.o LD [M] /root/martian/kmodule/martian_dev.o Building modules, stage 2. MODPOST 1 modules CC /root/martian/kmodule/martian_dev.mod.o LD [M] /root/martian/kmodule/martian_dev.ko make[2]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic ' make[1]: Leaving directory `/root/martian/kmodule' make -C modem/ all make[1]: Entering directory `/root/martian/modem' -e CC main.o main.c:15:19: error: stdio.h: No such file or directory main.c:17:40: error: sys/mman.h: No such file or directory main.c:18:36: error: string.h: No such file or directory main.c:19:23: error: asm/types.h: No such file or directory In file included from main.c:20: mixspinlock.h:9: error: expected ':', ',', ';', '}' or '__attribute__' before 'lock' mixspinlock.h: In function 'mspin_lock': mixspinlock.h:24: error: 'mspinlock_t' has no member named 'lock' mixspinlock.h:13: error: invalid lvalue in asm output 0 mixspinlock.h: In function 'mspin_unlock': mixspinlock.h:31: error: 'mspinlock_t' has no member named 'lock' mixspinlock.h:29: error: invalid lvalue in asm output 0 In file included from main.c:21: ../martian.h: At top level: ../martian.h:39: error: expected specifier-qualifier-list before '__u16' ../martian.h:89: error: expected specifier-qualifier-list before '__u16' main.c:23:43: error: signal.h: No such file or directory main.c :25:30: error: unistd.h: No such file or directory main.c:26:29: error: stdlib.h: No such file or directory main.c:28:23: error: sys/types.h: No such file or directory main.c:30:36: error: ctype.h: No such file or directory main.c:33:42: error: sched.h: No such file or directory main.c:35:38: error: stdint.h: No such file or directory main.c:37:39: error: pwd.h: No such file or directory main.c:38:17: error: grp.h: No such file or directory main.c:39:22: error: sys/stat.h: No such file or directory main.c:42:20: error: getopt.h: No such file or directory main.c:43:45: error: sys/ioctl.h: No such file or directory In file included from main.c:45: sysdep.h:4:18: error: time.h: No such file or directory In file included from main.c:45: sysdep.h:6: error: expected specifier-qualifier-list before 'timer_t' sysdep.h:10: error: expected ')' before 'clock' In file included from log.h:7, from main.c:50: common.h:31: error: expected specifier-qualifier-list before 'uid_t' main.c: In function 'check_procfs': main.c:76: warning: implicit declaration of function 'system' main.c: In function 'watch_setup': main.c:82: error: 'struct _config' has no member named 'haveTSC' main.c:85: error: 'NULL' undeclared (first use in this function) main.c:85: error: (Each undeclared identifier is reported only once main.c:85: error: for each function it appears in.) main.c:92: error: 'FILE' undeclared (first use in this function) main.c:92: error: 'fp' undeclared (first use in this function) main.c:92: warning: implicit declaration of function 'popen' main.c:97: warning: implicit declaration of function 'fgetc' main.c:97: error: 'EOF' undeclared (first use in this function) main.c:98: warning: implicit declaration of function 'isdigit' main.c:99: warning: implicit declaration of function 'ungetc' main.c:103: warning: implicit declaration of function 'fscanf' main.c:103: warning: incompatible implicit declaration of built-in function 'fscanf' main.c:105: warning: implicit declaration of function 'pclose' main.c:110: error: 'struct _config' has no member named 'haveTSC' main.c: In function 'realtime_setup': main.c:120: warning: implicit declaration of function 'mlockall' main.c:120: error: 'MCL_CURRENT' undeclared (first use in this function) main.c:121: error: 'NULL' undeclared (first use in this function) main.c:125: error: storage size of 'p' isn't known main.c:126: warning: implicit declaration of function 'sched_get_priority_min' main.c:126: error: 'SCHED_FIFO' undeclared (first use in this function) main.c:132: warning: implicit declaration of function 'sched_setscheduler' main.c:138: warning: implicit declaration of function 'sched_getparam' main.c:139: warning: implicit declaration of function 'sched_getscheduler' main.c:125: warning: unused variable 'p' main.c: In function 'usage': main.c:148: warning: implicit declaration of function 'fprintf' main.c:148: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:148: error: 'stdout' undeclared (first use in this function) main.c:171: warning: implicit declaration of function 'exit' main.c:171: warning: incompatible implicit declaration of built-in function 'exit' main.c: In function 'fix_id_to_code': main.c:176: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OldCountryIdToCountryCode' main.c:176: error: 'OldCountryIdToCountryCode' undeclared (first use in this function) main.c:178: error: expected specifier-qualifier-list before '__u16' main.c:181: warning: excess elements in struct initializer main.c:181: warning: (near initialization for 'IdtoCodeFix[0]') main.c:181: warning: excess elements in struct initializer main.c:181: warning: (near initialization for 'IdtoCodeFix[0]') main.c:182: warning: excess elements in struct initializer main.c:182: warning: (near initialization for 'IdtoCodeFix[1]') main.c:182: warning: excess elements in struct initializer main.c:182: warning: (near initialization for 'IdtoCodeFix[1]') main.c:183: warning: excess elements in struct initializer main.c:183: warning: (near initialization for 'IdtoCodeFix[2]') main.c:183: warning: excess elements in struct initializer main.c:183: warning: (near initialization for 'IdtoCodeFix[2]') main.c:184: warning: excess elements in struct initializer main.c:184: warning: (near initialization for 'IdtoCodeFix[3]') main.c:184: warning: excess elements in struct initializer main.c:184: warning: (near initialization for 'IdtoCodeFix[3]') main.c:185: warning: excess elements in struct initializer main.c:185: warning: (near initialization for 'IdtoCodeFix[4]') main.c:185: warning: excess elements in struct initializer main.c:185: warning: (near initialization for 'IdtoCodeFix[4]') main.c:186: warning: excess elements in struct initializer main.c:186: warning: (near initialization for 'IdtoCodeFix[5]') main.c:186: warning: excess elements in struct initializer main.c:186: warning: (near initialization for 'IdtoCodeFix[5]') main.c:187: warning: excess elements in struct initializer main.c:187: warning: (near initialization for 'IdtoCodeFix[6]') main.c:187: warning: excess elements in struct initializer main.c:187: warning: (near initialization for 'IdtoCodeFix[6]') main.c:188: warning: excess elements in struct initializer main.c:188: warning: (near initialization for 'IdtoCodeFix[7]') main.c:188: warning: excess elements in struct initializer main.c:188: warning: (near initialization for 'IdtoCodeFix[7]') main.c:189: warning: excess elements in struct initializer main.c:189: warning: (near initialization for 'IdtoCodeFix[8]') main.c:189: warning: excess elements in struct initializer main.c:189: warning: (near initialization for 'IdtoCodeFix[8]') main.c:190: warning: excess elements in struct initializer main.c:190: warning: (near initialization for 'IdtoCodeFix[9]') main.c:190: warning: excess elements in struct initializer main.c:190: warning: (near initialization for 'IdtoCodeFix[9]') main.c:194: warning: division by zero main.c:195: error: 'struct <anonymous>' has no member named 'id' main.c:195: error: 'struct <anonymous>' has no member named 'code' main.c: At top level: main.c:301: error: 'NULL' undeclared here (not in a function) main.c: In function 'mcountry_match': main.c:306: warning: implicit declaration of function 'strchr' main.c:306: warning: incompatible implicit declaration of built-in function 'strchr' main.c:309: warning: implicit declaration of function 'strncasecmp' main.c:312: warning: implicit declaration of function 'strcasecmp' main.c: In function 'parse_arguments': main.c:330: error: array type has incomplete element type main.c:331: error: 'required_argument' undeclared (first use in this function) main.c:332: error: 'no_argument' undeclared (first use in this function) main.c:353: error: 'struct _config' has no member named 'realtime' main.c:353: warning: statement with no effect main.c:354: error: 'struct _config' has no member named 'syslog' main.c:354: warning: statement with no effect main.c:355: error: 'struct _config' has no member named 'daemon' main.c:355: warning: statement with no effect main.c:356: error: 'struct _config' has no member named 'logfile' main.c:356: warning: statement with no effect main.c:357: error: 'struct _config' has no member named 'check_carrier' main.c:357: warning: statement with no effect main.c:359: error: 'struct _config' has no member named 'misr' main.c:359: warning: statement with no effect main.c:360: error: 'struct _config' has no member named 'hide_pty' main.c:360: warning: statement with no effect main.c:361: error: 'struct _config' has no member named 'true_smp' main.c:361: warning: statement with no effect main.c:362: error: 'struct _config' has no member named 'move_fifos' main.c:362: warning: statement with no effect main.c:364: error: 'struct _config' has no member named 'permissions' main.c:364: warning: statement with no effect main.c:365: error: 'struct _config' has no member named 'mode' main.c:365: warning: statement with no effect main.c:367: error: 'struct _config' has no member named 'uid' main.c:367: warning: statement with no effect main.c:368: error: 'struct _config' has no member named 'gid' main.c:368: warning: statement with no effect main.c:372: error: 'opterr' undeclared (first use in this function) main.c:372: warning: statement with no effect main.c:375: warning: implicit declaration of function 'getopt_long' main.c:379: error: 'struct _config' has no member named 'realtime' main.c:379: warning: statement with no effect main.c:384: warning: implicit declaration of function 'strcmp' main.c:384: error: 'optarg' undeclared (first use in this function) main.c:385: error: 'struct _config' has no member named 'misr' main.c:385: warning: statement with no effect main.c:388: error: 'struct _config' has no member named 'misr' main.c:388: warning: statement with no effect main.c:391: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:392: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:392: error: 'stderr' undeclared (first use in this function) main.c:392: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:398: error: 'struct _config' has no member named 'syslog' main.c:399: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:402: error: 'struct _config' has no member named 'logfile' main.c:402: warning: statement with no effect main.c:403: warning: passing argument 1 of 'log_redirect_to_file' from incompatible pointer type main.c:406: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:410: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:416: warning: assignment from incompatible pointer type main.c:420: warning: implicit declaration of function 'atoi' main.c:422: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:428: error: 'struct _config' has no member named 'daemon' main.c:428: warning: statement with no effect main.c:434: error: 'struct _config' has no member named 'logfile' main.c:435: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:438: error: 'struct _config' has no member named 'syslog' main.c:438: warning: statement with no effect main.c:447: error: 'struct _config' has no member named 'check_carrier' main.c:447: warning: statement with no effect main.c:451: error: 'struct _config' has no member named 'hide_pty' main.c:451: warning: statement with no effect main.c:455: error: 'struct _config' has no member named 'true_smp' main.c:455: warning: statement with no effect main.c:459: error: 'struct _config' has no member named 'move_fifos' main.c:459: warning: statement with no effect main.c:464: warning: implicit declaration of function 'getpwnam' main.c:464: warning: initialization makes pointer from integer without a cast main.c:467: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:469: error: 'struct _config' has no member named 'uid' main.c:469: error: dereferencing pointer to incomplete type main.c:469: error: request for member 'pw_uid' in something not a structure or union main.c :469: warning: statement with no effect main.c:476: warning: implicit declaration of function 'getgrnam' main.c:476: warning: initialization makes pointer from integer without a cast main.c:479: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:481: error: 'struct _config' has no member named 'gid' main.c:481: error: dereferencing pointer to incomplete type main.c:481: error: request for member 'gr_gid' in something not a structure or union main.c :481: warning: statement with no effect main.c:487: error: 'struct _config' has no member named 'mode' main.c:487: warning: implicit declaration of function 'strtol' main.c:487: warning: statement with no effect main.c:488: error: 'struct _config' has no member named 'mode' main.c:488: error: 'S_IRWXU' undeclared (first use in this function) main.c:488: error: 'S_IRWXG' undeclared (first use in this function) main.c:488: error: invalid operands to binary | main.c:488: error: 'S_IRWXO' undeclared (first use in this function) main.c:488: error: invalid operands to binary | main.c:488: error: wrong type argument to bit-complement main.c:488: error: invalid operands to binary & main.c:489: error: 'struct _config' has no member named 'mode' main.c:489: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:490: error: 'struct _config' has no member named 'permissions' main.c:490: warning: statement with no effect main.c:493: error: 'struct _config' has no member named 'permissions' main.c:493: warning: statement with no effect main.c:501: warning: passing argument 1 of 'mcountry_match' from incompatible pointer type main.c:503: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OldCountryIdToCountryCode' main.c:503: error: 'OldCountryIdToCountryCode' undeclared (first use in this function) main.c:503: warning: statement with no effect main.c:507: error: invalid operands to binary == main.c:508: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:509: error: 'struct _config' has no member named 'country_id' main.c :509: warning: statement with no effect main.c:514: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:515: error: 'struct _config' has no member named 'country_id' main.c:515: warning: statement with no effect main.c:523: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:524: error: 'struct _config' has no member named 'country_id' main.c:524: warning: statement with no effect main.c:530: warning: pointer type mismatch in conditional expression main.c:530: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:533: warning: implicit declaration of function 'printf' main.c:533: warning: incompatible implicit declaration of built-in function 'printf' main.c:538: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:541: warning: incompatible implicit declaration of built-in function 'exit' main.c:544: error: 'optind' undeclared (first use in this function) main.c:544: warning: comparison between pointer and integer main.c:545: error: array subscript is not an integer main.c:545: warning: assignment from incompatible pointer type main.c:547: warning: comparison between pointer and integer main.c:548: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:554: warning: comparison between pointer and integer main.c:554: warning: comparison between pointer and integer main.c :556: error: 'optopt' undeclared (first use in this function) main.c:557: warning: comparison between pointer and integer main.c:557: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:557: error: 'struct <anonymous>' has no member named 'has_arg' main.c:558: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:558: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:558: error: 'struct <anonymous>' has no member named 'name' main.c:558: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:558: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:565: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:566: warning: comparison between pointer and integer main.c:566: warning: comparison between pointer and integer main.c :569: warning: comparison between pointer and integer main.c:569: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:569: error: 'struct <anonymous>' has no member named 'has_arg' main.c:570: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:570: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:570: error: 'struct <anonymous>' has no member named 'name' main.c:570: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:570: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:572: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:572: warning: format '%c' expects type 'int', but argument 4 has type 'const struct <anonymous> *' main.c :574: warning: implicit declaration of function 'strncmp' main.c:574: error: array subscript is not an integer main.c:575: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:575: error: array subscript is not an integer main.c:575: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:575: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:578: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:578: error: array subscript is not an integer main.c:578: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:578: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:579: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:330: warning: unused variable 'options' main.c: In function 'setup_pin_timer': main.c:601: error: storage size of 'ptyevent' isn't known main.c:605: warning: implicit declaration of function 'memset' main.c :605: warning: incompatible implicit declaration of built-in function 'memset' main.c:605: warning: passing argument 3 of 'memset' makes integer from pointer without a cast main.c:608: error: request for member 'sigev_signo' in something not a structure or union main.c:608: error: 'SIGRTMIN' undeclared (first use in this function) main.c:608: warning: statement with no effect main.c:611: error: request for member 'sigev_notify' in something not a structure or union main.c :611: error: 'SIGEV_THREAD_ID' undeclared (first use in this function) main.c:611: warning: statement with no effect main.c:612: error: request for member '_sigev_un' in something not a structure or union main.c:612: error: request for member '_tid' in something not a structure or union main.c:612: warning: statement with no effect main.c:614: warning: implicit declaration of function 'mtimer_create' main.c:614: error: 'CLOCK_REALTIME' undeclared (first use in this function) main.c:616: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:621: error: 'mtimer_t' has no member named 'id' main.c:621: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:622: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:625: warning: passing argument 3 of 'memset' makes integer from pointer without a cast main.c:628: error: request for member 'sigev_signo' in something not a structure or union main.c:628: warning: statement with no effect main.c:629: error: request for member 'sigev_notify' in something not a structure or union main.c:629: error: 'SIGEV_SIGNAL' undeclared (first use in this function) main.c:629: warning: statement with no effect main.c:636: error: 'mtimer_t' has no member named 'id' main.c:636: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:640: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:601: warning: unused variable 'ptyevent' main.c: At top level: main.c:645: error: expected specifier-qualifier-list before 'uint8_t' main.c:658: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'io_uart_msr' main.c:659: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'io_uart_status' main.c:663: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dp_dsp_status' main.c:664: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dp_wDspRetrainState' main.c: In function 'monitor_state': main.c:717: error: 'io_uart_msr' undeclared (first use in this function) main.c:717: error: 'struct _state' has no member named 'io_uart_msr' main.c:717: warning: implicit declaration of function 'sprintf' main.c:717: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:717: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:717: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:717: warning: implicit declaration of function '__STRING' main.c:717: error: expected ')' before string constant main.c:717: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:717: error: 'struct _state' has no member named 'io_uart_msr' main.c:717: warning: statement with no effect main.c:718: error: 'io_uart_status' undeclared (first use in this function) main.c:718: error: 'struct _state' has no member named 'io_uart_status' main.c:718: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:718: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:718: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:718: error: expected ')' before string constant main.c:718: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:718: error: 'struct _state' has no member named 'io_uart_status' main.c:718: warning: statement with no effect main.c:719: error: 'struct _state' has no member named 'x_modem_state' main.c:719: warning: comparison between pointer and integer main.c:719: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:719: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:719: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:719: error: expected ')' before string constant main.c:719: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:719: error: 'struct _state' has no member named 'x_modem_state' main.c:719: warning: statement with no effect main.c:720: error: 'struct _state' has no member named 'x_modem_mode' main.c:720: warning: comparison between pointer and integer main.c:720: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:720: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:720: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:720: error: expected ')' before string constant main.c:720: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:720: error: 'struct _state' has no member named 'x_modem_mode' main.c:720: warning: statement with no effect main.c:721: error: 'struct _state' has no member named 'x_line_rate' main.c:721: warning: comparison between pointer and integer main.c:721: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:721: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:721: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:721: error: expected ')' before string constant main.c:721: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:721: error: 'struct _state' has no member named 'x_line_rate' main.c:721: warning: statement with no effect main.c:722: error: 'dp_dsp_status' undeclared (first use in this function) main.c:722: error: 'struct _state' has no member named 'dp_dsp_status' main.c:722: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:722: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:722: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:722: error: expected ')' before string constant main.c:722: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:722: error: 'struct _state' has no member named 'dp_dsp_status' main.c:722: warning: statement with no effect main.c:723: error: 'struct _state' has no member named 'io_app_tx_count' main.c:723: warning: comparison between pointer and integer main.c:723: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:723: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:723: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:723: error: expected ')' before string constant main.c:723: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:723: error: 'struct _state' has no member named 'io_app_tx_count' main.c:723: warning: statement with no effect main.c:725: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:726: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:730: error: 'struct _state' has no member named 'io_app_tx_bytes' main.c:730: warning: comparison between pointer and integer main.c:730: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:730: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:730: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:730: error: 'io_app_tx' undeclared (first use in this function) main.c:730: error: expected ')' before string constant main.c:730: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:730: error: 'struct _state' has no member named 'io_app_tx_bytes' main.c:730: warning: statement with no effect main.c:731: error: 'struct _state' has no member named 'io_dte_tx_bytes' main.c:731: warning: comparison between pointer and integer main.c:731: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:731: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:731: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:731: error: 'io_dte_tx' undeclared (first use in this function) main.c:731: error: expected ')' before string constant main.c:731: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:731: error: 'struct _state' has no member named 'io_dte_tx_bytes' main.c:731: warning: statement with no effect main.c:732: error: 'struct _state' has no member named 'io_dte_rx_bytes' main.c:732: warning: comparison between pointer and integer main.c:732: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:732: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:732: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:732: error: 'io_dte_rx' undeclared (first use in this function) main.c:732: error: expected ')' before string constant main.c:732: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:732: error: 'struct _state' has no member named 'io_dte_rx_bytes' main.c:732: warning: statement with no effect main.c:733: error: 'struct _state' has no member named 'io_dce_tx_bytes' main.c:733: warning: comparison between pointer and integer main.c:733: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:733: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:733: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:733: error: 'io_dce_tx' undeclared (first use in this function) main.c:733: error: expected ')' before string constant main.c:733: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:733: error: 'struct _state' has no member named 'io_dce_tx_bytes' main.c:733: warning: statement with no effect main.c:734: error: 'struct _state' has no member named 'io_dce_rx_bytes' main.c:734: warning: comparison between pointer and integer main.c:734: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:734: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:734: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:734: error: 'io_dce_rx' undeclared (first use in this function) main.c:734: error: expected ')' before string constant main.c:734: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:734: error: 'struct _state' has no member named 'io_dce_rx_bytes' main.c:734: warning: statement with no effect main.c:736: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:737: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'setup_pin_watcher': main.c:758: error: storage size of 'timer_action' isn't known main.c:760: error: request for member 'sa_handler' in something not a structure or union main.c:760: warning: statement with no effect main.c:761: error: request for member 'sa_flags' in something not a structure or union main.c:761: warning: statement with no effect main.c:762: warning: implicit declaration of function 'sigemptyset' main.c:762: error: request for member 'sa_mask' in something not a structure or union main.c:763: warning: implicit declaration of function 'sigaction' main.c:763: error: 'SIGRTMIN' undeclared (first use in this function) main.c:758: warning: unused variable 'timer_action' main.c:766:19: error: errno.h: No such file or directory main.c: At top level: main.c:769: error: expected ')' before '*' token main.c: In function 'main': main.c:837: error: 'struct _config' has no member named 'syslog' main.c:840: error: 'struct _config' has no member named 'daemon' main.c:841: warning: implicit declaration of function 'daemon' main.c:841: error: 'struct _config' has no member named 'logfile' main.c:843: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:844: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:845: error: 'struct _config' has no member named 'daemon' main.c:845: warning: statement with no effect main.c:848: error: 'struct _config' has no member named 'daemon' main.c:848: error: 'struct _config' has no member named 'logfile' main.c:849: error: 'struct _config' has no member named 'syslog' main.c:849: warning: statement with no effect main.c:852: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:862: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:871: warning: implicit declaration of function 'snprintf' main.c:871: warning: incompatible implicit declaration of built-in function 'snprintf' main.c:874: warning: incompatible implicit declaration of built-in function 'snprintf' main.c:878: warning: incompatible implicit declaration of built-in function 'snprintf' main.c:880: warning: implicit declaration of function 'strlen' main.c:880: warning: incompatible implicit declaration of built-in function 'strlen' main.c:885: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:888: error: 'struct _config' has no member named 'misr' main.c:888: error: incompatible type for argument 1 of 'misr_str' main.c:888: error: 'struct _config' has no member named 'realtime' main.c:888: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:909: warning: passing argument 2 of 'mthread_create' discards qualifiers from pointer target type main.c:910: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:913: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:924: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:928: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:933: warning: implicit declaration of function 'mkfifo' main.c:934: error: 'errno' undeclared (first use in this function) main.c:934: error: 'EEXIST' undeclared (first use in this function) main.c:935: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:937: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:940: error: 'FILE' undeclared (first use in this function) main.c:940: error: 'control' undeclared (first use in this function) main.c:940: error: invalid operands to binary * main.c:940: warning: statement with no effect main.c:943: warning: implicit declaration of function 'fopen' main.c:943: warning: statement with no effect main.c :944: error: 'EINTR' undeclared (first use in this function) main.c:950: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:951: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:958: warning: implicit declaration of function 'get_cmd' main.c:961: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:962: warning: implicit declaration of function 'fclose' main.c:964: warning: statement with no effect main.c:971: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:972: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:978: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:984: error: '__u32' undeclared (first use in this function) main.c:984: error: expected expression before ')' token main.c :984: error: invalid operands to binary * main.c:984: error: called object '<erroneous-expression>' is not a function main.c:984: error: assignment of read-only location main.c:984: error: incompatible types in assignment main.c:984: warning: statement with no effect main.c:985: error: '__u16' undeclared (first use in this function) main.c:985: error: expected expression before ')' token main.c:985: error: invalid operands to binary * main.c:985: error: called object '<erroneous-expression>' is not a function main.c:985: error: assignment of read-only location main.c:985: error: incompatible types in assignment main.c:985: warning: statement with no effect main.c:992: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:993: warning: implicit declaration of function 'ioctl' main.c:993: warning: implicit declaration of function '_IO' main.c :995: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:999: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:1002: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:1005: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:1013: warning: implicit declaration of function 'pause' main.c: In function 'serve_port': main.c:1029: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:1031: error: 'struct _config' has no member named 'realtime' main.c:1041: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:1042: warning: incompatible implicit declaration of built-in function 'exit' main.c:1047: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:1050: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:1055: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'mexit': main.c:1082: error: 'struct _config' has no member named 'daemon' main.c:1083: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:1085: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:1086: warning: incompatible implicit declaration of built-in function 'exit' main.c: In function 'kbdint_handler': main.c:1093: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'setup_kbd_interrupt': main.c:1098: error: storage size of 'timer_action' isn't known main.c:1100: error: request for member 'sa_handler' in something not a structure or union main.c:1100: warning: statement with no effect main.c:1101: error: request for member 'sa_flags' in something not a structure or union main.c:1101: warning: statement with no effect main.c:1102: error: request for member 'sa_mask' in something not a structure or union main.c:1103: error: 'SIGINT' undeclared (first use in this function) main.c:1098: warning: unused variable 'timer_action' main.c: In function 'sigterm_handler': main.c:1107: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'setup_daemon_signals': main.c:1112: error: storage size of 'timer_action' isn't known main.c:1114: error: request for member 'sa_handler' in something not a structure or union main.c:1114: warning: statement with no effect main.c:1115: error: request for member 'sa_flags' in something not a structure or union main.c:1115: warning: statement with no effect main.c:1116: error: request for member 'sa_mask' in something not a structure or union main.c:1117: error: 'SIGTERM' undeclared (first use in this function) main.c:1112: warning: unused variable 'timer_action' main.c: In function 'setup_segv': main.c:1124: error: storage size of 'action' isn't known main.c:1126: error: request for member 'sa_handler' in something not a structure or union main.c:1126: warning: statement with no effect main.c:1127: error: request for member 'sa_flags' in something not a structure or union main.c:1127: warning: statement with no effect main.c:1128: error: request for member 'sa_mask' in something not a structure or union main.c:1129: error: 'SIGSEGV' undeclared (first use in this function) main.c :1124: warning: unused variable 'action' main.c: In function 'segv_handler': main.c:1133: error: storage size of 'action' isn't known main.c:1136: warning: incompatible implicit declaration of built-in function 'printf' main.c:1138: error: request for member 'sa_handler' in something not a structure or union main.c:1138: error: 'SIG_DFL' undeclared (first use in this function) main.c:1138: warning: statement with no effect main.c :1139: error: request for member 'sa_flags' in something not a structure or union main.c:1139: warning: statement with no effect main.c:1140: error: request for member 'sa_mask' in something not a structure or union main.c:1141: error: 'SIGSEGV' undeclared (first use in this function) main.c:1133: warning: unused variable 'action' make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/root/martian/modem' make: *** [all] Error 2 root@cahyo-laptop:~/martian# sudo make install make -C kmodule/ install make[1]: Entering directory `/root/martian/kmodule' make -C /lib/modules/2.6.20-15-generic/build M="/root/martian/kmodule" modules_install make[2]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic' INSTALL /root/martian/kmodule/martian_dev.ko DEPMOD 2.6.20-15-generic make[2]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic ' if ! /sbin/modprobe -nq martian_dev ; then /sbin/depmod -a; fi make[1]: Leaving directory `/root/martian/kmodule' make -C modem/ install make[1]: Entering directory `/root/martian/modem' -e CC main.o main.c:15:19: error: stdio.h: No such file or directory main.c:17:40: error: sys/mman.h: No such file or directory main.c:18:36: error: string.h: No such file or directory main.c:19:23: error: asm/types.h: No such file or directory In file included from main.c:20: mixspinlock.h:9: error: expected ':', ',', ';', '}' or '__attribute__' before 'lock' mixspinlock.h: In function 'mspin_lock': mixspinlock.h:24: error: 'mspinlock_t' has no member named 'lock' mixspinlock.h:13: error: invalid lvalue in asm output 0 mixspinlock.h: In function 'mspin_unlock': mixspinlock.h:31: error: 'mspinlock_t' has no member named 'lock' mixspinlock.h:29: error: invalid lvalue in asm output 0 In file included from main.c:21: ../martian.h: At top level: ../martian.h:39: error: expected specifier-qualifier-list before '__u16' ../martian.h:89: error: expected specifier-qualifier-list before '__u16' main.c:23:43: error: signal.h: No such file or directory main.c:25:30: error: unistd.h: No such file or directory main.c:26:29: error: stdlib.h: No such file or directory main.c:28:23: error: sys/types.h: No such file or directory main.c:30:36: error: ctype.h: No such file or directory main.c:33:42: error: sched.h: No such file or directory main.c:35:38: error: stdint.h: No such file or directory main.c:37:39: error: pwd.h: No such file or directory main.c:38:17: error: grp.h: No such file or directory main.c:39:22: error: sys/stat.h: No such file or directory main.c:42:20: error: getopt.h: No such file or directory main.c:43:45: error: sys/ioctl.h: No such file or directory In file included from main.c:45: sysdep.h:4:18: error: time.h: No such file or directory In file included from main.c:45: sysdep.h:6: error: expected specifier-qualifier-list before 'timer_t' sysdep.h:10: error: expected ')' before 'clock' In file included from log.h:7, from main.c:50: common.h:31: error: expected specifier-qualifier-list before 'uid_t' main.c: In function 'check_procfs': main.c:76: warning: implicit declaration of function 'system' main.c: In function 'watch_setup': main.c:82: error: 'struct _config' has no member named 'haveTSC' main.c:85: error: 'NULL' undeclared (first use in this function) main.c:85: error: (Each undeclared identifier is reported only once main.c:85: error: for each function it appears in.) main.c:92: error: 'FILE' undeclared (first use in this function) main.c:92: error: 'fp' undeclared (first use in this function) main.c:92: warning: implicit declaration of function 'popen' main.c:97: warning: implicit declaration of function 'fgetc' main.c:97: error: 'EOF' undeclared (first use in this function) main.c:98: warning: implicit declaration of function 'isdigit' main.c:99: warning: implicit declaration of function 'ungetc' main.c:103: warning: implicit declaration of function 'fscanf' main.c:103: warning: incompatible implicit declaration of built-in function 'fscanf' main.c:105: warning: implicit declaration of function 'pclose' main.c:110: error: 'struct _config' has no member named 'haveTSC' main.c: In function 'realtime_setup': main.c:120: warning: implicit declaration of function 'mlockall' main.c:120: error: 'MCL_CURRENT' undeclared (first use in this function) main.c:121: error: 'NULL' undeclared (first use in this function) main.c:125: error: storage size of 'p' isn't known main.c:126: warning: implicit declaration of function 'sched_get_priority_min' main.c:126: error: 'SCHED_FIFO' undeclared (first use in this function) main.c:132: warning: implicit declaration of function 'sched_setscheduler' main.c:138: warning: implicit declaration of function 'sched_getparam' main.c:139: warning: implicit declaration of function 'sched_getscheduler' main.c:125: warning: unused variable 'p' main.c: In function 'usage': main.c:148: warning: implicit declaration of function 'fprintf' main.c:148: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:148: error: 'stdout' undeclared (first use in this function) main.c:171: warning: implicit declaration of function 'exit' main.c:171: warning: incompatible implicit declaration of built-in function 'exit' main.c: In function 'fix_id_to_code': main.c:176: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OldCountryIdToCountryCode' main.c:176: error: 'OldCountryIdToCountryCode' undeclared (first use in this function) main.c:178: error: expected specifier-qualifier-list before '__u16' main.c:181: warning: excess elements in struct initializer main.c:181: warning: (near initialization for 'IdtoCodeFix[0]') main.c:181: warning: excess elements in struct initializer main.c:181: warning: (near initialization for 'IdtoCodeFix[0]') main.c:182: warning: excess elements in struct initializer main.c:182: warning: (near initialization for 'IdtoCodeFix[1]') main.c:182: warning: excess elements in struct initializer main.c:182: warning: (near initialization for 'IdtoCodeFix[1]') main.c:183: warning: excess elements in struct initializer main.c:183: warning: (near initialization for 'IdtoCodeFix[2]') main.c:183: warning: excess elements in struct initializer main.c:183: warning: (near initialization for 'IdtoCodeFix[2]') main.c:184: warning: excess elements in struct initializer main.c:184: warning: (near initialization for 'IdtoCodeFix[3]') main.c:184: warning: excess elements in struct initializer main.c:184: warning: (near initialization for 'IdtoCodeFix[3]') main.c:185: warning: excess elements in struct initializer main.c:185: warning: (near initialization for 'IdtoCodeFix[4]') main.c:185: warning: excess elements in struct initializer main.c:185: warning: (near initialization for 'IdtoCodeFix[4]') main.c:186: warning: excess elements in struct initializer main.c:186: warning: (near initialization for 'IdtoCodeFix[5]') main.c:186: warning: excess elements in struct initializer main.c:186: warning: (near initialization for 'IdtoCodeFix[5]') main.c:187: warning: excess elements in struct initializer main.c:187: warning: (near initialization for 'IdtoCodeFix[6]') main.c:187: warning: excess elements in struct initializer main.c:187: warning: (near initialization for 'IdtoCodeFix[6]') main.c:188: warning: excess elements in struct initializer main.c:188: warning: (near initialization for 'IdtoCodeFix[7]') main.c:188: warning: excess elements in struct initializer main.c:188: warning: (near initialization for 'IdtoCodeFix[7]') main.c:189: warning: excess elements in struct initializer main.c:189: warning: (near initialization for 'IdtoCodeFix[8]') main.c:189: warning: excess elements in struct initializer main.c:189: warning: (near initialization for 'IdtoCodeFix[8]') main.c:190: warning: excess elements in struct initializer main.c:190: warning: (near initialization for 'IdtoCodeFix[9]') main.c:190: warning: excess elements in struct initializer main.c:190: warning: (near initialization for 'IdtoCodeFix[9]') main.c:194: warning: division by zero main.c:195: error: 'struct <anonymous>' has no member named 'id' main.c:195: error: 'struct <anonymous>' has no member named 'code' main.c: At top level: main.c:301: error: 'NULL' undeclared here (not in a function) main.c: In function 'mcountry_match': main.c:306: warning: implicit declaration of function 'strchr' main.c:306: warning: incompatible implicit declaration of built-in function 'strchr' main.c:309: warning: implicit declaration of function 'strncasecmp' main.c:312: warning: implicit declaration of function 'strcasecmp' main.c: In function 'parse_arguments': main.c:330: error: array type has incomplete element type main.c:331: error: 'required_argument' undeclared (first use in this function) main.c:332: error: 'no_argument' undeclared (first use in this function) main.c:353: error: 'struct _config' has no member named 'realtime' main.c:353: warning: statement with no effect main.c:354: error: 'struct _config' has no member named 'syslog' main.c:354: warning: statement with no effect main.c:355: error: 'struct _config' has no member named 'daemon' main.c:355: warning: statement with no effect main.c:356: error: 'struct _config' has no member named 'logfile' main.c:356: warning: statement with no effect main.c:357: error: 'struct _config' has no member named 'check_carrier' main.c:357: warning: statement with no effect main.c:359: error: 'struct _config' has no member named 'misr' main.c:359: warning: statement with no effect main.c:360: error: 'struct _config' has no member named 'hide_pty' main.c:360: warning: statement with no effect main.c:361: error: 'struct _config' has no member named 'true_smp' main.c:361: warning: statement with no effect main.c:362: error: 'struct _config' has no member named 'move_fifos' main.c:362: warning: statement with no effect main.c:364: error: 'struct _config' has no member named 'permissions' main.c:364: warning: statement with no effect main.c:365: error: 'struct _config' has no member named 'mode' main.c:365: warning: statement with no effect main.c:367: error: 'struct _config' has no member named 'uid' main.c:367: warning: statement with no effect main.c:368: error: 'struct _config' has no member named 'gid' main.c:368: warning: statement with no effect main.c:372: error: 'opterr' undeclared (first use in this function) main.c:372: warning: statement with no effect main.c:375: warning: implicit declaration of function 'getopt_long' main.c:379: error: 'struct _config' has no member named 'realtime' main.c:379: warning: statement with no effect main.c:384: warning: implicit declaration of function 'strcmp' main.c:384: error: 'optarg' undeclared (first use in this function) main.c:385: error: 'struct _config' has no member named 'misr' main.c:385: warning: statement with no effect main.c:388: error: 'struct _config' has no member named 'misr' main.c:388: warning: statement with no effect main.c:391: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:392: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:392: error: 'stderr' undeclared (first use in this function) main.c:392: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:398: error: 'struct _config' has no member named 'syslog' main.c:399: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:402: error: 'struct _config' has no member named 'logfile' main.c:402: warning: statement with no effect main.c:403: warning: passing argument 1 of 'log_redirect_to_file' from incompatible pointer type main.c:406: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:410: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:416: warning: assignment from incompatible pointer type main.c:420: warning: implicit declaration of function 'atoi' main.c:422: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:428: error: 'struct _config' has no member named 'daemon' main.c:428: warning: statement with no effect main.c:434: error: 'struct _config' has no member named 'logfile' main.c:435: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:438: error: 'struct _config' has no member named 'syslog' main.c:438: warning: statement with no effect main.c:447: error: 'struct _config' has no member named 'check_carrier' main.c:447: warning: statement with no effect main.c:451: error: 'struct _config' has no member named 'hide_pty' main.c:451: warning: statement with no effect main.c:455: error: 'struct _config' has no member named 'true_smp' main.c:455: warning: statement with no effect main.c:459: error: 'struct _config' has no member named 'move_fifos' main.c:459: warning: statement with no effect main.c:464: warning: implicit declaration of function 'getpwnam' main.c:464: warning: initialization makes pointer from integer without a cast main.c:467: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:469: error: 'struct _config' has no member named 'uid' main.c:469: error: dereferencing pointer to incomplete type main.c:469: error: request for member 'pw_uid' in something not a structure or union main.c :469: warning: statement with no effect main.c:476: warning: implicit declaration of function 'getgrnam' main.c:476: warning: initialization makes pointer from integer without a cast main.c:479: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:481: error: 'struct _config' has no member named 'gid' main.c:481: error: dereferencing pointer to incomplete type main.c:481: error: request for member 'gr_gid' in something not a structure or union main.c :481: warning: statement with no effect main.c:487: error: 'struct _config' has no member named 'mode' main.c:487: warning: implicit declaration of function 'strtol' main.c:487: warning: statement with no effect main.c:488: error: 'struct _config' has no member named 'mode' main.c:488: error: 'S_IRWXU' undeclared (first use in this function) main.c:488: error: 'S_IRWXG' undeclared (first use in this function) main.c:488: error: invalid operands to binary | main.c:488: error: 'S_IRWXO' undeclared (first use in this function) main.c:488: error: invalid operands to binary | main.c:488: error: wrong type argument to bit-complement main.c:488: error: invalid operands to binary & main.c:489: error: 'struct _config' has no member named 'mode' main.c:489: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:490: error: 'struct _config' has no member named 'permissions' main.c:490: warning: statement with no effect main.c:493: error: 'struct _config' has no member named 'permissions' main.c:493: warning: statement with no effect main.c:501: warning: passing argument 1 of 'mcountry_match' from incompatible pointer type main.c:503: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OldCountryIdToCountryCode' main.c:503: error: 'OldCountryIdToCountryCode' undeclared (first use in this function) main.c:503: warning: statement with no effect main.c:507: error: invalid operands to binary == main.c:508: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:509: error: 'struct _config' has no member named 'country_id' main.c :509: warning: statement with no effect main.c:514: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:515: error: 'struct _config' has no member named 'country_id' main.c:515: warning: statement with no effect main.c:523: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:524: error: 'struct _config' has no member named 'country_id' main.c:524: warning: statement with no effect main.c:530: warning: pointer type mismatch in conditional expression main.c:530: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:533: warning: implicit declaration of function 'printf' main.c:533: warning: incompatible implicit declaration of built-in function 'printf' main.c:538: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:541: warning: incompatible implicit declaration of built-in function 'exit' main.c:544: error: 'optind' undeclared (first use in this function) main.c:544: warning: comparison between pointer and integer main.c:545: error: array subscript is not an integer main.c:545: warning: assignment from incompatible pointer type main.c:547: warning: comparison between pointer and integer main.c:548: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:554: warning: comparison between pointer and integer main.c:554: warning: comparison between pointer and integer main.c :556: error: 'optopt' undeclared (first use in this function) main.c:557: warning: comparison between pointer and integer main.c:557: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:557: error: 'struct <anonymous>' has no member named 'has_arg' main.c:558: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:558: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:558: error: 'struct <anonymous>' has no member named 'name' main.c:558: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:558: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:565: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:566: warning: comparison between pointer and integer main.c:566: warning: comparison between pointer and integer main.c :569: warning: comparison between pointer and integer main.c:569: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:569: error: 'struct <anonymous>' has no member named 'has_arg' main.c:570: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:570: warning: passing argument 1 of 'optslot' makes integer from pointer without a cast main.c:570: error: 'struct <anonymous>' has no member named 'name' main.c:570: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:570: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:572: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:572: warning: format '%c' expects type 'int', but argument 4 has type 'const struct <anonymous> *' main.c :574: warning: implicit declaration of function 'strncmp' main.c:574: error: array subscript is not an integer main.c:575: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:575: error: array subscript is not an integer main.c:575: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:575: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:578: warning: incompatible implicit declaration of built-in function 'fprintf' main.c:578: error: array subscript is not an integer main.c:578: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:578: warning: format '%s' expects type 'char *', but argument 4 has type 'const struct <anonymous> *' main.c:579: warning: passing argument 1 of 'fprintf' discards qualifiers from pointer target type main.c:330: warning: unused variable 'options' main.c: In function 'setup_pin_timer': main.c:601: error: storage size of 'ptyevent' isn't known main.c:605: warning: implicit declaration of function 'memset' main.c :605: warning: incompatible implicit declaration of built-in function 'memset' main.c:605: warning: passing argument 3 of 'memset' makes integer from pointer without a cast main.c:608: error: request for member 'sigev_signo' in something not a structure or union main.c:608: error: 'SIGRTMIN' undeclared (first use in this function) main.c:608: warning: statement with no effect main.c:611: error: request for member 'sigev_notify' in something not a structure or union main.c :611: error: 'SIGEV_THREAD_ID' undeclared (first use in this function) main.c:611: warning: statement with no effect main.c:612: error: request for member '_sigev_un' in something not a structure or union main.c:612: error: request for member '_tid' in something not a structure or union main.c:612: warning: statement with no effect main.c:614: warning: implicit declaration of function 'mtimer_create' main.c:614: error: 'CLOCK_REALTIME' undeclared (first use in this function) main.c:616: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:621: error: 'mtimer_t' has no member named 'id' main.c:621: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:622: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:625: warning: passing argument 3 of 'memset' makes integer from pointer without a cast main.c:628: error: request for member 'sigev_signo' in something not a structure or union main.c:628: warning: statement with no effect main.c:629: error: request for member 'sigev_notify' in something not a structure or union main.c:629: error: 'SIGEV_SIGNAL' undeclared (first use in this function) main.c:629: warning: statement with no effect main.c:636: error: 'mtimer_t' has no member named 'id' main.c:636: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:640: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:601: warning: unused variable 'ptyevent' main.c: At top level: main.c:645: error: expected specifier-qualifier-list before 'uint8_t' main.c:658: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'io_uart_msr' main.c:659: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'io_uart_status' main.c:663: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dp_dsp_status' main.c:664: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dp_wDspRetrainState' main.c: In function 'monitor_state': main.c:717: error: 'io_uart_msr' undeclared (first use in this function) main.c:717: error: 'struct _state' has no member named 'io_uart_msr' main.c:717: warning: implicit declaration of function 'sprintf' main.c:717: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:717: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:717: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:717: warning: implicit declaration of function '__STRING' main.c:717: error: expected ')' before string constant main.c:717: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:717: error: 'struct _state' has no member named 'io_uart_msr' main.c:717: warning: statement with no effect main.c:718: error: 'io_uart_status' undeclared (first use in this function) main.c:718: error: 'struct _state' has no member named 'io_uart_status' main.c:718: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:718: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:718: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:718: error: expected ')' before string constant main.c:718: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:718: error: 'struct _state' has no member named 'io_uart_status' main.c:718: warning: statement with no effect main.c:719: error: 'struct _state' has no member named 'x_modem_state' main.c:719: warning: comparison between pointer and integer main.c:719: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:719: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:719: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:719: error: expected ')' before string constant main.c:719: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:719: error: 'struct _state' has no member named 'x_modem_state' main.c:719: warning: statement with no effect main.c:720: error: 'struct _state' has no member named 'x_modem_mode' main.c:720: warning: comparison between pointer and integer main.c:720: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:720: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:720: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:720: error: expected ')' before string constant main.c:720: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:720: error: 'struct _state' has no member named 'x_modem_mode' main.c:720: warning: statement with no effect main.c:721: error: 'struct _state' has no member named 'x_line_rate' main.c:721: warning: comparison between pointer and integer main.c:721: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:721: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:721: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:721: error: expected ')' before string constant main.c:721: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:721: error: 'struct _state' has no member named 'x_line_rate' main.c:721: warning: statement with no effect main.c:722: error: 'dp_dsp_status' undeclared (first use in this function) main.c:722: error: 'struct _state' has no member named 'dp_dsp_status' main.c:722: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:722: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:722: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:722: error: expected ')' before string constant main.c:722: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:722: error: 'struct _state' has no member named 'dp_dsp_status' main.c:722: warning: statement with no effect main.c:723: error: 'struct _state' has no member named 'io_app_tx_count' main.c:723: warning: comparison between pointer and integer main.c:723: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:723: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:723: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:723: error: expected ')' before string constant main.c:723: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:723: error: 'struct _state' has no member named 'io_app_tx_count' main.c:723: warning: statement with no effect main.c:725: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:726: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:730: error: 'struct _state' has no member named 'io_app_tx_bytes' main.c:730: warning: comparison between pointer and integer main.c:730: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:730: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:730: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:730: error: 'io_app_tx' undeclared (first use in this function) main.c:730: error: expected ')' before string constant main.c:730: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:730: error: 'struct _state' has no member named 'io_app_tx_bytes' main.c:730: warning: statement with no effect main.c:731: error: 'struct _state' has no member named 'io_dte_tx_bytes' main.c:731: warning: comparison between pointer and integer main.c:731: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:731: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:731: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:731: error: 'io_dte_tx' undeclared (first use in this function) main.c:731: error: expected ')' before string constant main.c:731: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:731: error: 'struct _state' has no member named 'io_dte_tx_bytes' main.c:731: warning: statement with no effect main.c:732: error: 'struct _state' has no member named 'io_dte_rx_bytes' main.c:732: warning: comparison between pointer and integer main.c:732: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:732: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:732: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:732: error: 'io_dte_rx' undeclared (first use in this function) main.c:732: error: expected ')' before string constant main.c:732: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:732: error: 'struct _state' has no member named 'io_dte_rx_bytes' main.c:732: warning: statement with no effect main.c:733: error: 'struct _state' has no member named 'io_dce_tx_bytes' main.c:733: warning: comparison between pointer and integer main.c:733: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:733: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:733: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:733: error: 'io_dce_tx' undeclared (first use in this function) main.c:733: error: expected ')' before string constant main.c:733: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:733: error: 'struct _state' has no member named 'io_dce_tx_bytes' main.c:733: warning: statement with no effect main.c:734: error: 'struct _state' has no member named 'io_dce_rx_bytes' main.c:734: warning: comparison between pointer and integer main.c:734: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:734: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:734: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:734: error: 'io_dce_rx' undeclared (first use in this function) main.c:734: error: expected ')' before string constant main.c:734: warning: passing argument 2 of 'sprintf' makes pointer from integer without a cast main.c:734: error: 'struct _state' has no member named 'io_dce_rx_bytes' main.c:734: warning: statement with no effect main.c:736: warning: incompatible implicit declaration of built-in function 'sprintf' main.c:737: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'setup_pin_watcher': main.c:758: error: storage size of 'timer_action' isn't known main.c:760: error: request for member 'sa_handler' in something not a structure or union main.c:760: warning: statement with no effect main.c:761: error: request for member 'sa_flags' in something not a structure or union main.c:761: warning: statement with no effect main.c:762: warning: implicit declaration of function 'sigemptyset' main.c:762: error: request for member 'sa_mask' in something not a structure or union main.c:763: warning: implicit declaration of function 'sigaction' main.c:763: error: 'SIGRTMIN' undeclared (first use in this function) main.c:758: warning: unused variable 'timer_action' main.c:766:19: error: errno.h: No such file or directory main.c: At top level: main.c:769: error: expected ')' before '*' token main.c: In function 'main': main.c:837: error: 'struct _config' has no member named 'syslog' main.c:840: error: 'struct _config' has no member named 'daemon' main.c:841: warning: implicit declaration of function 'daemon' main.c:841: error: 'struct _config' has no member named 'logfile' main.c:843: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:844: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:845: error: 'struct _config' has no member named 'daemon' main.c:845: warning: statement with no effect main.c:848: error: 'struct _config' has no member named 'daemon' main.c:848: error: 'struct _config' has no member named 'logfile' main.c:849: error: 'struct _config' has no member named 'syslog' main.c:849: warning: statement with no effect main.c:852: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:862: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:871: warning: implicit declaration of function 'snprintf' main.c:871: warning: incompatible implicit declaration of built-in function 'snprintf' main.c:874: warning: incompatible implicit declaration of built-in function 'snprintf' main.c:878: warning: incompatible implicit declaration of built-in function 'snprintf' main.c:880: warning: implicit declaration of function 'strlen' main.c:880: warning: incompatible implicit declaration of built-in function 'strlen' main.c:885: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:888: error: 'struct _config' has no member named 'misr' main.c:888: error: incompatible type for argument 1 of 'misr_str' main.c:888: error: 'struct _config' has no member named 'realtime' main.c:888: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:909: warning: passing argument 2 of 'mthread_create' discards qualifiers from pointer target type main.c:910: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:913: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:924: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:928: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:933: warning: implicit declaration of function 'mkfifo' main.c:934: error: 'errno' undeclared (first use in this function) main.c:934: error: 'EEXIST' undeclared (first use in this function) main.c:935: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:937: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:940: error: 'FILE' undeclared (first use in this function) main.c:940: error: 'control' undeclared (first use in this function) main.c:940: error: invalid operands to binary * main.c:940: warning: statement with no effect main.c:943: warning: implicit declaration of function 'fopen' main.c:943: warning: statement with no effect main.c :944: error: 'EINTR' undeclared (first use in this function) main.c:950: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:951: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:958: warning: implicit declaration of function 'get_cmd' main.c:961: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:962: warning: implicit declaration of function 'fclose' main.c:964: warning: statement with no effect main.c:971: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:972: warning: passing argument 1 of 'logwarn' from incompatible pointer type main.c:978: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:984: error: '__u32' undeclared (first use in this function) main.c:984: error: expected expression before ')' token main.c :984: error: invalid operands to binary * main.c:984: error: called object '<erroneous-expression>' is not a function main.c:984: error: assignment of read-only location main.c:984: error: incompatible types in assignment main.c:984: warning: statement with no effect main.c:985: error: '__u16' undeclared (first use in this function) main.c:985: error: expected expression before ')' token main.c:985: error: invalid operands to binary * main.c:985: error: called object '<erroneous-expression>' is not a function main.c:985: error: assignment of read-only location main.c:985: error: incompatible types in assignment main.c:985: warning: statement with no effect main.c:992: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:993: warning: implicit declaration of function 'ioctl' main.c:993: warning: implicit declaration of function '_IO' main.c :995: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:999: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:1002: warning: passing argument 2 of 'logsyserror' from incompatible pointer type main.c:1005: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:1013: warning: implicit declaration of function 'pause' main.c: In function 'serve_port': main.c:1029: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:1031: error: 'struct _config' has no member named 'realtime' main.c:1041: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:1042: warning: incompatible implicit declaration of built-in function 'exit' main.c:1047: warning: passing argument 1 of 'logerr' from incompatible pointer type main.c:1050: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c:1055: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'mexit': main.c:1082: error: 'struct _config' has no member named 'daemon' main.c:1083: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:1085: warning: passing argument 1 of 'loginfo' from incompatible pointer type main.c:1086: warning: incompatible implicit declaration of built-in function 'exit' main.c: In function 'kbdint_handler': main.c:1093: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'setup_kbd_interrupt': main.c:1098: error: storage size of 'timer_action' isn't known main.c:1100: error: request for member 'sa_handler' in something not a structure or union main.c:1100: warning: statement with no effect main.c:1101: error: request for member 'sa_flags' in something not a structure or union main.c:1101: warning: statement with no effect main.c:1102: error: request for member 'sa_mask' in something not a structure or union main.c:1103: error: 'SIGINT' undeclared (first use in this function) main.c:1098: warning: unused variable 'timer_action' main.c: In function 'sigterm_handler': main.c:1107: warning: passing argument 2 of 'logdebug' from incompatible pointer type main.c: In function 'setup_daemon_signals': main.c:1112: error: storage size of 'timer_action' isn't known main.c:1114: error: request for member 'sa_handler' in something not a structure or union main.c:1114: warning: statement with no effect main.c:1115: error: request for member 'sa_flags' in something not a structure or union main.c:1115: warning: statement with no effect main.c:1116: error: request for member 'sa_mask' in something not a structure or union main.c:1117: error: 'SIGTERM' undeclared (first use in this function) main.c:1112: warning: unused variable 'timer_action' main.c: In function 'setup_segv': main.c:1124: error: storage size of 'action' isn't known main.c:1126: error: request for member 'sa_handler' in something not a structure or union main.c:1126: warning: statement with no effect main.c:1127: error: request for member 'sa_flags' in something not a structure or union main.c:1127: warning: statement with no effect main.c:1128: error: request for member 'sa_mask' in something not a structure or union main.c:1129: error: 'SIGSEGV' undeclared (first use in this function) main.c :1124: warning: unused variable 'action' main.c: In function 'segv_handler': main.c:1133: error: storage size of 'action' isn't known main.c:1136: warning: incompatible implicit declaration of built-in function 'printf' main.c:1138: error: request for member 'sa_handler' in something not a structure or union main.c:1138: error: 'SIG_DFL' undeclared (first use in this function) main.c:1138: warning: statement with no effect main.c :1139: error: request for member 'sa_flags' in something not a structure or union main.c:1139: warning: statement with no effect main.c:1140: error: request for member 'sa_mask' in something not a structure or union main.c:1141: error: 'SIGSEGV' undeclared (first use in this function) main.c:1133: warning: unused variable 'action' make[1]: *** [main.o] Error 1 make[1]: Leaving directory `/root/martian/modem' make: *** [install] Error 2 root@cahyo-laptop:~/martian#