Li,

I found some compilation errors for the connectors at today´s CVS
snapshot on the following machine. Can you please look into this:

1) uname -a
Linux 2.6.27-autokern1 #1 SMP Mon Oct 20 00:45:37 PDT 2008 i686
GNU/Linux


# gcc --version
gcc (GCC) 4.1.2 20060901 (prerelease) (Debian 4.1.1-13)


cc -Wall  -I../../../../include -Wall    pec_listener.c
-L../../../../lib -lltp -o pec_listener
pec_listener.c:33:29: error: linux/connector.h: No such file or
directory
pec_listener.c:35:27: error: linux/cn_proc.h: No such file or directory
pec_listener.c:66: warning: 'struct cn_msg' declared inside parameter
list
pec_listener.c:66: warning: its scope is only this definition or
declaration, which is probably not what you want
pec_listener.c: In function 'netlink_send':
pec_listener.c:77: error: dereferencing pointer to incomplete type
pec_listener.c:77: error: dereferencing pointer to incomplete type
pec_listener.c:79: error: dereferencing pointer to incomplete type
pec_listener.c:79: error: dereferencing pointer to incomplete type
pec_listener.c: At top level:
pec_listener.c:132: warning: 'enum proc_cn_mcast_op' declared inside
parameter list
pec_listener.c:132: error: parameter 3 ('op') has incomplete type
pec_listener.c: In function 'control_pec':
pec_listener.c:135: error: invalid application of 'sizeof' to incomplete
type 'struct cn_msg' 
pec_listener.c:135: error: invalid application of 'sizeof' to incomplete
type 'enum proc_cn_mcast_op' 
pec_listener.c:142: error: dereferencing pointer to incomplete type
pec_listener.c:142: error: 'CN_IDX_PROC' undeclared (first use in this
function)
pec_listener.c:142: error: (Each undeclared identifier is reported only
once
pec_listener.c:142: error: for each function it appears in.)
pec_listener.c:143: error: dereferencing pointer to incomplete type
pec_listener.c:143: error: 'CN_VAL_PROC' undeclared (first use in this
function)
pec_listener.c:144: error: dereferencing pointer to incomplete type
pec_listener.c:145: error: dereferencing pointer to incomplete type
pec_listener.c:146: error: dereferencing pointer to incomplete type
pec_listener.c:148: error: dereferencing pointer to incomplete type
pec_listener.c:149: error: dereferencing pointer to incomplete type
pec_listener.c:151: warning: passing argument 3 of 'netlink_send' from
incompatible pointer type
pec_listener.c: In function 'process_event':
pec_listener.c:168: error: dereferencing pointer to incomplete type
pec_listener.c:170: error: dereferencing pointer to incomplete type
pec_listener.c:171: error: 'PROC_EVENT_NONE' undeclared (first use in
this function)
pec_listener.c:172: error: dereferencing pointer to incomplete type
pec_listener.c:174: error: 'PROC_EVENT_FORK' undeclared (first use in
this function)
pec_listener.c:176: error: dereferencing pointer to incomplete type
pec_listener.c:177: error: dereferencing pointer to incomplete type
pec_listener.c:179: error: 'PROC_EVENT_EXEC' undeclared (first use in
this function)
pec_listener.c:181: error: dereferencing pointer to incomplete type
pec_listener.c:183: error: 'PROC_EVENT_UID' undeclared (first use in
this function)
pec_listener.c:185: error: dereferencing pointer to incomplete type
pec_listener.c:186: error: dereferencing pointer to incomplete type
pec_listener.c:187: error: dereferencing pointer to incomplete type
pec_listener.c:189: error: 'PROC_EVENT_GID' undeclared (first use in
this function)
pec_listener.c:191: error: dereferencing pointer to incomplete type
pec_listener.c:192: error: dereferencing pointer to incomplete type
pec_listener.c:193: error: dereferencing pointer to incomplete type
pec_listener.c:195: error: 'PROC_EVENT_EXIT' undeclared (first use in
this function)
pec_listener.c:197: error: dereferencing pointer to incomplete type
pec_listener.c:198: error: dereferencing pointer to incomplete type
pec_listener.c:199: error: dereferencing pointer to incomplete type
pec_listener.c: In function 'main':
pec_listener.c:225: error: 'NETLINK_CONNECTOR' undeclared (first use in
this function)
pec_listener.c:239: error: 'CN_IDX_PROC' undeclared (first use in this
function)
pec_listener.c:249: error: 'PROC_CN_MCAST_LISTEN' undeclared (first use
in this function)
pec_listener.c:249: error: type of formal parameter 3 is incomplete
pec_listener.c:263: error: 'PROC_CN_MCAST_IGNORE' undeclared (first use
in this function)
pec_listener.c:263: error: type of formal parameter 3 is incomplete
pec_listener.c:276: error: type of formal parameter 3 is incomplete
pec_listener.c:297: error: type of formal parameter 3 is incomplete
make[4]: *** [pec_listener] Error 1
make[4]: Leaving directory
`/root/subrata/ltp/ltp-full-20081020/testcases/kernel/connectors/pec'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/root/subrata/ltp/ltp-full-20081020/testcases/kernel/connectors'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/root/subrata/ltp/ltp-full-20081020/testcases/kernel'
make[1]: *** [all] Error 2
make[1]: Leaving directory
`/root/subrata/ltp/ltp-full-20081020/testcases'
make: *** [all] Error 2


Regards--
Subrata


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to