Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 May 2005 09:43:34 +0930
From:      Ian Moore <no-spam@swiftdsl.com.au>
To:        freebsd-questions@freebsd.org
Cc:        gustaaf wijnands <gwg.wijnands.freebsd@xs4all.nl>
Subject:   Re: upgrading net-snmp-5.2.1 gives error
Message-ID:  <200505010943.43760.no-spam@swiftdsl.com.au>
In-Reply-To: <4247344F.9090606@xs4all.nl>
References:  <4247271E.60108@xs4all.nl> <008401c53317$0caaed40$4300a8c0@home.lan> <4247344F.9090606@xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart2309176.CBQDKcufj1
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Monday 28 March 2005 08:01, gustaaf wijnands wrote:
> Thomas Foster wrote:
> > Does it compile WITH_PERL=3D"NO" ?
>
> It doesn't compile WITHOUT_PERL=3Dyes
>
> > what version of autoconf and libtool are you using?
>
> pkg_info |grep autoconf
> autoconf-2.13.000227_5 Automatically configure source code on many Un*x
> platforms
> autoconf-2.59_2     Automatically configure source code on many Un*x
> platforms
>
> pkg_info |grep libtool
> libtool-1.3.5_2     Generic shared library support script (version 1.3)
> libtool-1.5.10_1    Generic shared library support script (version 1.5)
>
> > and perl -v returns what version?
>
> perl -v
>
> This is perl, v5.8.6 built for i386-freebsd-64int
>
> perl -V
> Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
>    Platform:
>      osname=3Dfreebsd, osvers=3D5.3-release-p5, archname=3Di386-freebsd-6=
4int
>      uname=3D'freebsd laptop.intern 5.3-release-p5 freebsd 5.3-release-p5
> #7: wed ja
>                         n 26 21:10:23 cet 2005
> a@laptop.intern:usrobjusrsrcsysmykernel i386 '
>      config_args=3D'-sde -Dprefix=3D/usr/local
> -Darchlib=3D/usr/local/lib/perl5/5.8.6/mach
> -Dprivlib=3D/usr/local/lib/perl5/5.8.6
> -Dman3dir=3D/usr/local/lib/perl5/5.8.6/perl
>                                                        /man/man3
> -Dman1dir=3D/usr/local/man/man1 -Dsitearch=3D/usr/local/lib/perl5/site_pe=
rl
>
>               /5.8.6/mach -Dsitelib=3D/usr/local/lib/perl5/site_perl/5.8.6
> -Dscriptdir=3D/usr/local
>                                     /bin
> -Dsiteman3dir=3D/usr/local/lib/perl5/5.8.6/man/man3
> -Dsiteman1dir=3D/usr/local/m
>                                         an/man1 -Ui_malloc -Ui_iconv
> -Uinstallusrbinperl -Dcc=3Dcc -Doptimize=3D-O -pipe  -Du
>
> seshrplib -Dccflags=3D-DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.8.6/BSDPAN"
> -Ud_dosuid
>                          -Ui_gdbm -Dusethreads=3Dn -Dusemymalloc=3Dy
> -Duse64bitint'
>      hint=3Drecommended, useposix=3Dtrue, d_sigaction=3Ddefine
>      usethreads=3Dundef use5005threads=3Dundef useithreads=3Dundef
> usemultiplicity=3Dundef
>      useperlio=3Ddefine d_sfio=3Dundef uselargefiles=3Ddefine usesocks=3D=
undef
>      use64bitint=3Ddefine use64bitall=3Dundef uselongdouble=3Dundef
>      usemymalloc=3Dy, bincompat5005=3Dundef
>    Compiler:
>      cc=3D'cc', ccflags
> =3D'-DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.8.6/BSDPAN" -DHAS_FP
>
>    SETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe
> -I/usr/local/include',
>      optimize=3D'-O -pipe ',
>      cppflags=3D'-DAPPLLIB_EXP=3D"/usr/local/lib/perl5/5.8.6/BSDPAN"
> -DHAS_FPSETMASK -
>                                DHAS_FLOATINGPOINT_H -fno-strict-aliasing
> -pipe -I/usr/local/include'
>      ccversion=3D'', gccversion=3D'3.4.2 [FreeBSD] 20040728', gccosandver=
s=3D''
>      intsize=3D4, longsize=3D4, ptrsize=3D4, doublesize=3D8, byteorder=3D=
12345678
>      d_longlong=3Ddefine, longlongsize=3D8, d_longdbl=3Ddefine, longdblsi=
ze=3D12
>      ivtype=3D'long long', ivsize=3D8, nvtype=3D'double', nvsize=3D8,
> Off_t=3D'off_t', lseek
>                                   size=3D8
>      alignbytes=3D4, prototype=3Ddefine
>    Linker and Libraries:
>      ld=3D'cc', ldflags =3D' -Wl,-E -L/usr/local/lib'
>      libpth=3D/usr/lib /usr/local/lib
>      libs=3D-lm -lcrypt -lutil
>      perllibs=3D-lm -lcrypt -lutil
>      libc=3D, so=3Dso, useshrplib=3Dtrue, libperl=3Dlibperl.so
>      gnulibc_version=3D''
>    Dynamic Linking:
>      dlsrc=3Ddl_dlopen.xs, dlext=3Dso, d_dlsymun=3Dundef, ccdlflags=3D'
> -Wl,-R/usr/local/
>                                lib/perl5/5.8.6/mach/CORE'
>      cccdlflags=3D'-DPIC -fPIC', lddlflags=3D'-shared  -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
>    Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
>    Locally applied patches:
>          SUIDPERLIO0 - fix PERLIO_DEBUG local root exploit (CAN-2005-0155)
>          SUIDPERLIO1 - fix PERLIO_DEBUG buffer overflow (CAN-2005-0156)
>    Built under freebsd
>    Compiled at Feb  6 2005 20:47:58
>    @INC:
>      /usr/local/lib/perl5/site_perl/5.8.6/mach
>      /usr/local/lib/perl5/site_perl/5.8.6
>      /usr/local/lib/perl5/site_perl/5.8.5
>      /usr/local/lib/perl5/site_perl/5.6.1
>      /usr/local/lib/perl5/site_perl
>      /usr/local/lib/perl5/5.8.6/BSDPAN
>      /usr/local/lib/perl5/5.8.6/mach
>      /usr/local/lib/perl5/5.8.6
>      .
>
> > what happens after running ldconfig -R
>
> still the same error. Any idea? Thank for helping me

Hi Gustaaf,
I'm having exactly the same problem upgrading net-snmp as you. Have you=20
managed to fix the problem yet?
My system is pretty much identical to your's, except for autoconf:

%pkg_info | grep autoconf
autoconf-2.13.000227_5 Automatically configure source code on many Un*x=20
platforms
autoconf-2.53_3     Automatically configure source code on many Un*x platfo=
rms
autoconf-2.59_2     Automatically configure source code on many Un*x platfo=
rms

Here's the output when I try to build it without perl:
daemon:/usr/ports/net-mgmt/net-snmp % sudo make -DWITHOUT_PERL=3D"YES"
=3D=3D=3D>  Building for net-snmp-5.2.1_2
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/snmplib
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent/helpers
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent/mibgro=
up
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/apps
making all=20
in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/apps/snmpnetstat
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/man
test -d ./CVS && perl ./mib2c.extract.pl ../local/mib2c ./mib2c.conf.5.in >=
=20
mib2c.conf.5
*** Error code 1 (ignored)
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/local
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/mibs
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/default_store/../=
=2E./snmplib/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/default_store/../=
=2E./snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::default_store
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/ASN/../../snmplib=
/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/ASN/../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::ASN
Warning: -L../../snmplib/.libs changed todaemon:/usr/ports/net-mgmt/net-snm=
p %=20
sudo make -DWITHOUT_PERL=3D"YES"
=3D=3D=3D>  Building for net-snmp-5.2.1_2
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/snmplib
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent/helpers
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/agent/mibgro=
up
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/apps
making all=20
in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/apps/snmpnetstat
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/man
test -d ./CVS && perl ./mib2c.extract.pl ../local/mib2c ./mib2c.conf.5.in >=
=20
mib2c.conf.5
*** Error code 1 (ignored)
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/local
making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/mibs
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/default_store/../=
=2E./snmplib/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/default_store/../=
=2E./snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::default_store
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/ASN/../../snmplib=
/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/ASN/../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::ASN
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/OID/../../snmplib=
/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/OID/../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::OID
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../snmpl=
ib/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../snmpl=
ib/
Warning: -L../../agent/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent=
/.libs
Warning: -L../../agent/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent/
Warning: -L../../agent/helpers/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent=
/helpers/.libs
Warning: -L../../agent/helpers/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent=
/helpers/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Unrecognized argument in LIBS ignored: '-Wl,-E'
Unrecognized argument in LIBS ignored:=20
'/usr/local/lib/perl5/5.8.6/mach/auto/DynaLoader/DynaLoader.a'
Warning: -L../../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/default_sto=
re/../../../snmplib/.libs
Warning: -L../../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/default_sto=
re/../../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::agent::default_store
Writing Makefile for NetSNMP::agent
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/SNMP/../../snmpli=
b/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/SNMP/../../snmpli=
b/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for SNMP
Checking if your kit is complete...
Looks good
/libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.6/mach/auto/SNMP/S=
NMP.so:=20
Undefined symbol "perl_get_sv"
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.
=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/OID/../../snmplib=
/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/OID/../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::OID
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../snmpl=
ib/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../snmpl=
ib/
Warning: -L../../agent/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent=
/.libs
Warning: -L../../agent/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent/
Warning: -L../../agent/helpers/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent=
/helpers/.libs
Warning: -L../../agent/helpers/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/../../agent=
/helpers/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Unrecognized argument in LIBS ignored: '-Wl,-E'
Unrecognized argument in LIBS ignored:=20
'/usr/local/lib/perl5/5.8.6/mach/auto/DynaLoader/DynaLoader.a'
Warning: -L../../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/default_sto=
re/../../../snmplib/.libs
Warning: -L../../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/agent/default_sto=
re/../../../snmplib/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for NetSNMP::agent::default_store
Writing Makefile for NetSNMP::agent
Warning: -L../../snmplib/.libs changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/SNMP/../../snmpli=
b/.libs
Warning: -L../../snmplib/ changed to=20
=2DL/usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1/perl/SNMP/../../snmpli=
b/
Unrecognized argument in LIBS ignored: '-rpath=3D/usr/local/lib'
Writing Makefile for SNMP
Checking if your kit is complete...
Looks good
/libexec/ld-elf.so.1: /usr/local/lib/perl5/site_perl/5.8.6/mach/auto/SNMP/S=
NMP.so:=20
Undefined symbol "perl_get_sv"
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.2.1.
*** Error code 1

Stop in /usr/ports/net-mgmt/net-snmp.

Cheers,
=2D-=20
Ian
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc

--nextPart2309176.CBQDKcufj1
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQBCdB83PUlnmbKkJ6ARAqAdAJ4wTf0wTyxDJaVnkcGwFh+KaNO4pQCfcxBp
fSk4RRRHAqLe2Ffvw5v7TKA=
=LaUz
-----END PGP SIGNATURE-----

--nextPart2309176.CBQDKcufj1--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505010943.43760.no-spam>