Hello,

 

I’m trying to set up eclipse CDT (Galileo) in order to create a Net SNMP
application.

My problem is, that I cannot compile any projects I created. Here the steps
I did.

 

- I installed the Net SNMP library for windows.

 

- I read this page (http://max.berger.name/howto/cdt/ar01s03.jsp ) which
told me to install MinGW and msys.

 

- I have set up the environment variables

 

- I included some paths to ( right click > Properties > C/C++ General  >
Paths and Symbols > Includes), namely:

                C:\Net-SNMP\usr\lib

C:\Net-SNMP\usr\include\net-snmp

C:\Net-SNMP\usr\include

C:\MinGW\lib 

  in order to make the net snmp  #includes of my application working.
(#include <net-snmp/net-snmp-config.h> #include
<net-snmp/net-snmp-includes.h>)

 

- Building a project doesn’t work -> Error output shown at the end of the
email for overview purposes.

 

- I read on the net-snmp homepage: Compiling net-snmp with MinGW requires
GNU regex. A GNU regex package that

builds under MinGW with MSyS is available at: […]



 

- I read the information in the INSTALL file located in the GNU regex.tar 



- I copied the tar file into my MinGW home\name folder and entered
“./configure” in the MinGW console and entered “make install” afterwards


- In the folder I have a regex.o file like stated on
http://puredata.info/docs/developer/attic/mingw/ : regex-0.12.tar.gz
<ftp://ftp.gnu.org/gnu/regex/regex-0.12.tar.gz>  (instructions were derived
from: Building and install GNU Regex
<http://www.openldap.org/faq/data/cache/302.html> ). You can ignore the TeX
errors as long as you end up with the file regex.o

 

- I restarted eclipse but still I cannot compile, Error shown below

 

I’m pretty new to this whole eclipse stuff, hopefully someone can tell me
where my error is.

 

Thx in advance

Michael

 

 **** Internal Builder is used for build               ****

gcc -IC:\Net-SNMP\usr\lib -IC:\Net-SNMP\usr\include\net-snmp
-IC:\Net-SNMP\usr\include -IC:\MinGW\lib -O0 -g3 -Wall -c -fmessage-length=0
-oMIBExtraction.o ..\MIBExtraction.c

In file included from ..\MIBExtraction.c:8:0:

C:\Net-SNMP\usr\include/net-snmp/net-snmp-config.h:1555:26: error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'uint32_t'

C:\Net-SNMP\usr\include/net-snmp/net-snmp-config.h:1557:26: error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'uint64_t'

C:\Net-SNMP\usr\include/net-snmp/net-snmp-config.h:1558:17: error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'int64_t'

C:\Net-SNMP\usr\include/net-snmp/net-snmp-config.h:1559:26: error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'uintmax_t'

C:\Net-SNMP\usr\include/net-snmp/net-snmp-config.h:1560:17: error: expected
'=', ',', ';', 'asm' or '__attribute__' before 'intmax_t'

In file included from C:\Net-SNMP\usr\include/net-snmp/definitions.h:22:0,

                 from
C:\Net-SNMP\usr\include/net-snmp/net-snmp-includes.h:71,

                 from ..\MIBExtraction.c:9:

C:\Net-SNMP\usr\include/net-snmp/types.h:68:13: error: conflicting types for
'ssize_t'

c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/sys/types.h:118:18
: note: previous declaration of 'ssize_t' was here

In file included from C:\Net-SNMP\usr\include/net-snmp/session_api.h:265:0,

                 from
C:\Net-SNMP\usr\include/net-snmp/library/snmp_client.h:32,

                 from C:\Net-SNMP\usr\include/net-snmp/varbind_api.h:79,

                 from
C:\Net-SNMP\usr\include/net-snmp/library/snmp_api.h:28,

                 from C:\Net-SNMP\usr\include/net-snmp/types.h:387,

                 from C:\Net-SNMP\usr\include/net-snmp/definitions.h:22,

                 from
C:\Net-SNMP\usr\include/net-snmp/net-snmp-includes.h:71,

                 from ..\MIBExtraction.c:9:

C:\Net-SNMP\usr\include/net-snmp/library/snmpUDPIPv6Domain.h:20:40: warning:
'struct sockaddr_in6' declared inside parameter list

C:\Net-SNMP\usr\include/net-snmp/library/snmpUDPIPv6Domain.h:20:40: warning:
its scope is only this definition or declaration, which is probably not what
you want

C:\Net-SNMP\usr\include/net-snmp/library/snmpUDPIPv6Domain.h:31:38: warning:
'struct sockaddr_in6' declared inside parameter list

In file included from C:\Net-SNMP\usr\include/net-snmp/session_api.h:268:0,

                 from
C:\Net-SNMP\usr\include/net-snmp/library/snmp_client.h:32,

                 from C:\Net-SNMP\usr\include/net-snmp/varbind_api.h:79,

                 from
C:\Net-SNMP\usr\include/net-snmp/library/snmp_api.h:28,

                 from C:\Net-SNMP\usr\include/net-snmp/types.h:387,

                 from C:\Net-SNMP\usr\include/net-snmp/definitions.h:22,

                 from
C:\Net-SNMP\usr\include/net-snmp/net-snmp-includes.h:71,

                 from ..\MIBExtraction.c:9:

C:\Net-SNMP\usr\include/net-snmp/library/snmpTCPIPv6Domain.h:20:8: warning:
'struct sockaddr_in6' declared inside parameter list

In file included from C:\Net-SNMP\usr\include/net-snmp/utilities.h:39:0,

                 from
C:\Net-SNMP\usr\include/net-snmp/net-snmp-includes.h:74,

                 from ..\MIBExtraction.c:9:

C:\Net-SNMP\usr\include/net-snmp/library/system.h:85:59: warning: 'struct
timezone' declared inside parameter list

..\MIBExtraction.c: In function 'main':

..\MIBExtraction.c:36:20: warning: pointer targets in assignment differ in
signedness

..\MIBExtraction.c:37:2: warning: pointer targets in passing argument 1 of
'strlen' differ in signedness

c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/string.h:49:40:
note: expected 'const char *' but argument is of type 'u_char *'

Build error occurred, build is stopped

Time consumed: 682  ms.  

 

 

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to