Re: Compilation Problem with 5.3.1

Thomas Anders <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.