[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-1760634 ] 5.4.x SVN build fails unless distro files
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2007-08-15 1:23:07
Message-ID: E1IL7bH-0003V7-4v () sc8-sf-web22 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1760634, was opened at 2007-07-25 22:31
Message generated for change (Settings changed) made by rb_bugs
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1760634&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: build/test
Group: None
> Status: Deleted
Resolution: None
Priority: 4
Private: No
Submitted By: rb_bugs (rb_bugs)
Assigned to: Nobody/Anonymous (nobody)
Summary: 5.4.x SVN build fails unless distro files rm'd 1st

Initial Comment:
Building,

	branches/V5-4-patches/net-snmp, svn r16632

make fails @:

...
chmod 644 TrapReceiver.bs
rm -f ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle
LD_RUN_PATH="/usr/local/netsnmp-54-patches-svn/lib:/usr/local/lib/perl/privlib/darwin-thread-multi-2level/CORE" \
env MACOSX_DEPLOYMENT_TARGET=10.4 cc  -L/usr/local/bdb/lib -L/usr/local/lib \
-L/usr/lib -bundle -undefined dynamic_lookup -L/usr/local/ssl/lib -bind_at_load \
-flat_namespace -lcrypto -L/usr/local/bdb/lib -ldb -framework IOKit TrapReceiver.o  \
                -o ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle        \
                \
   -L/build/net-snmp-54-svn/perl/TrapReceiver/../../apps/.libs \
-L/build/net-snmp-54-svn/perl/TrapReceiver/../../apps \
-L/build/net-snmp-54-svn/perl/TrapReceiver/../../agent/.libs \
-L/build/net-snmp-54-svn/perl/TrapReceiver/../../agent \
-L/build/net-snmp-54-svn/perl/TrapReceiver/../../agent/helpers/.libs \
-L/build/net-snmp-54-svn/perl/TrapReceiver/../../agent/helpers \
-L/build/net-snmp-54-svn/perl/TrapReceiver/../../snmplib/.libs \
-L/build/net-snmp-54-svn/perl/TrapReceiver/../../snmplib -lnetsnmptrapd \
-lnetsnmpagent -lnetsnmp      \  
/usr/bin/ld: warning can't open dynamic library: \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmpmibs.15.dylib referenced from: \
/build/net-snmp-54-svn/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib \
(checking for undefined symbols may be affected) (No such file or directory, errno = \
                2)
/usr/bin/ld: warning can't open dynamic library: \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmphelpers.15.dylib referenced from: \
/build/net-snmp-54-svn/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib \
(checking for undefined symbols may be affected) (No such file or directory, errno = \
                2)
/usr/bin/ld: warning can't open dynamic library: \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmpagent.15.dylib referenced from: \
/build/net-snmp-54-svn/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib \
(checking for undefined symbols may be affected) (No such file or directory, errno = \
                2)
/usr/bin/ld: warning can't open dynamic library: \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib referenced from: \
/build/net-snmp-54-svn/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib \
(checking for undefined symbols may be affected) (No such file or directory, errno = \
                2)
/usr/bin/ld: warning multiple definitions of symbol _allow_severity
/usr/lib/libnetsnmpagent.dylib(libnetsnmpagent.5.2.1.dylib-master.o) definition of \
                _allow_severity
/usr/lib/libwrap.7.dylib(tcpd.o) definition of _allow_severity
/usr/bin/ld: warning multiple definitions of symbol _deny_severity
/usr/lib/libnetsnmpagent.dylib(libnetsnmpagent.5.2.1.dylib-master.o) definition of \
                _deny_severity
/usr/lib/libwrap.7.dylib(tcpd.o) definition of _deny_severity
/usr/bin/ld: Undefined symbols:
_config_perror referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _convert_v1pdu_to_v2 \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmpagent.15.dylib _copy_nword referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _debugmsg referenced from \
libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _debugmsg_oid referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _debugmsgtoken referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _fprint_variable referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _memdup referenced from \
libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _read_objid referenced from \
libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _register_config_handler \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _run_shell_command \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmpagent.15.dylib _send_v2trap \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmpagent.15.dylib _snmp_clone_pdu \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_close referenced from \
libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_free_pdu referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_get_do_debugging \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_get_quick_print \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_log referenced from \
libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_log_perror referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_oid_compare \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_oidsubtree_compare \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_open referenced from \
libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_send referenced from \
libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_sess_init referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_sess_perror \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_set_quick_print \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _init_vacm_config_tokens \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmpagent.15.dylib \
_netsnmp_ds_get_boolean referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _netsnmp_ds_register_config \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _netsnmp_oid_equals \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _se_find_label_in_slist \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _vacm_check_view referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmpagent.15.dylib _vacm_is_configured \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _netsnmpUDPDomain \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _netsnmp_snmpTCPDomain \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_realloc referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _snmp_strcat referenced \
from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _sprint_realloc_objid \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _sprint_realloc_variable \
referenced from libnetsnmptrapd.15 expected to be defined in \
/usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib _uptime_string referenced \
from libnetsnmptrapd.15 expected to be defined in \
                /usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib
collect2: ld returned 1 exit status
make[2]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle] Error 1
make[1]: *** [subdirs] Error 2
make: *** [perlmodules] Error 1


If I repeat the process, but first, move the OS X distribution's default (v5.2.1) \
installed net-snmp libraries out of the way,

mkdir -p /usr/lib/netsnmpTEMP
mv /usr/lib/lib*snmp* /usr/lib/netsnmpTEMP/
make

then, make succeeds without error.



----------------------------------------------------------------------

Comment By: rb_bugs (rb_bugs)
Date: 2007-08-07 15:41

Message:
Logged In: YES 
user_id=1853554
Originator: YES

This problem also occurs with the 5.4.1 release.

----------------------------------------------------------------------

Comment By: rb_bugs (rb_bugs)
Date: 2007-07-26 14:36

Message:
Logged In: YES 
user_id=1853554
Originator: YES

Verifying that

 ls /usr/lib/libnetsnmp*

(all there)

And again,

 OS distro files IN PLACE
 unsetenv PERLPROG 
 --without-perl-modules

Now, make IS 'ok'.

> make
 ...
 chmod a+x net-snmp-config
 touch net-snmp-config-x
 running build
 running build_py
 running build_ext
> 

----------------------------------------------------------------------

Comment By: rb_bugs (rb_bugs)
Date: 2007-07-26 14:02

Message:
Logged In: YES 
user_id=1853554
Originator: YES

Woops. Last attempt was with OS DISTRO files moved out of the way.

Trying again ...

----------------------------------------------------------------------

Comment By: rb_bugs (rb_bugs)
Date: 2007-07-26 13:55

Message:
Logged In: YES 
user_id=1853554
Originator: YES

Building with

 OS distro files IN PLACE
 unsetenv PERLPROG 
 --without-perl-modules

make is OK:

> make 
 ...
 making all in /build/net-snmp-54-svn/mibs
 chmod a+x net-snmp-config
 touch net-snmp-config-x
 running build
 running build_py
 running build_ext
> 

----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-07-26 09:12

Message:
Logged In: YES 
user_id=848638
Originator: NO

What happens if you configure --without-perl-modules?

----------------------------------------------------------------------

Comment By: rb_bugs (rb_bugs)
Date: 2007-07-26 01:28

Message:
Logged In: YES 
user_id=1853554
Originator: YES

Moving the distro files BACK into place,

	mv /usr/lib/netsnmpTEMP/lib*snmp* /usr/lib/ 

I would've thought that since on my OS/install, both,

ls -al /usr/bin/perl
	lrwxr-xr-x 1 root wheel 36 2007-03-10 14:37 /usr/bin/perl ->
/usr/local/perl5/bin/perl

and,

grep perl ~/.login 
	set path = (/usr/local/perl5/bin $path)

and,

echo $PATH
	...:/usr/local/perl5/bin:...

that any app using it would derive the necessary path into, and that I am
already "using my own".

In fact, in the make output, WITHOUT setting $PERLPROG, I see

...
 making all in /build/net-snmp-54-svn/local
 /usr/local/bin/sed -f ../sedscript ./snmpcheck.def > snmpcheck
 if test "x/usr/local/perl5/bin/perl" != "x" ; then \
   /usr/local/perl5/bin/perl -p -e
's%^#!.*/perl.*%#!/usr/local/perl5/bin/perl%' snmpcheck > snmpcheck.made ;
\
 else \
 ...


Anyway, setting,

	setenv PERLPROG /usr/local/perl5/bin/perl

Checking to be sure,

echo $PERLPROG
	/usr/local/perl5/bin/perl

And, configuring with,

	--with-perl-modules --disable-embedded-perl

"make" still fails as reported earlier @

...
_uptime_string referenced from libnetsnmptrapd.15 expected to be defined
in /usr/local/netsnmp-54-patches-svn/lib/libnetsnmp.15.dylib
collect2: ld returned 1 exit status
make[2]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle]
Error 1
make[1]: *** [subdirs] Error 2
make: *** [perlmodules] Error 1

So far, the only way to build without error is to mv those OS/default libs
out of the way.

----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-07-25 23:49

Message:
Logged In: YES 
user_id=848638
Originator: NO

There already sort of is. Just set the PERLPROG environment variable to
the Perl binary you want. In addition, --disable-embedded-perl and
--without-perl-modules are there to let you turn off Perl altogether.

If you turn off Perl (or use your own), does the build succeed?

----------------------------------------------------------------------

Comment By: rb_bugs (rb_bugs)
Date: 2007-07-25 23:38

Message:
Logged In: YES 
user_id=1853554
Originator: YES

On my system, I've a standalone perl.

e.g.,

Perl bin is installed into

 /usr/local/perl5/bin/perl

and per lib is in


/usr/local/lib/perl/privlib/darwin-thread-multi-2level/CORE/libperl.dylib

If perl is the only reason "-L/usr/lib" is used/presumed in the first
place, perhasp a --with-perl configure option?



----------------------------------------------------------------------

Comment By: Thomas Anders (tanders)
Date: 2007-07-25 22:37

Message:
Logged In: YES 
user_id=848638
Originator: NO

I'm not sure there's a clean fix for this without potentially affecting
other build environments. FWIW, "-L/usr/lib" comes from the OS X Perl
package and we need Perl's flags in general.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1760634&group_id=12694

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic