Hello,

I'm trying to instill the net-snmp-5.4.1 on my MAC laptop. I'm  
receiving this error when I run the make command.

bonham:net-snmp-5.4.1 bonham$ make
gcc -E -Iinclude -I./include -I./agent/mibgroup -I. -I. - 
DDONT_INC_STRUCTS -DBINDIR=/usr/local/bin -x c ./sedscript.in | egrep  
'^s[/#]' | sed 's/REMOVEME//g;s# */#/#g;s/ *#/#/g;s#/ *#/#g;s/# g/ 
#g/;' > sedscript
echo 's#DATADIR#/usr/local/share#g' >> sedscript
echo 's#LIBDIR#/usr/local/lib#g' >> sedscript
echo 's#BINDIR#/usr/local/bin#g' >> sedscript
echo 's#PERSISTENT_DIRECTORY#/var/net-snmp#g' >> sedscript
echo 's#SYSCONFDIR#/usr/local/etc#g' >> sedscript
/usr/bin/sed -f sedscript ./EXAMPLE.conf.def > EXAMPLE.conf
making all in /Users/bonham/Downloads/net-snmp-5.4.1/snmplib
/bin/sh ../libtool  --mode=compile gcc -I../include -I.         -I../snmplib - 
I/usr/local/ssl/include   -arch i386 -arch ppc -g -pipe -fno-common - 
DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -Wdeclaration-after- 
statement -I/usr/local/include  -I/System/Library/Perl/5.8.8/darwin- 
thread-multi-2level/CORE  -g -O2 -Udarwin9 -Ddarwin9=darwin9  -c -o  
snmp_client.lo snmp_client.c
  gcc -I../include -I. -I../snmplib -I/usr/local/ssl/include -arch  
i386 -arch ppc -g -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno- 
strict-aliasing -Wdeclaration-after-statement -I/usr/local/include -I/ 
System/Library/Perl/5.8.8/darwin-thread-multi-2level/CORE -g -O2 - 
Udarwin9 -Ddarwin9=darwin9 -c snmp_client.c  -fno-common -DPIC - 
o .libs/snmp_client.o
In file included from snmp_client.c:96:
../include/net-snmp/types.h:68: error: conflicting types for 'ssize_t'
/usr/include/string.h:70: error: previous declaration of 'ssize_t' was  
here
In file included from snmp_client.c:96:
../include/net-snmp/types.h:68: error: conflicting types for 'ssize_t'
/usr/include/string.h:70: error: previous declaration of 'ssize_t' was  
here
lipo: can't open input file: /var/folders/BC/BC7fIorxEdeSiCkFF1kv0k++ 
+TI/-Tmp-//ccWWyBgu.out (No such file or directory)
make[1]: *** [snmp_client.lo] Error 1
make: *** [subdirs] Error 1

I have tried putting on all of the options and even played with them a  
little bit and I still can't get it to compile. I have also tried  
going down to 5.3.* and no luck at all.

The other thing that I'm trying to find and I'm not able to is if it  
is stall the library with a .a for the static linking for programs or  
if it is a .so. If it is .so by default then how to I make it a static  
library. I'm working on doing some testing and programming in C with  
SNMP so I really need this to work.

Thank you for your help.

Thomas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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

Reply via email to