gcc -g -O2 -D_REENTRANT -Wall -c -o wrapxti.o wrapxti.c In file included from wrapxti.c:5: unpxti.h:7:24: xti.h: No such file or directory In file included from wrapxti.c:5: unpxti.h:102: warning: `struct t_call' declared inside parameter list unpxti.h:102: warning: its scope is only this definition or declaration, which is probably not what you want unpxti.h:103: warning: `struct t_bind' declared inside parameter list unpxti.h:105: warning: `struct t_call' declared inside parameter list unpxti.h:107: warning: `struct t_bind' declared inside parameter list unpxti.h:109: warning: `struct t_call' declared inside parameter list unpxti.h:111: warning: `struct t_info' declared inside parameter list unpxti.h:112: warning: `struct t_optmgmt' declared inside parameter list unpxti.h:114: warning: `struct t_discon' declared inside parameter list unpxti.h:116: warning: `struct t_unitdata' declared inside parameter list unpxti.h:117: warning: `struct t_uderr' declared inside parameter list unpxti.h:120: warning: `struct t_unitdata' declared inside parameter list unpxti.h:122: warning: `struct netbuf' declared inside parameter list unpxti.h:126: warning: `struct netbuf' declared inside parameter list unpxti.h:127: warning: `struct netbuf' declared inside parameter list unpxti.h:131: warning: `struct netbuf' declared inside parameter list unpxti.h:135: warning: `struct netbuf' declared inside parameter list unpxti.h:136: warning: `struct netbuf' declared inside parameter list unpxti.h:140: warning: `struct t_opthdr' declared inside parameter list unpxti.h:141: warning: `struct t_opthdr' declared inside parameter list unpxti.h:142: warning: `struct t_opthdr' declared inside parameter list unpxti.h:143: warning: `struct t_opthdr' declared inside parameter list unpxti.h:146: warning: `struct t_opthdr' declared inside parameter list unpxti.h:147: warning: `struct t_opthdr' declared inside parameter list unpxti.h:148: warning: `struct t_opthdr' declared inside parameter list unpxti.h:149: warning: `struct t_opthdr' declared inside parameter list wrapxti.c: In function `err_xti_doit': wrapxti.c:55: warning: implicit declaration of function `t_strerror' wrapxti.c:55: error: `t_errno' undeclared (first use in this function) wrapxti.c:55: error: (Each undeclared identifier is reported only once wrapxti.c:55: error: for each function it appears in.) wrapxti.c:55: warning: format argument is not a pointer (arg 4) wrapxti.c:57: error: `TSYSERR' undeclared (first use in this function) wrapxti.c: At top level: wrapxti.c:114: warning: `struct t_call' declared inside parameter list wrapxti.c:115: error: conflicting types for `T_accept' unpxti.h:102: error: previous declaration of `T_accept' wrapxti.c: In function `T_accept': wrapxti.c:118: warning: implicit declaration of function `t_accept' wrapxti.c: In function `T_alloc': wrapxti.c:129: warning: implicit declaration of function `t_alloc' wrapxti.c:129: warning: assignment makes pointer from integer without a cast wrapxti.c: At top level: wrapxti.c:135: warning: `struct t_bind' declared inside parameter list wrapxti.c:136: error: conflicting types for `T_bind' unpxti.h:103: error: previous declaration of `T_bind' wrapxti.c: In function `T_bind': wrapxti.c:137: warning: implicit declaration of function `t_bind' wrapxti.c: In function `T_close': wrapxti.c:144: warning: implicit declaration of function `t_close' wrapxti.c: At top level: wrapxti.c:149: warning: `struct t_call' declared inside parameter list wrapxti.c:150: error: conflicting types for `T_connect' unpxti.h:105: error: previous declaration of `T_connect' wrapxti.c: In function `T_connect': wrapxti.c:151: warning: implicit declaration of function `t_connect' wrapxti.c: In function `T_free': wrapxti.c:158: warning: implicit declaration of function `t_free' wrapxti.c: At top level: wrapxti.c:163: warning: `struct t_bind' declared inside parameter list wrapxti.c:164: error: conflicting types for `T_getprotaddr' unpxti.h:107: error: previous declaration of `T_getprotaddr' wrapxti.c: In function `T_getprotaddr': wrapxti.c:165: warning: implicit declaration of function `t_getprotaddr' wrapxti.c: In function `T_getstate': wrapxti.c:174: warning: implicit declaration of function `t_getstate' wrapxti.c: At top level: wrapxti.c:181: warning: `struct t_call' declared inside parameter list wrapxti.c:182: error: conflicting types for `T_listen' unpxti.h:109: error: previous declaration of `T_listen' wrapxti.c: In function `T_listen': wrapxti.c:183: warning: implicit declaration of function `t_listen' wrapxti.c: In function `T_look': wrapxti.c:192: warning: implicit declaration of function `t_look' wrapxti.c: At top level: wrapxti.c:199: warning: `struct t_info' declared inside parameter list wrapxti.c:200: error: conflicting types for `T_open' unpxti.h:111: error: previous declaration of `T_open' wrapxti.c: In function `T_open': wrapxti.c:203: warning: implicit declaration of function `t_open' wrapxti.c: At top level: wrapxti.c:210: warning: `struct t_optmgmt' declared inside parameter list wrapxti.c:211: error: conflicting types for `T_optmgmt' unpxti.h:112: error: previous declaration of `T_optmgmt' wrapxti.c: In function `T_optmgmt': wrapxti.c:212: warning: implicit declaration of function `t_optmgmt' wrapxti.c: In function `T_rcv': wrapxti.c:221: warning: implicit declaration of function `t_rcv' wrapxti.c: At top level: wrapxti.c:228: warning: `struct t_discon' declared inside parameter list wrapxti.c:229: error: conflicting types for `T_rcvdis' unpxti.h:114: error: previous declaration of `T_rcvdis' wrapxti.c: In function `T_rcvdis': wrapxti.c:230: warning: implicit declaration of function `t_rcvdis' wrapxti.c: In function `T_rcvrel': wrapxti.c:237: warning: implicit declaration of function `t_rcvrel' wrapxti.c: At top level: wrapxti.c:242: warning: `struct t_unitdata' declared inside parameter list wrapxti.c:243: error: conflicting types for `T_rcvudata' unpxti.h:116: error: previous declaration of `T_rcvudata' wrapxti.c: In function `T_rcvudata': wrapxti.c:244: warning: implicit declaration of function `t_rcvudata' wrapxti.c: At top level: wrapxti.c:249: warning: `struct t_uderr' declared inside parameter list wrapxti.c:250: error: conflicting types for `T_rcvuderr' unpxti.h:117: error: previous declaration of `T_rcvuderr' wrapxti.c: In function `T_rcvuderr': wrapxti.c:251: warning: implicit declaration of function `t_rcvuderr' wrapxti.c: In function `T_snd': wrapxti.c:260: warning: implicit declaration of function `t_snd' wrapxti.c: In function `T_sndrel': wrapxti.c:267: warning: implicit declaration of function `t_sndrel' wrapxti.c: At top level: wrapxti.c:272: warning: `struct t_unitdata' declared inside parameter list wrapxti.c:273: error: conflicting types for `T_sndudata' unpxti.h:120: error: previous declaration of `T_sndudata' wrapxti.c: In function `T_sndudata': wrapxti.c:274: warning: implicit declaration of function `t_sndudata' wrapxti.c: At top level: wrapxti.c:310: warning: `struct netbuf' declared inside parameter list wrapxti.c:311: error: conflicting types for `Xti_ntop' unpxti.h:135: error: previous declaration of `Xti_ntop' wrapxti.c: In function `Xti_ntop': wrapxti.c:314: warning: passing arg 1 of `xti_ntop' from incompatible pointer type wrapxti.c: At top level: wrapxti.c:320: warning: `struct netbuf' declared inside parameter list wrapxti.c:321: error: conflicting types for `Xti_ntop_host' unpxti.h:136: error: previous declaration of `Xti_ntop_host' wrapxti.c: In function `Xti_ntop_host': wrapxti.c:324: warning: passing arg 1 of `xti_ntop_host' from incompatible pointer type make: *** [wrapxti.o] Error 1