Eric Jankowski wrote:
> 
> Hello!
> I'm having trouble installing php5 with fink.  Here are the last few  
> lines returned after the installation fails:
> 
> make[2]: *** [../blib/arch/auto/NetSNMP/TrapReceiver/ 
> TrapReceiver.bundle] Error 1
> make[1]: *** [subdirs] Error 2
> make: *** [perlmodules] Error 1
> ### execution of /var/tmp/tmp.1.WOFmXg failed, exit code 2
> Removing runtime build-lock...
> Removing build-lock package...
> /sw/bin/dpkg-lockwait -r fink-buildlock-net-snmp-unified-5.4.1-1
> (Reading database ... 17066 files and directories currently installed.)
> Removing fink-buildlock-net-snmp-unified-5.4.1-1 ...
> Failed: phase compiling: net-snmp-unified-5.4.1-1 failed
> 
> 

Hi,
I encounter this problem while installing net-snmp-unified15-shlibs-5.4.1-1
more particuly in :

/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver

where a make gives me :


[EMAIL PROTECTED]
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver
# make
rm -f ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle
LD_RUN_PATH="/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs:/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/.libs:/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib/.libs"
env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined dynamic_lookup
-L/usr/local/lib -L/sw/lib/system-openssl/lib -L/sw/lib/system-openssl/lib
-L/sw/lib TrapReceiver.o  -o
../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle  
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../apps
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib
-lnetsnmptrapd -lnetsnmpagent -lnetsnmp
/usr/bin/ld: warning can't open dynamic library:
/sw/lib/libnetsnmpmibs.15.dylib referenced from:
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/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:
/sw/lib/libnetsnmphelpers.15.dylib referenced from:
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/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:
/sw/lib/libnetsnmpagent.15.dylib referenced from:
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/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: /sw/lib/libnetsnmp.15.dylib
referenced from:
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs/libnetsnmptrapd.dylib
(checking for undefined symbols may be affected) (No such file or directory,
errno = 2)
/usr/bin/ld: Undefined symbols:
_config_perror referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_convert_v1pdu_to_v2 referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmpagent.15.dylib
_copy_nword referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_debugmsg referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_debugmsg_oid referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_debugmsgtoken referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_fprint_variable referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmp.15.dylib
_log_notification referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmpmibs.15.dylib
_memdup referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_read_objid referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_register_config_handler referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_run_shell_command referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmpagent.15.dylib
_send_v2trap referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmpagent.15.dylib
_snmp_clone_pdu referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_close referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_free_pdu referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_get_do_debugging referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_snmp_get_quick_print referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_snmp_log referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_log_perror referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmp.15.dylib
_snmp_oid_compare referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmp.15.dylib
_snmp_oidsubtree_compare referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_snmp_open referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_send referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_sess_init referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_sess_perror referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmp.15.dylib
_snmp_set_quick_print referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_init_vacm_config_tokens referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmpagent.15.dylib
_netsnmp_ds_get_boolean referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_netsnmp_ds_register_config referenced from libnetsnmptrapd.15 expected to
be defined in /sw/lib/libnetsnmp.15.dylib
_netsnmp_oid_equals referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_se_find_label_in_slist referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_vacm_check_view referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmpagent.15.dylib
_vacm_is_configured referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_netsnmpUDPDomain referenced from libnetsnmptrapd.15 expected to be defined
in /sw/lib/libnetsnmp.15.dylib
_netsnmp_snmpTCPDomain referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_snmp_realloc referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_snmp_strcat referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
_sprint_realloc_objid referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_sprint_realloc_variable referenced from libnetsnmptrapd.15 expected to be
defined in /sw/lib/libnetsnmp.15.dylib
_uptime_string referenced from libnetsnmptrapd.15 expected to be defined in
/sw/lib/libnetsnmp.15.dylib
collect2: ld returned 1 exit status
make: *** [../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle] Error
1


but the command :


[EMAIL PROTECTED]
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver
#
LD_RUN_PATH="/sw/lib:/System/Library/Perl/5.8.6/darwin-thread-multi-2level/CORE"
env MACOSX_DEPLOYMENT_TARGET=10.3 cc  -bundle -undefined dynamic_lookup
-L/usr/local/lib -L/sw/lib/system-openssl/lib -L/sw/lib/system-openssl/lib
-L/sw/lib TrapReceiver.o  -o
../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bundle  
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../apps/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../apps
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../agent/helpers
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib/.libs
-L/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver/../../snmplib


without linkage to these librairies -lnetsnmptrapd -lnetsnmpagent -lnetsnm
make linkage to work and the make to finish :


[EMAIL PROTECTED]
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver
# make
cp TrapReceiver.bs ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
chmod 644 ../blib/arch/auto/NetSNMP/TrapReceiver/TrapReceiver.bs
Manifying ../blib/man3/NetSNMP::TrapReceiver.3pm
[EMAIL PROTECTED]
/sw/src/fink.build/net-snmp-unified-5.4.1-1/net-snmp-5.4.1/perl/TrapReceiver
#


So i changed Makefile.PL in perl/TrapReceiver :
111c111,112
<       $Params{'LIBS'} = '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp';
---
>       $Params{'LIBS'} = ' ';
>       #       '-lnetsnmptrapd -lnetsnmpagent -lnetsnmp';

and comment the libs.

So the whole install fink process works. I did that because i needed that
lib as a dependency of php5. So, I do not pretend to have solve any problem,
I just bypassed it.
Sorry for my poor english.

H

--
Package manager version: 0.27.9
Distribution version: 0.8.1.rsync i386
Mac OS X version: 10.4.11
Xcode version: 2.4
gcc version: 4.0.1 (Apple Computer, Inc. build 5363)
make version: 3.80
Feedback Courtesy of FinkCommander

-- 
View this message in context: 
http://www.nabble.com/php5-installation-trouble-tp14028442p14282348.html
Sent from the fink-beginners mailing list archive at Nabble.com.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fink-beginners mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.beginners

Reply via email to