Using Fink Commander
<snip>...
patch -p1 </sw/fink/dists/unstable/crypto/finkinfo/net-snmp-ssl.patch
patching file Makefile.in
patching file agent/mibgroup/mibII/tcp.c
patching file configure
patching file ltmain.sh
perl -pi -e 's,#define DES_key_sched des_key_sched,#define DES_key_sched _ossl_old_des_key_sched,g' snmplib/scapi.c
perl -pi -e 's,#define DES_ncbc_encrypt des_ncbc_encrypt,#define DES_ncbc_encrypt _ossl_old_des_ncbc_encrypt,g' snmplib/scapi.c
perl -pi -e 's,#define DES_cbc_encrypt des_cbc_encrypt,#define DES_cbc_encrypt _ossl_old_des_cbc_encrypt,g' snmplib/scapi.c
./configure --prefix=/sw --mandir='${prefix}/share/man' --with-logfile=/sw/var/log/snmpd.log --with-persistent-directory=/sw/var/net-snmp-ssl --with-default-snmp-version="3" --enable-shared --with-perl-modules --with-sys-location="Fink Build" --with-sys-contact="[EMAIL PROTECTED]"
creating cache ./config.cache
using default enterprise.net-snmp
using default enterprise sysOID NET-SNMP-MIB::netSnmpAgentOIDs...
using default notifications NET-SNMP-MIB::netSnmpNotifications
checking if I need to feed myself to ksh... no
checking for gcc... gcc
<snip>...
checking for net-snmp version number... 5.0.7
checking for developer gcc flags...
checking host system type... powerpc-apple-darwin6.8
checking target system type... powerpc-apple-darwin6.8
checking build system type... powerpc-apple-darwin6.8
checking for system include file... net-snmp/system/darwin.h
checking for machine-type include file... net-snmp/machine/generic.h
checking for gcc... /usr/bin/gcc
checking for additional cpp flags... -x c
checking whether we have to build PIC code... no
checking for and configuring transport modules to use... Callback Unix TCP UDP.
checking for security modules to use... usm
checking for and configuring mib modules to use... mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs utilities.
checking for and configuring mib modules pieces to use... mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs utilities mibII/system_mib mibII/sysORTable mibII/at mibII/interfaces mibII/snmp_mib mibII/tcp mibII/icmp mibII/ip mibII/udp mibII/vacm_vars mibII/setSerialNo ucd-snmp/proc ucd-snmp/versioninfo ucd-snmp/pass ucd-snmp/pass_persist ucd-snmp/disk ucd-snmp/loadave ucd-snmp/extensible ucd-snmp/errormib ucd-snmp/file ucd-snmp/dlmod ucd-snmp/proxy snmpv3/snmpEngine snmpv3/snmpMPDStats snmpv3/usmStats snmpv3/usmUser notification/snmpNotifyTable notification/snmpNotifyFilterTable notification/snmpNotifyFilterProfileTable target/snmpTargetAddrEntry target/snmpTargetParamsEntry target/target target/target_counters agent/nsTransactionTable agent/nsModuleTable agentx/master agentx/subagent utilities/override util_funcs mibII/tcpTable mibII/ipAddr mibII/var_route mibII/route_write mibII/udpTable mibII/vacm_context header_complex agentx/protocol agentx/client agentx/master_admin agentx/agentx_config.
checking if directories need to be created... .
checking default mib files to read... IP-MIB:IF-MIB:TCP-MIB:UDP-MIB:SNMPv2-MIB:RFC1213-MIB:NOTIFICATION-LOG- MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:SNMP- VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:UCD-DLMOD-MIB:SNMP-FRAMEWORK- MIB:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM
checking for location of system kernel... /mach_kernel
checking for mount table location... unknown
checking for location of swap device... none
checking for asin in -lm... yes
checking for nlist in -lelf... no
checking for gethostbyname... yes
checking for getservbyname... yes
<snip>...
checking for netinet/tcpip.h... yes checking for netinet/in.h... yes checking for netinet/ip.h... yes checking for netinet/ip_icmp.h... yes
<snip> ...
checking for sys/conf.h... yes checking for netinet/in_systm.h... yes checking for netinet/tcp.h... yes checking for netinet/udp.h... yes checking for netinet/in_var.h... no checking for netinet/if_ether.h... yes checking for netinet/ip_var.h... no checking for netinet/tcp_timer.h... yes checking for netinet/tcp_var.h... no checking for netinet/tcp_fsm.h... yes checking for netinet/udp_var.h... yes checking for netinet/icmp_var.h... yes
<snip> ...
checking for netinet/ip6.h... yes checking for netinet6/in6_var.h... yes checking for netinet6/in6_pcb.h... no checking for netinet6/ip6_var.h... yes checking for netinet6/tcp6.h... no checking for netinet6/tcp6_fsm.h... no checking for netinet6/nd6.h... yes checking for netinet6/tcp6_timer.h... no checking for netinet6/tcp6_var.h... no
<snip>...
updating cache ./config.cache creating ./config.status creating Makefile creating snmplib/Makefile creating apps/Makefile creating apps/snmpnetstat/Makefile creating agent/Makefile creating agent/helpers/Makefile creating agent/mibgroup/Makefile creating local/Makefile creating testing/Makefile creating man/Makefile creating mibs/Makefile creating net-snmp-config creating include/net-snmp/net-snmp-config.h
---------------------------------------------------------
Net-SNMP configuration summary:
---------------------------------------------------------Net-SNMP Version: 5.0.7
Building for: darwin6
Network transport support: Callback Unix TCP UDP
SNMPv3 Security Modules: usm
Agent MIB code: mibII ucd_snmp snmpv3mibs notification target agent_mibs agentx agent_mibs utilities
SNMP Perl modules: enabled
Authentication support: MD5 SHA1
Encryption support: DES AES128 AES192 AES256
---------------------------------------------------------
make
<snip> ...
gcc -I../../include -I../../include -I. -I../.. -I. -I./../.. -I./../../snmplib -I./.. -I.. -no-cpp-precomp -I/Developer/SDKs/MacOSX10.3.0.sdk/usr/include -D_BSD_SOCKLEN_T_=int32_t -I/sw/include -g -O2 -Ddarwin6 -c mibII/tcp.c -fno-common -DPIC -o mibII/.libs/tcp.lo
mibII/tcp.c:104:29: netinet/tcp_var.h: No such file or directory
In file included from mibII/tcp.c:105:
/sw/include/netinet/tcpip.h:66: error: field `ti_i' has incomplete type
mibII/tcp.c: In function `var_tcp':
mibII/tcp.c:288: error: storage size of `tcpstat' isn't known
mibII/tcp.c:288: error: storage size of `tcpstat' isn't known
mibII/tcp.c: At top level:
mibII/tcp.c:466: error: conflicting types for `read_tcp_stat'
mibII/tcp.c:279: error: previous declaration of `read_tcp_stat'
mibII/tcp.c: In function `read_tcp_stat':
mibII/tcp.c:587: error: dereferencing pointer to incomplete type
### execution of make failed, exit code 2
Failed: compiling net-snmp-ssl-5.0.7-2 failed
make[2]: *** [mibII/tcp.lo] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1
Hope I haven't snipped too much. I think the .patch isn't working? Running from the terminal didn't make any difference.
fink --version Package manager version: 0.18.2 Distribution version: 0.6.2.cvs
gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1493)
uname -a
Darwin dreamersound.com 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT 2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh powerpc
[dreamersound:/usr] williamt% ls X11R6 bin include lib libexec localaway sbin share standalone
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users
