On Wed, 2005-11-30 at 13:34 +0530, Manish Sharma wrote:
> I am installing netsnmp 5.2.2 on HP-UX

> I have tried to compile netsnmp with "aCC" using 
> a. "./configure --with-cc=aCC" 
> b. make 
> c. make install 
> 
> Which worked fine , but when I try to run "mib2c" it says
> that SNMP perl module is not installed. It seems that Perl
> module at "/perl/SNMP" wants only "gcc" as compiler.

Not quite.
The Net-SNMP perl module requires the same compiler as used
to compile perl in the first place.  If perl was compiled
with "aCC", then you can (indeed must) use aCC to compile
the perl module as well.
  If perl was compiled with "gcc", then you must use gcc
to compile the SNMP perl module.  (So the object files
can link in with the main perl binary)

But the perl module must *also* use the same compiler as
used to built the main SNMP libraries  (because it relies
on these too).   So if you want to use the perl modules,
you must configure the Net-SNMP suite to use the same
compiler that was used to build "perl".




> Now my questions are
> 1. Does netsnmp compilable with "aCC" compiler ? 

Probably.

> 2. Is there any way where I can exclude "SNMP perl module"  
>    dependency ? If yes then how can I do this 
>    I have seen options in "configure --without-perl-modules
>          --disable-embedded-perl --disable-perl-modules"

Close - try

    configure --without-perl-modules --disable-embedded-perl


But of course, if you don't build the perl modules, then you
can't use "mib2c".



> 3. If no then how I compile perl Module with "aCC" ?

See above.

Dave


-------------------------------------------------------
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-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to