Hi @all,

I've some problems compiling net-snmp 5.3 or older version 5.2.2 with this
option:

# ./configure -prefix="/opt/net-snmp" -with-mib-modules=host
-enable-embedded-perl=yes -enable-shared

# make

"make" returns an error in the snmp_perl.c file:

...
URCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/lib/perl/5.8/CORE   -g -O2 -Dlinux  -c -o snmp_perl.lo snmp_perl.c
rm -f .libs/snmp_perl.lo
gcc -I../include -I. -I../agent -I../agent/mibgroup -I../snmplib
-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl/5.8/CORE -g -O2 -Dlinux -c snmp_perl.c  -fPIC -DPIC -o
.libs/snmp_perl.lo
snmp_perl.c: In function `xs_init':
snmp_perl.c:20: warning: passing arg 3 of `Perl_newXS' from incompatible
pointer type
snmp_perl.c: In function `maybe_source_perl_startup':
snmp_perl.c:50: warning: passing arg 2 of `perl_parse' from incompatible
pointer type
snmp_perl.c:88:2: #error embedded perl broken
make[1]: *** [snmp_perl.lo] Fehler 1
make[1]: Verlasse Verzeichnis
»/home/mcfly/Desktop/Downloads/net-snmp-5.3/agent«
make: *** [subdirs] Fehler 1
...

I already opened the snmp_perl.c file at line 20 and this happens to be a
difficulty with the DynaLoader. This modules seems to be distributed with
Perl Version 5.8.7 as it is downloadable at the CPAN. So a look with the
"inside" module from perl brought the answer that it isn't installed. But I
don't know how to get further. And I need the embedded perl mib_module,
because my C-skills aren't that good. So I'd be glad if anyone could help me
out.

So my gcc-version is: 3.3.6, distribution: Debian, Kernel: 2.6.6-1-686,
Perl-Version is 5.8.7 build with gnu-thred-multi. I thought this might help.

Thanks for your help.

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to