Question about arm-linux-gcc

"William" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <000701cc0a72$5b928420$12b78c60$@com>
 
Hello:
	When I compile my snmp module with gcc ,it works well.
	But when I using the arm-linux-gcc, the problems occur:

../../include/snmp.h:28:38: net-snmp/net-snmp-config.h: No such file or
directory
../../include/snmp.h:29:40: net-snmp/net-snmp-includes.h: No such file or
directory
../../include/snmp.h:30:52: net-snmp/agent/net-snmp-agent-includes.h: No
such file or directory
In file included from ../../include/common.h:76,
                 from devmt.c:35:
../../include/snmp.h:42: error: syntax error before '/' token
../../include/snmp.h:46: warning: data definition has no type or storage
class
../../include/snmp.h:48: error: syntax error before "write_vlanint"
../../include/snmp.h:48: warning: data definition has no type or storage
class
../../include/snmp.h:49: error: syntax error before "write_triggerint"
../../include/snmp.h:49: warning: data definition has no type or storage
class
../../include/snmp.h:50: error: syntax error before "write_ppcipstr"
../../include/snmp.h:50: warning: data definition has no type or storage
class
../../include/snmp.h:51: error: syntax error before "write_systimestr"
../../include/snmp.h:51: warning: data definition has no type or storage
class
../../include/snmp.h:52: error: syntax error before "write_armipstr"
../../include/snmp.h:52: warning: data definition has no type or storage
class
../../include/snmp.h:53: error: syntax error before "write_armsystimestr"
../../include/snmp.h:53: warning: data definition has no type or storage
class
../../include/snmp.h:54: error: syntax error before "write_exampletrap2"
../../include/snmp.h:54: warning: data definition has no type or storage
class
../../include/snmp.h:90: error: syntax error before "WriteMethod"
../../include/snmp.h:95: error: syntax error before "ponTable_handler"
../../include/snmp.h:95: warning: data definition has no type or storage
class
../../include/snmp.h:96: error: syntax error before
"ponTable_get_first_data_point"
../../include/snmp.h:96: warning: data definition has no type or storage
class
../../include/snmp.h:97: error: syntax error before
"ponTable_get_next_data_point"
../../include/snmp.h:97: warning: data definition has no type or storage
class
../../include/snmp.h:105: error: syntax error before "onuponTable_handler"
../../include/snmp.h:105: warning: data definition has no type or storage
class
../../include/snmp.h:106: error: syntax error before
"onuponTable_get_first_data_point"


I guess it's the problem of the head files,so I added the net-snmp-*.h
mentioned above. But it remains unresolved.

I encountered this problem when I compile with gcc,it's OK when I added the
lib below:
	-lcrypto -lsensors -lz -lperl -lnetsnmpagent -lnetsnmphelpers
-lnetsnmpmibs -lnetsnmp
But this time ,I can't resolve it !

Look forward to your reply!

	
william


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.