I cannot fix the "make" error(s) but I fixed the LDFLAGS error

make sure your Environment variables are correct:

loki:~ [263]> echo $PATH
/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/home/chris/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/local/netscape:/usr/ccs/bin:/usr/ucb:/usr/openwin:/usr/games
loki:~ [264]> echo $LD_LIBRARY_PATH
/lib:/usr/lib:/usr/ucblib:/usr/ccs/lib:/usr/local/lib:/usr/local/ssl/lib:/usr/local/ucd-snmp/lib

By having both the /usr/ucblib and /usr/ccs/lib 
and
/usr/ccs/bin:/usr/ucb

It made it so I can create the create the Makefile without getting the
LDFLAGS error.

Hope this helps.

-Chris

On Thu, 2002-08-15 at 11:29, Schmidt-1, Pamela wrote:
> Chris - 
> The change to the Makefile.PL only corrects for one error message.  I see
> you have the same error message "WARNING: LDFLAGS is not a known parameter"
> that I am getting.  What I have found out is that LDFLAGS uses a module
> called ld and it doesn't appear to be loaded on my server.  I'm not sure
> where to find this module, at this time.  I'm currently in the process of
> looking into where the ld module is stored.  I will keep you and the list
> informed of any advances.
> 
> Pam
> 
> -----Original Message-----
> From: Chris Denneen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 15, 2002 9:19 AM
> To: Pamela Schmidt
> Cc: Daniel O Cummings; Jon Meek; [EMAIL PROTECTED]
> Subject: Re: Re: FW: Newbie Question - Receiving an undefined error
> whentrying to startmon
> 
> 
> Pamela I tried what you said todo.. and even changed the Makefile.PL to
> reflect your changes from 'SNMP' to {SNMP} and here is the output I got.
> I am also using Perl 5.8.0
> 
> Maybe this will help or some one can shed some light here.
> 
> Doing the perl Makefile.PL:
> root@loki:/tmp/.cpan/build/SNMP-4.2.0# perl Makefile.PL 
> Where are the ucd-snmp include files? [/usr/local/include]
> /usr/local/ucd-snmp/include
> Where is the ucd-snmp library installed? [/usr/lib]
> /usr/local/ucd-snmp/lib
> WARNING: LDFLAGS is not a known parameter.
> Processing hints file hints/solaris.pl
> Writing Makefile for SNMP
> Unable to locate the MIBs, Please enter the path:  [/usr/local/sbin]
> /usr/local/ucd-snmp/share/snmp/mibs
> Unable to locate "snmpd". Please enter the path:  [/usr/local/sbin]
> /usr/local/ucd-snmp/sbin
> Unable to locate "snmptrapd". Please enter the path:  [/usr/local/sbin]
> /usr/local/ucd-snmp/sbin
> root@loki:/tmp/.cpan/build/SNMP-4.2.0#
> 
> 
> Doing the make once the Makefile exists:
> root@loki:/tmp/.cpan/build/SNMP-4.2.0# make
> gcc -B/usr/ccs/bin/ -L/usr/local/ucd-snmp/lib  -L/usr/local/lib  
> SNMP.o   -o SNMP
> Undefined                       first referenced
>  symbol                             in file
> PL_tmps_ix                          SNMP.o
> PL_markstack_max                    SNMP.o
> Perl_mg_set                         SNMP.o
> Perl_safesysmalloc                  SNMP.o
> Perl_newAV                          SNMP.o
> PL_curpad                           SNMP.o
> Perl_pop_scope                      SNMP.o
> Perl_call_method                    SNMP.o
> get_tree                            SNMP.o
> Perl_newXS                          SNMP.o
> hex_to_binary                       SNMP.o
> Perl_sv_2mortal                     SNMP.o
> Perl_call_pv                        SNMP.o
> PL_tmps_floor                       SNMP.o
> sprint_objid                        SNMP.o
> Perl_safesysfree                    SNMP.o
> PL_sv_undef                         SNMP.o
> find_module                         SNMP.o
> gethostbyname                       SNMP.o
> tree_head                           SNMP.o
> ds_set_boolean                      SNMP.o
> Perl_newRV                          SNMP.o
> Mib                                 SNMP.o
> snmp_close                          SNMP.o
> Perl_mg_find                        SNMP.o
> snmp_free_pdu                       SNMP.o
> read_module                         SNMP.o
> Perl_sv_2pv_nolen                   SNMP.o
> Perl_call_sv                        SNMP.o
> snmp_set_quick_print                SNMP.o
> Perl_hv_store                       SNMP.o
> Perl_warn                           SNMP.o
> Perl_newRV_noinc                    SNMP.o
> init_snmpv3                         SNMP.o
> Perl_hv_fetch                       SNMP.o
> Perl_av_store                       SNMP.o
> Perl_av_fetch                       SNMP.o
> Perl_get_sv                         SNMP.o
> Perl_sv_newmortal                   SNMP.o
> printU64                            SNMP.o
> Perl_gv_stashpv                     SNMP.o
> Perl_sv_setpv                       SNMP.o
> PL_stack_max                        SNMP.o
> Perl_sv_2iv                         SNMP.o
> Perl_safesysrealloc                 SNMP.o
> snmp_errstring                      SNMP.o
> snmp_add_null_var                   SNMP.o
> Perl_sv_setnv                       SNMP.o
> Perl_sv_bless                       SNMP.o
> Perl_sv_setref_pv                   SNMP.o
> snmp_read                           SNMP.o
> get_symbol                          SNMP.o
> Perl_sv_mortalcopy                  SNMP.o
> snmp_select_info                    SNMP.o
> sprint_value                        SNMP.o
> Perl_av_clear                       SNMP.o
> snmp_timeout                        SNMP.o
> Perl_sv_setsv_flags                 SNMP.o
> Perl_sv_setiv                       SNMP.o
> Perl_sv_setref_iv                   SNMP.o
> PL_na                               SNMP.o
> inet_addr                           SNMP.o
> find_node                           SNMP.o
> snmp_set_save_descriptions          SNMP.o
> snmp_api_errstring                  SNMP.o
> Perl_av_len                         SNMP.o
> Perl_av_push                        SNMP.o
> init_mib_internals                  SNMP.o
> snmp_synch_response                 SNMP.o
> PL_op                               SNMP.o
> snmp_set_do_debugging               SNMP.o
> get_uptime                          SNMP.o
> Perl_stack_grow                     SNMP.o
> snmp_open                           SNMP.o
> PL_stack_sp                         SNMP.o
> snmp_send                           SNMP.o
> Perl_newSVpv                        SNMP.o
> Perl_sv_2pv_flags                   SNMP.o
> PL_stack_base                       SNMP.o
> snmp_set_dump_packet                SNMP.o
> Perl_get_hv                         SNMP.o
> read_all_mibs                       SNMP.o
> ds_get_boolean                      SNMP.o
> Perl_newSViv                        SNMP.o
> read_mib                            SNMP.o
> Perl_push_scope                     SNMP.o
> Perl_free_tmps                      SNMP.o
> snmp_call_callbacks                 SNMP.o
> find_best_tree_node                 SNMP.o
> snmp_async_send                     SNMP.o
> Perl_save_int                       SNMP.o
> Perl_newSVsv                        SNMP.o
> snmp_pdu_create                     SNMP.o
> get_tree_head                       SNMP.o
> Perl_sv_2bool                       SNMP.o
> Perl_newHV                          SNMP.o
> main                               
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.3/crt1.o
> get_tc_descriptor                   SNMP.o
> read_objid                          SNMP.o
> Perl_croak                          SNMP.o
> Perl_markstack_grow                 SNMP.o
> add_mibdir                          SNMP.o
> snmp_fix_pdu                        SNMP.o
> init_mib                            SNMP.o
> PL_markstack_ptr                    SNMP.o
> Perl_sv_catpv                       SNMP.o
> Perl_form                           SNMP.o
> PL_sv_yes                           SNMP.o
> get_myaddr                          SNMP.o
> generate_Ku                         SNMP.o
> ld: fatal: Symbol referencing errors. No output written to SNMP
> collect2: ld returned 1 exit status
> gcc: file path prefix `/usr/ccs/bin/' never used
> make: *** [SNMP] Error 1
> root@loki:/tmp/.cpan/build/SNMP-4.2.0#
> 
> 
> Don't know if that will help at all.. but maybe it might??
> 
> -Chris
> 
> On Thu, 2002-08-15 at 01:28, Pamela Schmidt wrote:
> > Daniel - The ucd-snmp tarball has been installed on the server but, thanks
> > for the input.
> > Jon - I am using the perl5.8 inplace of perl5.6.  Perl5.6 was giving me
> the
> > SNMP.so file error.  The solution was to upgrade to Perl5.8.
> > 
> > List Members -
> > Ok, here's an update.  After hours of banging my head against the
> > monitor!!!!  The solution for the "WARNING: MAN3PODS takes a hash
> reference
> > not a string/number. Please inform the author...." error message is a code
> > change within the SNMP-4.2.0 "Makefile.PL" file.
> > The code used for the MAN3PODS is outdated and does not function with the
> > latest and greatest.  To correct for this error make the following change
> to
> > the following line with the perl SNMP-4.2.0 Makefile.PL:
> > 
> > OLD CODE = MAN3PODS => 'SNMP', # Pods will be built by installman.
> > NEW CODE = MAN3PODS => {SNMP}, # Pods will be built by installman.
> > 
> > Now when the "perl Makefile.PL" command is run for SNMP-4.2.0 the
> following
> > is displayed and a Makefile is generated.
> >     WARNING: LDFLAGS is not a known parameter.
> >     Writing Makefile for SNMP.
> >     Unable to locate the MIBS, Please enter the path: [/usr/local/sbin]
> > /usr/share/snmp/mibs
> > 
> > Now when the "make command is run for SNMP-4.0.2 the following is
> displayed
> > and errors out.
> >     SNMP.o: InFunction 'boot_SNMP':
> >     SNMP.o(.text+0xcd54): undefined reference to 'Mib'
> >     " " 'snmp_set_do_debugging'
> >     .
> >     .
> >     .
> >     SNMP.o(.text+0xxxxx): undefined reference to 'PL_stack_sp'
> >     Collect 2: ld returned 1 exit status
> >     make: ***[SNMP] Error 1
> > 
> > Can anyone assist with the next error message?  I will continue to
> > troubleshoot and will keep the mailing list informed if any solutions are
> > found.
> > 
> > Thanks again for all the assistance,
> > Pam Schmidt
> > 
> > ----- Original Message -----
> > From: "Daniel O Cummings" <[EMAIL PROTECTED]>
> > To: "Schmidt-1, Pamela" <[EMAIL PROTECTED]>
> > Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 14, 2002 11:59 AM
> > Subject: Re: FW: Newbie Question - Receiving an undefined error when
> trying
> > to startmon
> > 
> > 
> > >
> > > You need to have SNMP on your system.  You may have it in a non-standard
> > > location or it may not be installed.   The easiest fix is probably to
> just
> > > download the ucd-snmp tarball,  build it and install it on your system.
> > > It is available from several places.   As I recall,  I downloaded it
> from
> > > http://sourceforge.net/projects/net-snmp.
> > >
> > > Good luck!
> > >
> > >
> > > Daniel O Cummings
> > > ATS Americas Team
> > > Linux Cluster Group
> > > (206)587-4547 Phone, Voicemail, Fax
> > > 277-4547 Tie Line
> > >
> > >
> > >
> > >                       "Schmidt-1, Pamela"
> > >                       <Pamela.Schmidt-1@ks        To:
> > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > >                       c.nasa.gov>                 cc:
> > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> > >                       Sent by:                    Subject:  FW: Newbie
> > Question - Receiving an undefined error when trying to start
> > >                       [EMAIL PROTECTED]         mon
> > >                       el.org
> > >
> > >
> > >                       08/14/2002 05:43 AM
> > >
> > 
> > >
> > >
> > >
> > >
> > > Here are the updates from this message.  Sorry that the mailing list was
> > > not
> > > included.
> > >
> > > This is still not resolved and when attempting to run ./mon the
> following
> > > error message is returned:
> > >
> > > [mon-0.99.2]# ./mon
> > > Can't locate loadable object for module SNMP in @INC (@INC contains:
> > > /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0
> > > /usr/local/lib/perl5/site_perl/5.8.0/i686-linux
> > > /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .)
> at
> > > ./mon line 51
> > > Compilation failed in require at ./mon line 51.
> > > BEGIN failed--compilation aborted at ./mon line 51.
> > >
> > > When attempting to perform a "perl Makefile.PL" the following error is
> > > displayed.
> > > #perl Makefile.PL
> > > > Where is the ucd-snmp library installed? [/usr/lib
> > > > WARNING: MAN3PODS takes a hash reference not a string/number.
> > > >                     Please inform the author.
> > > > WARNING: LDFLAGS is not a known parameter.
> > > > Checking if your kit is complete...
> > > > Looks good
> > > > Can't use string ("SNMP") as a HASH ref while "strict refs" in  use at
> > > > /usr/local/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 541.
> > >
> > > Thanks go out to Peter Holzleitner and Guillaume Courtois for their
> > > assistance in the matter so far.
> > >
> > > Any and all assistance is greatly appreciated...
> > > Pam Schmidt
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > Sent:  Wednesday, August 14, 2002 8:00AM
> > > To: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Subject: Re: Re: Newbie Question  - Receiving an undefined error when
> > > trying
> > > to start mon
> > >
> > > I have tried two different versions and both display the same error
> > > message.
> > > I didn't have to override the library location, in the example I was
> > trying
> > > to see if another location would still give the same error message - it
> > > did.
> > > Yes, the ucd-snmp-devel package is installed along with the
> ucd-snmp-utils
> > > package.
> > >
> > > I stumped....
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, August 14, 2002 3:07 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Newbie Question - Receiving an undefined error when trying
> > > to start mon
> > >
> > >
> > > What is the version of the perl snmp package you're trying to install,
> and
> > > why
> > > did you have to override the library location?
> > > Is the RedHat ucd-snmp-devel package installed?
> > >
> > > > Peter -
> > > >
> > > > Thanks for the information.  The SNMP perl module is the one that will
> > > not
> > > > install.  When trying to perform a "perl Makefile.PL"  the following
> > > error
> > > > message is displayed.
> > > >
> > > > #perl Makefile.PL
> > > > Where is the ucd-snmp library installed? [/usr/lib] /usr/include
> > > > WARNING: MAN3PODS takes a hash reference not a string/number.
> > > >                     Please inform the author.
> > > > WARNING: LDFLAGS is not a known parameter.
> > > > Checking if your kit is complete...
> > > > Looks good
> > > > Can't use string ("SNMP") as a HASH ref while "strict refs" in  use at
> > > > /usr/local/lib/perl5/5.8.0/ExtUtils/MM_Unix.pm line 541.
> > > >
> > > > Any assistance is greatly appreciated,
> > > > Pam Schmidt
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Peter HOLZLEITNER" <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Tuesday, August 13, 2002 8:58 AM
> > > > Subject: RE: Newbie Question - Receiving an undefined error when
> trying
> > > to
> > > > start mon
> > > >
> > > >
> > > > > >You must install the SNMP perl module. You should find it at
> > > > > www.cpan.org
> > > > >
> > > > > In particular ...
> > > > >
> > > > > Make sure package ucd-snmp-devel-[version] is installed.
> > > > > You will also need openssl-devel-[version].
> > > > >
> > > > > Get http://www.cpan.org/modules/by-module/SNMP/SNMP-4.2.0.tar.gz
> > > > > Unpack this, then run
> > > > > perl Makefile.PL
> > > > > make
> > > > > make test
> > > > > make install
> > > > > (or use the CPAN shell instead of the above steps if you prefer).
> > > > >
> > > > > --Peter
> > > > >
> > > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Tuesday, August 13, 2002 9:42 AM
> > > > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> > > [EMAIL PROTECTED]
> > > > > Subject: RE: Newbie Question - Receiving an undefined error when
> > trying
> > > > > to start mon
> > > > >
> > > > >
> > > > >
> > > > > > > I am currently running Redhat 7.2 with heartbeat, opennms and
> > > trying
> > > > > to
> > > > > > run mon.  I have mon installed with a minimal configuration and
> the
> > > > > following
> > > > > > > error message is received when attempting to start mon.  Has
> > anyone
> > > > > else
> > > > > > > experienced a problem completing the make for SNMP?  It appears
> > > that
> > > > > all
> > > > > > of the new downloads I have acquired give the following error
> > > message.
> > > > > >____________________________________________________________
> > > > > > > Can't load
> > > > > '/usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/SNMP/SNMP.so'
> > > > > > for module SNMP:
> > > > > /usr/lib/perl5/site_perl/5.6.0/i386-linux/auto/SNMP/SNMP.so:
> > > > > > > undefined symbol: tree_head at
> > > > > /usr/lib/perl5/5.6.0/i386-linux/DynaLoader.pm
> > > > > > > line 200.  at ./mon line 51 Compilation failed in require at
> ./mon
> > > > > line
> > > > > 51.
> > > > > > > BEGIN failed--compilation aborted at ./mon line 51.
> > > > >
> > > >
> > >
> > >
> > >
> > >
> 
> -- 
> Chris Denneen
> Unix/Linux Administrator
> chris-mon (@) ghostspace.com
> 
> perl -e 'print
> $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
> 
> ;'
-- 
Chris Denneen
Unix/Linux Administrator
chris-mon (@) ghostspace.com

perl -e 'print
$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

;'

Reply via email to