Re: net-snmp make error : cannot find -lperl

2017-01-09 Thread Rajmohan Banavi
This indicates that perl is missing on the system. Depending on the package
manager for your system, you can use yum/apt/others to install perl first
and then later try to build net-snmp.

You could also try to build without perl support but you will lose some
utilities

./configure --prefix=/tmp/local/ --with-defaults --disable-embedded-perl
 --without-perl-modules



On Tue, Jan 10, 2017 at 11:35 AM, deepak.sachan deepak.sachan <
deepak.sac...@deal.drdo.in> wrote:

>
> Hello friends
> During net-snmp installation following error message shows. I think this
> must some library linking issue.
> Need help to resolve this
>
>
> up/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o
> mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o
> mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o
> mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o
> -Wl,-rpath -Wl,/home/deepak/Desktop/net-snmp-5.7.3/snmplib/.libs
> ../snmplib/.libs/libnetsnmp.so -L/usr/local/lib -L/usr/lib/perl/5.18/CORE
> -lperl -ldl -lpthread -lc -lcrypt -lm  -O2 -fstack-protector -Wl,-E
> -fstack-protector   -Wl,-soname -Wl,libnetsnmpagent.so.30 -o
> .libs/libnetsnmpagent.so.30.0.3
> /usr/bin/ld: cannot find -lperl
> collect2: error: ld returned 1 exit status
> make[1]: *** [libnetsnmpagent.la] Error 1
> make[1]: Leaving directory `/home/deepak/Desktop/net-snmp-5.7.3/agent'
> make: *** [subdirs] Error 1
>
>
>
>
> Thanks
>
>
> The contents of this Email communication are confidential to the
> addressee. If you
> are not the intended recipient you may not disclose or distribute this
> communication
> in any form should immediately contact the sender. The information,
> images, documents
> and views expressed in this Email are personal to the Sender and do not
> expressly or
> implicitly represent official positions of DRDO and no authority exists on
> behalf of
> DRDO to make any agreements, or other binding commitment by means of Email.
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> 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
>
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
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


net-snmp make error : cannot find -lperl

2017-01-09 Thread deepak . sachan deepak . sachan
Hello friends
During net-snmp installation following error message shows. I think this must 
some library linking issue.
Need help to resolve this
up/agentx/.libs/subagent.o mibgroup/utilities/.libs/execute.o 
mibgroup/utilities/.libs/iquery.o mibgroup/mibII/.libs/vacm_conf.o 
mibgroup/agentx/.libs/protocol.o mibgroup/agentx/.libs/client.o 
mibgroup/agentx/.libs/master_admin.o mibgroup/agentx/.libs/agentx_config.o   
-Wl,-rpath -Wl,/home/deepak/Desktop/net-snmp-5.7.3/snmplib/.libs 
../snmplib/.libs/libnetsnmp.so -L/usr/local/lib -L/usr/lib/perl/5.18/CORE 
-lperl -ldl -lpthread -lc -lcrypt -lm  -O2 -fstack-protector -Wl,-E 
-fstack-protector   -Wl,-soname -Wl,libnetsnmpagent.so.30 -o 
.libs/libnetsnmpagent.so.30.0.3
/usr/bin/ld: cannot find -lperl
collect2: error: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `/home/deepak/Desktop/net-snmp-5.7.3/agent'
make: *** [subdirs] Error 1
Thanks
 


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
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


NET-SNMP make error

2014-09-06 Thread Dharm S
I am using Ubuntu 14.04 (64-bit) . I have downloaded net-snmp-5.7.3.pre5
and did the configure. The make is giving the following error.

/usr/bin/ld: /usr/local/lib/perl5/5.18.2/x86_64-linux/CORE/libperl.a(op.o):
relocation R_X86_64_32S against `PL_sv_yes' can not be used when making a
shared object; recompile with -fPIC
/usr/local/lib/perl5/5.18.2/x86_64-linux/CORE/libperl.a: error adding
symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [libnetsnmpagent.la] Error 1
make[1]: Leaving directory `/home/dell/Desktop/net-snmp-5.7.3.pre5/agent'
make: *** [subdirs] Error 1


Is there errors related to perl version or is it something else?
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
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


Re: SNMP Make error

2010-08-12 Thread Dave Shield
On 10 August 2010 22:12, Ernie Lacson elac...@successfactors.com wrote:
 While running: make test, I get the following error.

 In file included from /usr/include/kvm.h:14,
  from kernel.h:11,
  from snmp_vars.c:143:
 /usr/include/sys/proc.h:202: error: syntax error before p_t1_lgrpid
 /usr/include/sys/proc.h:203: error: syntax error before p_tr_lgrpid
 /usr/include/sys/proc.h:337: error: syntax error before '}' token

 In file included from kernel.h:11,
  from snmp_vars.c:143:
 /usr/include/kvm.h:44: error: syntax error before '*' token
 /usr/include/kvm.h:45: error: syntax error before '*' token
 /usr/include/kvm.h:48: error: syntax error before proc_t


We've had this problem reported a couple of times over the last year.
But neither of the people involved came back with the requested
information to help track down the problem.

(Quoting Thomas from those earlier reports)

   What exact configure options did you use?
   What gcc version and package are you running?
   What's the value of HAVE_KVM_H and HAVE_SYS_PROC_H
   in include/net-snmp/net-snmp-config.h in the build dir after
running configure?
   Do you see similar errors wrt. kvm.h and sys/proc.h in config.log?



My questions:
   What do lines 202  203 of  /usr/include/sys/proc.h look like?
If they refer to a type 'lgrp_id_t',  does this appear anywhere in
the header file /usr/include/sys/types.h?

As a quick-n-dirty test, try tweaking the sys/proc.h header file
to remove the word volatile from lines 202  203, and re-compile.
Does that make any difference?


Dave

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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


SNMP Make error

2010-08-10 Thread Ernie Lacson
Hi,

 

While running: make test, I get the following error. 

 

 

Thanks in advance for any help you provide.

 

 

make test

making all in /usr/local/src/net-snmp/net-snmp-5.5/snmplib

making all in /usr/local/src/net-snmp/net-snmp-5.5/agent

/bin/bash ../libtool --mode=compile gcc -I../include -I. -I../agent
-I../agent/mibgroup  -I../snmplib -I/usr/local/ssl/include -g -O2
-Usolaris2 -Dsolaris2=solaris2 -c -o snmp_vars.lo snmp_vars.c

libtool: compile:  gcc -I../include -I. -I../agent -I../agent/mibgroup
-I../snmplib -I/usr/local/ssl/include -g -O2 -Usolaris2
-Dsolaris2=solaris2 -c snmp_vars.c  -fPIC -DPIC -o .libs/snmp_vars.o

In file included from /usr/include/kvm.h:14,

 from kernel.h:11,

 from snmp_vars.c:143:

/usr/include/sys/proc.h:202: error: syntax error before p_t1_lgrpid

/usr/include/sys/proc.h:203: error: syntax error before p_tr_lgrpid

/usr/include/sys/proc.h:337: error: syntax error before '}' token

In file included from kernel.h:11,

 from snmp_vars.c:143:

/usr/include/kvm.h:44: error: syntax error before '*' token

/usr/include/kvm.h:45: error: syntax error before '*' token

/usr/include/kvm.h:48: error: syntax error before proc_t

*** Error code 1

make: Fatal error: Command failed for target `snmp_vars.lo'

Current working directory /usr/local/src/net-snmp/net-snmp-5.5/agent

*** Error code 1

The following command caused the error:

if test snmplib  agent apps man local mibs != ; then \

it=snmplib  agent apps man local mibs ; \

for i in $it ; do \

echo making all in `pwd`/$i; \

( cd $i ; make ) ; \

if test $? != 0 ; then \

exit 1 ; \

fi  \

done \

fi

make: Fatal error: Command failed for target `subdirs'

 

 

Regards,

Ernie

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev ___
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


RE: SNMP Make error

2010-08-10 Thread Mike Ayers
 From: Ernie Lacson [mailto:elac...@successfactors.com]
 Sent: Tuesday, August 10, 2010 2:12 PM

[SNIP]
 In file included from /usr/include/kvm.h:14,
 
  from kernel.h:11,
 
  from snmp_vars.c:143:
 
 /usr/include/sys/proc.h:202: error: syntax error before p_t1_lgrpid
 
 /usr/include/sys/proc.h:203: error: syntax error before p_tr_lgrpid
 
 /usr/include/sys/proc.h:337: error: syntax error before '}' token
[/SNIP]

Looks like the problem is in your include headers.  Try compiling a 
minimal app that includes kvm.h - that should fail as well.


HTH,

Mike

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
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


Re: Net-Snmp make error in AIX 5.3

2008-01-31 Thread Dave Shield
On 24/01/2008, Hotz, Harry [EMAIL PROTECTED] wrote:
 I'm having a make issue with the 5.4.1 net-snmp on an AIX 5.3
 server and was wondering if folks have seen this scenario/errors before
 and what I might be doing wrong.

The problem you describe appears to be related to an incompatibility
between the build environment used for compiling perl, and that
used for building the Net-SNMP agent.
   From README.aix:


In general, Perl modules need to be compiled with the same compiler and
compiler options as Perl itself. configure detects some mismatches (gcc vs.
vendor compiler), but treats different incarnations of the same compiler type
as similar. If your version of Perl (e.g. the one supplied by IBM for AIX 5.x)
has been compiled with cc_r on AIX, please make sure you also use CC=cc_r
when building net-snmp. Building with xlc in this case is known to fail
(see bug #1600099).
---

So your two options would seem to be:
   a)   build the Net-SNMP suite using cc_r
or
   b)   build it using configure --disable-embedded-perl

There's more discussion of this problem in Bug #1600099.
(http://sourceforge.net/tracker/index.php?func=detailaid=1600099group_id=12694atid=112694)

Dave

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


Net-Snmp make error in AIX 5.3

2008-01-25 Thread Hotz, Harry
  
I'm having a make issue with the 5.4.1 net-snmp on an AIX 5.3
server and was wondering if folks have seen this scenario/errors before
and what I might be doing wrong. Any help would be appreciated


I downloaded the 5.4.1 tar. Untarred it into /usr/lpp/. Went into
/usr/lpp/net-snmp-5.4.1 and ran ./configure --enable-as-needed. That
seemed to work fine
config.status: creating include/net-snmp/net-snmp-config.h
config.status: include/net-snmp/net-snmp-config.h is unchanged
config.status: executing default commands

-
Net-SNMP configuration summary:
-

  SNMP Versions Supported:1 2c 3
  Net-SNMP Version:   5.4.1
  Building for:   aix5
  Network transport support:  Callback Unix TCP UDP
  SNMPv3 Security Modules: usm
  Agent MIB code: default_modules =  snmpv3mibs mibII
ucd_snmp notification notification-log-mib target agent_mibs agentx
disman/event disman/schedule utilities host
  Embedded Perl support:  enabled
  SNMP Perl modules:  building -- embeddable
  SNMP Python modules:disabled
  Authentication support: MD5
  Encryption support:

-

then I ran the make and got the following errors

4 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -q32
-D_LARGE_FILES -qlonglong
-I/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE -g -Daix5=aix5 -c
snmp_perl.c  -DPIC -o .libs/snmp_perl.o
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/reentr.h, line 619.16:
1506-007 (S) struct drand48_data is undefined.
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/reentr.h, line 727.16:
1506-007 (S) struct random_data is undefined.
/usr/opt/perl5/lib/5.8.2/aix-thread-multi/CORE/reentr.h, line 775.16:
1506-007 (S) struct random_data is undefined.
snmp_perl.c, line 20.23: 1506-280 (W) Function argument assignment
between types void(*)(struct interpreter*,struct cv*) and
void(*)(struct cv*) is not allowed.
snmp_perl.c, line 50.29: 1506-280 (W) Function argument assignment
between types void(*)(struct interpreter*) and void(*)(void) is not
allowed.
make: 1254-004 The error code from the last command is 1.


Stop.
make: 1254-004 The error code from the last command is 2.
#

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


net-snmp make error

2004-12-28 Thread Tai Kyon








Hi all,



Running into some weird issues during my attempt to compile
net-snmp-5.1.2. Im running a Slackware distro running on 2.4.28 kernel.
Ran configure script with personal options. The error occurs during make. Ive
included the error message. If anyone can help me out regarding the error, Id
greatly appreciate it.



gcc -I../include -I../include -I.
-I.. -I. -I./.. -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/lib/perl5/5.8.5/i486-linux/CORE -g -O2 -Dlinux -c snmp_api.c -fPIC
-DPIC -o .libs/snmp_api.lo

snmp_api.c: In function `_init_snmp':

snmp_api.c:657: warning: assignment makes pointer from
integer without a cast

snmp_api.c:662: error: dereferencing pointer to incomplete
type

make[1]: *** [snmp_api.lo] Error 1

make[1]: Leaving directory `/opt/net-snmp-5.1.2/snmplib'

make: *** [subdirs] Error 1



Best Regards,



Tai Kyon





This electronic mail message and any attached files
contain information intended for the exclusive use of the individual or entity
to whom it is addressed and may contain information that is proprietary,
privileged, confidential and/or exempt from disclosure under applicable law. If
you are not the intended recipient, you are hereby notified that any viewing,
copying, disclosure or distribution of this information may be subject to legal
restriction or sanction. Please notify the sender, by electronic mail or
telephone, of any unintended recipients and delete the original message without
making any copies.