Re: net-snmp compile problem

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
spectrum wrote:
> have a compile problem with Net-SNMP 5.4.2.1
> ./configure --enable-embedded-perl --enable-shared
> proceed without any error.

What Linux distro are you using? What Perl packages do you have installed?
What's the output of 'perl -V'?

> make
> ...
> gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib -g -O2 -Ulinux -Dlinux=linux -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE -c snmp_perl.c  -fPIC -DPIC -o .libs/snmp_perl.o
> snmp_perl.c:1:20: error: EXTERN.h: Нет такого файла или каталога
> In file included from snmp_perl.c:2:
> /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/perl.h:948:21: error: embed.h: Нет такого файла или каталога
> /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/perl.h:2382:19: error: handy.h: Нет такого файла или каталога
> /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE/perl.h:2560:24: error: unixish.h: Нет такого файла или каталога

It looks like you're missing a couple of required Perl header files. Do you have embed.h, handy.h and unixish.h anywhere on your system? They should normally be in the very same directory as perl.h itself, i.e. /usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE in your case.

Also, please use "env LC_ALL=C make" instead of just "make" before posting error messages in the future.


+Thomas

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
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.