RE: Compilation Problem with 5.3.1

2006-09-21 Thread Amit Gupta

Hello Sir,

I have elfutils-devel-0.97-5.i386.rpm
already installed on my machine.
Wont it work with the new version ?

Regards
- amit





Srivastava, Namburi
(IE10) [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
09/21/2006 10:59 AM




To
Amit Gupta [EMAIL PROTECTED]


cc
net-snmp-users@lists.sourceforge.net


Subject
RE: Compilation Problem with 5.3.1








My Make is now failing at 

usr/bin/ld: cannot find -lelf

collect2: ld returned 1 exit status

make[1]: *** [snmpd] Error 1

make[1]: Leaving directory `/home/amit/netsnmp/net-snmp-5.3.1/agent'

Please install the following
rpm package 
elfutils-devel-0.76-3.i386.rpm

Regards,
Sri.

*
This e-mail, and any attachments
thereto, are intended only for use by the addressee(s) named herein and
may contain privileged and/or confidential information. If you are not
the intended recipient of this e-mail, you are hereby notified that any
dissemination, distribution or copying of this e-mail, and any attachments
thereto, is illegal and strictly prohibited. If you have received this
e-mail in error, please immediately notify me by telephone and permanently
delete the original and any copy of any e-mail and any printout thereof.



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Amit
Gupta
Sent: Thursday, September 21, 2006 10:49 AM
To: net-snmp-users@lists.sourceforge.net
Subject: Re: Compilation Problem with 5.3.1


Hi Thomas, 

Thanks for the response. I could move forward but still not able

to complete it, 

My Make is now failing at 

usr/bin/ld: cannot find -lelf 
collect2: ld returned 1 exit status 
make[1]: *** [snmpd] Error 1 
make[1]: Leaving directory `/home/amit/netsnmp/net-snmp-5.3.1/agent'


I have checked the FAQ and created a soft link to the given library but
still it fails. 

Thomas, also can i compile the perl module without compiling the complete
package 
Below is perl -v output 

perl -v 

This is perl, v5.8.5 built for x86_64-linux-thread-multi


Copyright 1987-2004, Larry Wall 

Perl may be copied only under the terms of either the Artistic License
or the 
GNU General Public License, which may be found in the Perl 5 source kit.


Complete documentation for Perl, including FAQ lists, should be found on

this system using `man perl' or `perldoc perl'. If you have access
to the 
Internet, point your browser at http://www.perl.com/, the Perl Home Page.



and this is error on compiling perl module 

[EMAIL PROTECTED] perl]# make 
make[1]: Entering directory `/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store'

gcc -c  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind

-tables -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOU

RCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE
-I. -I/usr/include/net-snmp -D_REENTRANT -D_GNU_SOURCE -D

DEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64  -DVERSION=\5.0

301\ -DXS_VERSION=\5.0301\ -fPIC -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE
 default_store.c 
cc1: error: unrecognized command line option -fstack-protector

cc1: error: invalid parameter `ssp-buffer-size' 
default_store.c:1: error: CPU you selected does not support x86-64 instruction
set 
default_store.c:1: error: bad value (generic) for -mtune= switch

make[1]: *** [default_store.o] Error 1 
make[1]: Leaving directory `/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store'

make: *** [subdirs] Error 2 


Regards 
- Amit 




Thomas Anders [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]

09/20/2006 02:31 PM





Please respond to
net-snmp-users@lists.sourceforge.net






To
Amit Gupta [EMAIL PROTECTED]



cc
net-snmp-users@lists.sourceforge.net



Subject
Re: Compilation Problem with 5.3.1










Amit Gupta wrote:
 I ahave just downloaded the Netsnmp 5.3.1 source code and trying to
build 
 it there on the Linux machine. 
 [...]
 /usr/lib/libpopt.so: could not read symbols: File in wrong format

Looks like you're building on x86-64. Please use

 LDFLAGS=-L/usr/lib64 ./configure ...  make

for building, then.

 and also when i try to compile only the perl module, i get the following

 error
 
 no-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE

 -D_FILE_OFFSET
 _BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64  -DVERSION=\5.0301\

 -DXS_VERSI
 ON=\5.0301\ -fPIC 
 -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE
 default_store.c
 cc1: error: unrecognized command line option -fstack-protector
 cc1: error: invalid parameter `ssp-buffer-size

Re: Compilation Problem with 5.3.1

2006-09-21 Thread Thomas Anders
Amit Gupta wrote:
 Thanks for the response.  I could move forward but still not able
 to complete it,

You didn't answer all of my questions which make it hard to help. Again:

- What distro is this?
- Are you using the same compiler (which version?) that has been used to
compile perl (you should)?

Also, what are your configure options and CC/CFLAGS settings (if any)?

 Thomas, also can i compile the perl module without compiling the complete 
 package
 Below is perl -v output

I've been asking for perl -V (i.e. -V, not -v) output instead.

 gcc -c   -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
 -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 
 -mtune=generic -fasynchronous-unwind
 -tables -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE 
 -fno-strict-aliasing -pipe -Wdeclaration-after-statement 
 -I/usr/local/include -D_LARGEFILE_SOU
 RCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm 
 -I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. 
 -I/usr/include/net-snmp -D_REENTRANT -D_GNU_SOURCE -D
 DEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include 
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g 
 -pipe -m64   -DVERSION=\5.0
 301\ -DXS_VERSION=\5.0301\ -fPIC 
 -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE default_store.c

Please note that the gcc options include both -m32 and -m64 which is
asking for trouble. It really looks like you're mixing 32bit and 64bit
packages/settings on your system in an inappropriate way (which has
nothing to do with net-snmp as such).


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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: Compilation Problem with 5.3.1

2006-09-20 Thread Thomas Anders
Amit Gupta wrote:
 I ahave just downloaded the Netsnmp 5.3.1 source code and trying to build 
 it there on the Linux machine. 
 [...]
 /usr/lib/libpopt.so: could not read symbols: File in wrong format

Looks like you're building on x86-64. Please use

  LDFLAGS=-L/usr/lib64 ./configure ...  make

for building, then.

 and also when i try to compile only the perl module, i get the following 
 error
 
 no-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
 -D_FILE_OFFSET
 _BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64   -DVERSION=\5.0301\ 
 -DXS_VERSI
 ON=\5.0301\ -fPIC 
 -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE
 default_store.c
 cc1: error: unrecognized command line option -fstack-protector
 cc1: error: invalid parameter `ssp-buffer-size'
 default_store.c:1: error: CPU you selected does not support x86-64 
 instruction s
 et
 default_store.c:1: error: bad value (generic) for -mtune= switch
 make[1]: *** [default_store.o] Error 1
 make[1]: Leaving directory 
 `/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store

Please give a full line of compiler options instead of the truncated one
above. What distro is this? What's the output of perl -V? Are you
using the same compiler (which version?) that has been used to compile
perl (you should)?


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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: Compilation Problem with 5.3.1

2006-09-20 Thread Amit Gupta

Hi Thomas,

Thanks for the response. I could
move forward but still not able
to complete it,

My Make is now failing at 

usr/bin/ld: cannot find -lelf
collect2: ld returned 1 exit status
make[1]: *** [snmpd] Error 1
make[1]: Leaving directory `/home/amit/netsnmp/net-snmp-5.3.1/agent'

I have checked the FAQ and created a
soft link to the given library but still it fails.

Thomas, also can i compile the perl
module without compiling the complete package
Below is perl -v output

perl -v

This is perl, v5.8.5 built for x86_64-linux-thread-multi

Copyright 1987-2004, Larry Wall

Perl may be copied only under the terms
of either the Artistic License or the
GNU General Public License, which may
be found in the Perl 5 source kit.

Complete documentation for Perl, including
FAQ lists, should be found on
this system using `man perl' or `perldoc
perl'. If you have access to the
Internet, point your browser at http://www.perl.com/,
the Perl Home Page.


and this is error on compiling perl
module

[EMAIL PROTECTED] perl]# make
make[1]: Entering directory `/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store'
gcc -c  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386
-mtune=generic -fasynchronous-unwind
-tables -Dlinux -I/usr/include/rpm -D_REENTRANT
-D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include -D_LARGEFILE_SOU
RCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. -I/usr/include/net-snmp
-D_REENTRANT -D_GNU_SOURCE -D
DEBUGGING -fno-strict-aliasing -pipe
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm
-O2 -g -pipe -m64  -DVERSION=\5.0
301\ -DXS_VERSION=\5.0301\
-fPIC -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE
 default_store.c
cc1: error: unrecognized command line
option -fstack-protector
cc1: error: invalid parameter `ssp-buffer-size'
default_store.c:1: error: CPU you selected
does not support x86-64 instruction set
default_store.c:1: error: bad value
(generic) for -mtune= switch
make[1]: *** [default_store.o] Error
1
make[1]: Leaving directory `/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store'
make: *** [subdirs] Error 2


Regards
- Amit





Thomas Anders [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
09/20/2006 02:31 PM



Please respond to
net-snmp-users@lists.sourceforge.net





To
Amit Gupta [EMAIL PROTECTED]


cc
net-snmp-users@lists.sourceforge.net


Subject
Re: Compilation Problem with 5.3.1








Amit Gupta wrote:
 I ahave just downloaded the Netsnmp 5.3.1 source code and trying to
build 
 it there on the Linux machine. 
 [...]
 /usr/lib/libpopt.so: could not read symbols: File in wrong format

Looks like you're building on x86-64. Please use

 LDFLAGS=-L/usr/lib64 ./configure ...  make

for building, then.

 and also when i try to compile only the perl module, i get the following

 error
 
 no-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE

 -D_FILE_OFFSET
 _BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64  -DVERSION=\5.0301\

 -DXS_VERSI
 ON=\5.0301\ -fPIC 
 -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE
 default_store.c
 cc1: error: unrecognized command line option -fstack-protector
 cc1: error: invalid parameter `ssp-buffer-size'
 default_store.c:1: error: CPU you selected does not support x86-64

 instruction s
 et
 default_store.c:1: error: bad value (generic) for -mtune= switch
 make[1]: *** [default_store.o] Error 1
 make[1]: Leaving directory 
 `/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store

Please give a full line of compiler options instead of the truncated one
above. What distro is this? What's the output of perl -V? Are
you
using the same compiler (which version?) that has been used to compile
perl (you should)?


+Thomas

-- 
Thomas Anders (thomas.anders at blue-cable.de)

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT  business topics through brief surveys -- and earn
cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
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


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change

RE: Compilation Problem with 5.3.1

2006-09-20 Thread Srivastava, Namburi (IE10)



My Make is now 
failing at usr/bin/ld: cannot find 
-lelf collect2: ld returned 1 exit 
status 
make[1]: *** [snmpd] Error 
1 
make[1]: Leaving directory 
`/home/amit/netsnmp/net-snmp-5.3.1/agent' 
Please install the following rpm package 

elfutils-devel-0.76-3.i386.rpm

Regards,
Sri.

*
This e-mail, and 
any attachments thereto, are intended only for use by the addressee(s) named 
herein and may contain privileged and/or confidential information. If you are 
not the intended recipient of this e-mail, you are hereby notified that any 
dissemination, distribution or copying of this e-mail, and any attachments 
thereto, is illegal and strictly prohibited. If you have received this e-mail in 
error, please immediately notify me by telephone and permanently delete the 
original and any copy of any e-mail and any printout 
thereof.



From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Amit 
GuptaSent: Thursday, September 21, 2006 10:49 AMTo: 
net-snmp-users@lists.sourceforge.netSubject: Re: Compilation Problem 
with 5.3.1
Hi Thomas, Thanks for the response. I could move forward but 
still not able to complete it, 
My Make is now failing at 
usr/bin/ld: cannot find -lelf 
collect2: ld returned 1 exit status 
make[1]: *** [snmpd] Error 1 make[1]: Leaving directory 
`/home/amit/netsnmp/net-snmp-5.3.1/agent' I have checked the FAQ and created a soft link to the given library but 
still it fails. Thomas, also can i 
compile the perl module without compiling the complete package Below is perl -v output perl -v This 
is perl, v5.8.5 built for x86_64-linux-thread-multi Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the 
Artistic License or the GNU General 
Public License, which may be found in the Perl 5 source kit. 
Complete documentation for Perl, including 
FAQ lists, should be found on this 
system using `man perl' or `perldoc perl'. If you have access to 
the Internet, point your browser at 
http://www.perl.com/, the Perl Home Page. and this is error on compiling perl module 
[EMAIL PROTECTED] perl]# make 
make[1]: Entering directory 
`/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store' gcc -c  -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 
-mtune=generic -fasynchronous-unwind -tables -Dlinux -I/usr/include/rpm -D_REENTRANT -D_GNU_SOURCE 
-fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include 
-D_LARGEFILE_SOU RCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm 
-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE -I. -I/usr/include/net-snmp 
-D_REENTRANT -D_GNU_SOURCE -D DEBUGGING 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64  
-DVERSION=\"5.0 301\" 
-DXS_VERSION=\"5.0301\" -fPIC 
"-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE"  
default_store.c cc1: error: unrecognized 
command line option "-fstack-protector" cc1: error: invalid parameter `ssp-buffer-size' default_store.c:1: error: CPU you selected does not 
support x86-64 instruction set default_store.c:1: error: bad value (generic) for -mtune= switch 
make[1]: *** [default_store.o] Error 1 
make[1]: Leaving directory 
`/home/amit/netsnmp/net-snmp-5.3.1/perl/default_store' make: *** [subdirs] Error 2 Regards - 
Amit 

  
  
Thomas Anders 
  [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 
  09/20/2006 02:31 PM 
  


  
Please respond 
tonet-snmp-users@lists.sourceforge.net

  


  
To
  Amit Gupta 
[EMAIL PROTECTED] 

  
cc
  net-snmp-users@lists.sourceforge.net 

      
    Subject
  Re: Compilation Problem with 
5.3.1
  


  
  Amit Gupta wrote: I ahave just downloaded the Netsnmp 5.3.1 
source code and trying to build  it there on the Linux machine.  
[...] /usr/lib/libpopt.so: could not read symbols: File in wrong 
formatLooks like you're building on x86-64. Please 
useLDFLAGS=-L/usr/lib64 ./configure ...  makefor 
building, then. and also when i try to compile only the perl module, 
i get the following  error  no-strict-aliasing -pipe 
-I/usr/local/include -D_LARGEFILE_SOURCE  -D_FILE_OFFSET 
_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64  -DVERSION=\"5.0301\" 
 -DXS_VERSI ON=\"5.0301\" -fPIC  
"-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" 
default_store.c cc1: error: unrecognized command line option 
"-fstack-protector" cc1: error: invalid parameter 
`ssp-buffer-size' defau