RE: Problem with make'ing 5.4.2.1 on Solaris 8

"Sorrell, Al" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <D1DD4CF81CB5D44C85FA0C3ECB897F31031098A0@TC3637.corp.troweprice.net>
Ben,

Thanks for your suggestion. 

I applied your perl edit, then re-did the 'make' and 'make install' and
it worked like a champ!

 

Thanks again for your help.

 

Al

 

________________________________

From: [email protected] [mailto:[email protected]] 
Sent: Wednesday, February 25, 2009 2:25 PM
To: Sorrell, Al
Cc: [email protected]
Subject: RE: Problem with make'ing 5.4.2.1 on Solaris 8

 


I recently had to build 5.4.2.1 on Solaris 8/Sparc with SunFreeware's
OpenSSL 

I found I needed to do: 

 perl -pi -e 's,-L/usr/local/ssl/lib,-L/usr/local/lib -R/usr/local/lib
-L/usr/local/ssl/lib -R/usr/local/ssl/lib,' `find . -name Makefile
-print` 


I probably could have worked around this by setting the right LDFLAGS,
but I didn't 
want to have to rerun configure given that I knew it was working with
the configure 
I ran on 9, 10 and 10x86. 

Ben 




"Sorrell, Al" <[email protected]> 

02/25/2009 01:17 PM 

To

[email protected] 

cc

 

Subject

RE: Problem with make'ing 5.4.2.1 on Solaris 8

 

 

 





>> Hello,
>> I'm getting a Segmentation Fault during the make phase of building
>> 5.4.2.1 as shown below. Note that I really only use the apps
(snmpwalk,
>> etc.) and the Perl API. I do NOT need or use the agent.
>>
>> Anyone have suggestions? Need more info?
>
>   $ ./configure --help  | grep agent
>      --disable-agent     Do not build the agent (snmpd).
>
>Worth a try, at least.
>
>Dave

Thanks for your suggestion (obviously this was really in the configure -
not make - phase)!

# ./configure --with-perl-modules --disable-agent

I did as you suggested and the configure phase completed successfully
and the 'make' ran fine. As expected, most of the 'make test' tests
either were skipped or failed, but tests of snmpwalk, etc. against
existing devices seemed to work fine.

After a 'make install', in testing with existing perl programs, I got:

A simple test program fails:
#!/usr/local/bin/perl -w
use strict;
use SNMP;

my $SNMP_version=$SNMP::VERSION;
$SNMP::use_enums=1;
$SNMP::use_sprint_value=1;
&SNMP::initMib();

exit;

$ test_snmp.pl
Can't load
'/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/SNMP/SNMP.so'
for module SNMP: ld.so.1: test_snmp.pl: fatal: relocation error: file
/usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris/auto/SNMP/SNMP.so:
symbol usmAESPrivProtocol: referenced symbol not found at
/usr/local/lib/perl5/5.8.7/sun4-solaris/DynaLoader.pm line 230.
at test_snmp.pl line 3
Compilation failed in require at test_snmp.pl line 3.
BEGIN failed--compilation aborted at test_snmp.pl line 3.


I'm using openSSL 0.9.8j and openssh 5.1.p1 from sunfreeware. 

More suggestions - Please?

Thanks,
Al


T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates)
and its associates do not provide legal or tax advice.  Any tax-related
discussion contained in this e-mail, including any attachments, is not
intended or written to be used, and cannot be used, for the purpose of
(i) avoiding any tax penalties or (ii) promoting, marketing, or
recommending to any other party any transaction or matter addressed
herein.  Please consult your independent legal counsel and/or
professional tax advisor regarding any legal or tax issues raised in
this e-mail.

The contents of this e-mail and any attachments are intended solely for
the use of the named addressee(s) and may contain confidential and/or
privileged information. Any unauthorized use, copying, disclosure, or
distribution of the contents of this e-mail is strictly prohibited by
the sender and may be unlawful. If you are not the intended recipient,
please notify the sender immediately and delete this e-mail.


------------------------------------------------------------------------
------
Open Source Business Conference (OSBC), March 24-25, 2009, San
Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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





T. Rowe Price (including T. Rowe Price Group, Inc. and its affiliates) and its associates do not provide legal or tax advice.  Any tax-related discussion contained in this e-mail, including any attachments, is not intended or written to be used, and cannot be used, for the purpose of (i) avoiding any tax penalties or (ii) promoting, marketing, or recommending to any other party any transaction or matter addressed herein.  Please consult your independent legal counsel and/or professional tax advisor regarding any legal or tax issues raised in this e-mail.

The contents of this e-mail and any attachments are intended solely for the use of the named addressee(s) and may contain confidential and/or privileged information. Any unauthorized use, copying, disclosure, or distribution of the contents of this e-mail is strictly prohibited by the sender and may be unlawful. If you are not the intended recipient, please notify the sender immediately and delete this e-mail.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
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.