Reposting now that the Holidays are over.

On 9 January 2015 at 17:58, Sevan / Venture37 <ventur...@gmail.com> wrote:
> Hi,
> I'm trying to build net-snmp 5.7.3 on FreeBSD 10.1 but the configure
> stage fails with "Perl support requires --enable-shared" even though
> --enable-shared is passed to configure.
>
> I'm running a stock a release of FreeBSD/amd64 10.1 & attempting to
> build 5.7.3 from the source tar ball without any patches.
>
> My configure commands are
> ./configure --enable-ipv6 --with-openssl --with-perl-modules
> --enable-embedded-perl --enable-shared --with-defaults
> --with-libwrap=/usr/lib --with-sys-contact=default_user@contact.domain
> --with-sys-location=defaultlocation  --with-logfile=none
>
>
> The version of Perl installed is an official package
> perl -V
> Summary of my perl5 (revision 5 version 18 subversion 4) configuration:
>
>
>
>   Platform:
>
>     osname=freebsd, osvers=10.0-release-p9, 
> archname=amd64-freebsd-thread-multi
>
>     uname='freebsd 10amd64-default-job-02 10.0-release-p9 freebsd
> 10.0-release-p9 amd64 '
>
>     config_args='-sde -Dprefix=/usr/local -Dlibperl=libperl.so.5.18.4
> -Darchlib=/usr/local/lib/perl5/5.18/mach
> -Dprivlib=/usr/local/lib/perl5/5.18
> -Dman3dir=/usr/local/lib/perl5/5.18/perl/man/man3
> -Dman1dir=/usr/local/man/man1
> -Dsitearch=/usr/local/lib/perl5/site_perl/mach/5.18
> -Dsitelib=/usr/local/lib/perl5/site_perl -Dscriptdir=/usr/local/bin
> -Dsiteman3dir=/usr/local/lib/perl5/site_perl/man/man3
> -Dsiteman1dir=/usr/local/man/man1
> -Dotherlibdirs=/usr/local/lib/perl5/site_perl/5.18:/usr/local/lib/perl5/site_perl/5.18/mach
> -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dusenm=n -Dcc=cc
> -Duseshrplib -Dinc_version_list=none -Doptimize=-O2 -pipe
> -fstack-protector -fno-strict-aliasing -Ui_gdbm -Dusemultiplicity=y
> -Duse64bitint -Dusethreads=y -Dusemymalloc=n'
>
>     hint=recommended, useposix=true, d_sigaction=define
>
>     useithreads=define, usemultiplicity=define
>
>     useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
>
>     use64bitint=define, use64bitall=define, uselongdouble=undef
>
>     usemymalloc=n, bincompat5005=undef
>
>   Compiler:
>
>     cc='cc', ccflags ='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
>
>     optimize='-O2 -pipe -fstack-protector -fno-strict-aliasing',
>
>     cppflags='-DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H
> -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
>
>     ccversion='', gccversion='4.2.1 Compatible FreeBSD Clang 3.3
> (tags/RELEASE_33/final 183502)', gccosandvers=''
>
>     intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
>
>     d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
>
>     ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
> lseeksize=8
>
>     alignbytes=8, prototype=define
>
>   Linker and Libraries:
>
>     ld='cc', ldflags ='-pthread -Wl,-E  -fstack-protector -L/usr/local/lib'
>
>     libpth=/usr/lib /usr/local/lib
>
>     libs=-lm -lcrypt -lutil
>
>     perllibs=-lm -lcrypt -lutil
>
>     libc=, so=so, useshrplib=true, libperl=libperl.so.5.18.4
>
>     gnulibc_version=''
>
>   Dynamic Linking:
>
>     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='
> -Wl,-R/usr/local/lib/perl5/5.18/mach/CORE'
>
>     cccdlflags='-DPIC -fPIC', lddlflags='-shared
> -L/wrkdirs/usr/ports/lang/perl5.18/work/perl-5.18.4
> -L/usr/local/lib/perl5/5.18/mach/CORE
> -Wl,-rpath=/usr/local/lib/perl5/5.18/mach/CORE -lperl
> -L/usr/local/lib -fstack-protector'
>
>
>
> Characteristics of this binary (from libperl):
>
>   Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
>
>                         PERL_DONT_CREATE_GVSV
>
>                         PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
>
>                         PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
>
>                         PERL_PRESERVE_IVUV PERL_SAWAMPERSAND USE_64_BIT_ALL
>
>                         USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
>
>                         USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE
>
>                         USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
>
>                         USE_REENTRANT_API
>
>   Built under freebsd
>
>   Compiled at Dec 25 2014 01:22:13
>
>   @INC:
>
>     /usr/local/lib/perl5/site_perl/mach/5.18
>
>     /usr/local/lib/perl5/site_perl
>
>     /usr/local/lib/perl5/5.18/mach
>
>     /usr/local/lib/perl5/5.18
>
>     /usr/local/lib/perl5/site_perl/5.18
>
>     /usr/local/lib/perl5/site_perl/5.18/mach
>
>
>
>
> From config.log
>
> configure:23742: result: no
> configure:23742: checking for knlist
> configure:23742: cc -o conftest -DNETSNMP_ENABLE_IPV6
> -fno-strict-aliasing -g -O2 -Ufreebsd10 -Dfreebsd10=freebsd10
> -I/usr/local/include  -L/usr/local/lib conftest.c -lelf -lm -lpkg  >&5
> /tmp/conftest-054664.o: In function `main':
> /home/myusr/fooo/net-snmp-5.7.3/conftest.c:246: undefined reference to 
> `knlist'
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
> configure:23742: $? = 1
> configure: failed program was:
> | /* confdefs.h */
> | #define PACKAGE_NAME "Net-SNMP"
> | #define PACKAGE_TARNAME "net-snmp"
> | #define PACKAGE_VERSION "5.7.3"
> | #define PACKAGE_STRING "Net-SNMP 5.7.3"
> | #define PACKAGE_BUGREPORT "net-snmp-cod...@lists.sourceforge.net"
> | #define PACKAGE_URL ""
> | #define NETSNMP_CONFIGURE_OPTIONS " '--enable-ipv6' '--with-openssl'
> '--enable-embedded-perl' '--enable-shared' '--with-defaults'
> '--with-libwrap=/usr/lib'
> '--with-sys-contact=default_user@contact.domain'
> '--with-sys-location=defaultlocation' '--with-logfile=none'
> '--with-perl-modules'"
> | #define NETSNMP_ENABLE_SCAPI_AUTHPRIV 1
> | #define NETSNMP_WITH_OPAQUE_SPECIAL_TYPES 1
> | #define NETSNMP_ENABLE_IPV6 1
> | #define NETSNMP_PERSISTENT_MASK 077
> | #define NETSNMP_TEMP_FILE_PATTERN "/tmp/snmpdXXXXXX"
> | #define NETSNMP_NO_DUMMY_VALUES 1
> | #define NETSNMP_AGENTX_SOCKET "/var/agentx/master"
> | #define NETSNMP_DEFAULT_SNMP_VERSION 3
> | #define NETSNMP_SYS_CONTACT "default_user@contact.domain"
> | #define NETSNMP_SYS_LOC "defaultlocation"
> | #define NETSNMP_PERSISTENT_DIRECTORY "/var/net-snmp"
> | #define UNAMEPROG "/usr/bin/uname"
> | #define STDC_HEADERS 1
> | #define HAVE_SYS_TYPES_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_MEMORY_H 1
> | #define HAVE_STRINGS_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_UNISTD_H 1
> | #define __EXTENSIONS__ 1
> | #define _ALL_SOURCE 1
> | #define _GNU_SOURCE 1
> | #define _POSIX_PTHREAD_SEMANTICS 1
> | #define _TANDEM_SOURCE 1
> | #define HAVE_DLFCN_H 1
> | #define LT_OBJDIR ".libs/"
> | #define NETSNMP_SYSTEM_INCLUDE_FILE "net-snmp/system/freebsd10.h"
> | #define NETSNMP_MACHINE_INCLUDE_FILE "net-snmp/machine/generic.h"
> | #define SNMPLIBPATH "/usr/local/lib/snmp"
> | #define SNMPDLMODPATH "/usr/local/lib/snmp/dlmod"
> | #define SNMPSHAREPATH "/usr/local/share/snmp"
> | #define NETSNMP_DEFAULT_MIBDIRS 
> "$HOME/.snmp/mibs:/usr/local/share/snmp/mibs"
> | #define SNMPCONFPATH "/usr/local/etc/snmp"
> | #define STDC_HEADERS 1
> | #define HAVE_DIRENT_H 1
> | #define HAVE_SYS_WAIT_H 1
> | #define HAVE_GETOPT_H 1
> | #define HAVE_PTHREAD_H 1
> | #define HAVE_REGEX_H 1
> | #define HAVE_STRING_H 1
> | #define HAVE_SYSLOG_H 1
> | #define HAVE_UNISTD_H 1
> | #define HAVE_STDINT_H 1
> | #define HAVE_INTTYPES_H 1
> | #define HAVE_SYS_PARAM_H 1
> | #define HAVE_SYS_SELECT_H 1
> | #define HAVE_SYS_SOCKET_H 1
> | #define HAVE_SYS_TIME_H 1
> | #define HAVE_SYS_TIMEB_H 1
> | #define HAVE_SYS_UN_H 1
> | #define HAVE_NLIST_H 1
> | #define HAVE_FCNTL_H 1
> | #define HAVE_LIMITS_H 1
> | #define HAVE_LOCALE_H 1
> | #define HAVE_SYS_FILE_H 1
> | #define HAVE_SYS_IOCTL_H 1
> | #define HAVE_SYS_SOCKIO_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_SYS_TIMES_H 1
> | #define HAVE_SYS_UIO_H 1
> | #define HAVE_SYS_UTSNAME_H 1
> | #define HAVE_NETIPX_IPX_H 1
> | #define HAVE_DLFCN_H 1
> | #define HAVE_ERR_H 1
> | #define HAVE_FCNTL_H 1
> | #define HAVE_FSTAB_H 1
> | #define HAVE_GRP_H 1
> | #define HAVE_KVM_H 1
> | #define HAVE_LIMITS_H 1
> | #define HAVE_PWD_H 1
> | #define HAVE_COM_ERR_H 1
> | #define HAVE_UTMPX_H 1
> | #define HAVE_SYS_FILE_H 1
> | #define HAVE_SYS_FILIO_H 1
> | #define HAVE_SYS_IOCTL_H 1
> | #define HAVE_SYS_PROTOSW_H 1
> | #define HAVE_SYS_SOCKIO_H 1
> | #define HAVE_SYS_STAT_H 1
> | #define HAVE_SYS_STATVFS_H 1
> | #define HAVE_SYS_UTSNAME_H 1
> | #define HAVE_SYS_VMMETER_H 1
> | #define HAVE_MACHINE_PARAM_H 1
> | #define HAVE_NETINET_TCP_FSM_H 1
> | #define HAVE_VM_VM_H 1
> | #define HAVE_VM_VM_EXTERN_H 1
> | #define HAVE_VM_VM_PARAM_H 1
> | #define HAVE_FCNTL_H 1
> | #define HAVE_GRP_H 1
> | #define HAVE_PWD_H 1
> | #define HAVE_SYS_CDEFS_H 1
> | #define HAVE_SYS_IOCTL_H 1
> | #define HAVE_SYS_SOCKET_H 1
> | #define HAVE_SYS_SOCKIO_H 1
> | #define HAVE_SYS_TIME_H 1
> | #define HAVE_SEARCH_H 1
> | #define HAVE_SYS_POLL_H 1
> | #define HAVE_OPENSSL_AES_H 1
> | #define HAVE_OPENSSL_DH_H 1
> | #define HAVE_OPENSSL_DES_H 1
> | #define HAVE_OPENSSL_HMAC_H 1
> | #define HAVE_OPENSSL_EVP_H 1
> | #define HAVE_STDLIB_H 1
> | #define HAVE_NET_IF_DL_H 1
> | #define HAVE_SYS_SYSCTL_H 1
> | #define HAVE_OSRELDATE_H 1
> | #define HAVE_NET_IF_DL_H 1
> | #define HAVE_NET_IF_TYPES_H 1
> | #define HAVE_SYS_DKSTAT_H 1
> | #define HAVE_SYS_CONF_H 1
> | #define HAVE_SYS_MBUF_H 1
> | #define HAVE_SYS_MOUNT_H 1
> | #define HAVE_SYS_PROC_H 1
> | #define HAVE_SYS_QUEUE_H 1
> | #define HAVE_SYS_SYSCTL_H 1
> | #define HAVE_SYS_USER_H 1
> | #define HAVE_SYS_SEMA_H 1
> | #define HAVE_SYS_SOCKETVAR_H 1
> | #define HAVE_SYS_VNODE_H 1
> | #define HAVE_SYS_DISKLABEL_H 1
> | #define HAVE_UFS_UFS_DINODE_H 1
> | #define HAVE_UFS_UFS_QUOTA_H 1
> | #define HAVE_UFS_UFS_INODE_H 1
> | #define HAVE_UFS_FFS_FS_H 1
> | #define HAVE_ARPA_INET_H 1
> | #define HAVE_NET_IF_H 1
> | #define HAVE_NETINET_IN_H 1
> | #define HAVE_NETDB_H 1
> | #define HAVE_NET_IF_ARP_H 1
> | #define HAVE_NET_IF_MIB_H 1
> | #define HAVE_NET_IF_VAR_H 1
> | #define HAVE_NETINET_IF_ETHER_H 1
> | #define HAVE_NETINET_IN_SYSTM_H 1
> | #define HAVE_NETINET_IN_VAR_H 1
> | #define HAVE_NETINET_IP_H 1
> | #define HAVE_NETINET_IP_ICMP_H 1
> | #define HAVE_NETINET_ICMP_VAR_H 1
> | #define HAVE_NETINET_IP_VAR_H 1
> | #define HAVE_NETINET_TCP_H 1
> | #define HAVE_NETINET_TCP_TIMER_H 1
> | #define HAVE_NETINET_TCP_VAR_H 1
> | #define HAVE_NETINET_TCPIP_H 1
> | #define HAVE_NETINET_UDP_H 1
> | #define HAVE_NETINET_UDP_VAR_H 1
> | #define HAVE_NET_ROUTE_H 1
> | #define HAVE_NETINET_ICMP6_H 1
> | #define HAVE_NETINET_IP6_H 1
> | #define HAVE_NETINET6_IN6_VAR_H 1
> | #define HAVE_NETINET6_IN6_PCB_H 1
> | #define HAVE_NETINET6_IP6_VAR_H 1
> | #define HAVE_NETINET6_TCP6_VAR_H 1
> | #define HAVE_NETINET_IN_PCB_H 1
> | #define HAVE_PKG_H 1
> | #define HAVE_LIBPKG 1
> | #define SIZEOF_SHORT 2
> | #define SIZEOF_INT 4
> | #define SIZEOF_LONG 8
> | #define SIZEOF_LONG_LONG 8
> | #define SIZEOF_INTMAX_T 8
> | #define HAVE_LONG_LONG_INT 1
> | #define HAVE_INTMAX_T 1
> | #define HAVE_UNSIGNED_LONG_LONG_INT 1
> | #define HAVE_UINTMAX_T 1
> | #define HAVE_INTPTR_T 1
> | #define HAVE_UINTPTR_T 1
> | #define HAVE_NFDS_T 1
> | #define NETSNMP_TRANSPORT_IPV6BASE_DOMAIN 1
> | #define NETSNMP_TRANSPORT_UDPBASE_DOMAIN 1
> | #define NETSNMP_TRANSPORT_UDPIPV4BASE_DOMAIN 1
> | #define NETSNMP_TRANSPORT_TCPBASE_DOMAIN 1
> | #define NETSNMP_TRANSPORT_SOCKETBASE_DOMAIN 1
> | #define NETSNMP_TRANSPORT_IPV4BASE_DOMAIN 1
> | #define NETSNMP_TRANSPORT_UDPIPV6_DOMAIN 1
> | #define NETSNMP_TRANSPORT_TCPIPV6_DOMAIN 1
> | #define NETSNMP_TRANSPORT_UDP_DOMAIN 1
> | #define NETSNMP_TRANSPORT_TCP_DOMAIN 1
> | #define NETSNMP_TRANSPORT_ALIAS_DOMAIN 1
> | #define NETSNMP_TRANSPORT_UNIX_DOMAIN 1
> | #define NETSNMP_TRANSPORT_CALLBACK_DOMAIN 1
> | #define NETSNMP_SECMOD_USM 1
> | #define HAVE_GETFSSTAT 1
> | #define HAVE_KVM_OPENFILES 1
> | #define HAVE_KVM_GETPROCS 1
> | #define HAVE_KVM_GETSWAPINFO 1
> | #define HAVE_DLOPEN 1
> | #define ENV_SEPARATOR ":"
> | #define ENV_SEPARATOR_CHAR ':'
> | #define NETSNMP_DEFAULT_MIBS
> ":SNMPv2-MIB:IF-MIB:IP-MIB:TCP-MIB:UDP-MIB:HOST-RESOURCES-MIB:NOTIFICATION-LOG-MIB:DISMAN-EVENT-MIB:DISMAN-SCHEDULE-MIB:UCD-SNMP-MIB:UCD-DEMO-MIB:SNMP-TARGET-MIB:NET-SNMP-AGENT-MIB:HOST-RESOURCES-TYPES:SNMP-MPD-MIB:SNMP-USER-BASED-SM-MIB:SNMP-FRAMEWORK-MIB:SNMP-VIEW-BASED-ACM-MIB:SNMP-COMMUNITY-MIB:IPV6-ICMP-MIB:IPV6-MIB:IPV6-TCP-MIB:IPV6-UDP-MIB:IP-FORWARD-MIB:NET-SNMP-PASS-MIB:NET-SNMP-EXTEND-MIB:UCD-DLMOD-MIB:SNMP-NOTIFICATION-MIB:SNMPv2-TM:NET-SNMP-VACM-MIB"
> | #define HAVE_LIBELF 1
> | #define HAVE_GETHOSTBYNAME 1
> | #define HAVE_GETHOSTBYADDR 1
> | #define HAVE_CLOCK_GETTIME 1
> | #define HAVE_PCI_LOOKUP_NAME 1
> | #define HAVE_LIBCRYPTO 1
> | #define HAVE_AES_CFB128_ENCRYPT 1
> | #define HAVE_EVP_MD_CTX_CREATE /**/
> | #define HAVE_EVP_MD_CTX_DESTROY /**/
> | #define NETSNMP_CAN_DO_CRYPTO 1
> | #define NETSNMP_USE_LIBWRAP 1
> | #define HAVE_NLIST 1
> | /* end confdefs.h.  */
> | /* Define knlist to an innocuous variant, in case <limits.h> declares 
> knlist.
> |    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
> | #define knlist innocuous_knlist
> |
> | /* System header to define __stub macros and hopefully few prototypes,
> |     which can conflict with char knlist (); below.
> |     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
> |     <limits.h> exists even on freestanding compilers.  */
> |
> | #ifdef __STDC__
> | # include <limits.h>
> | #else
> | # include <assert.h>
> | #endif
> |
> | #undef knlist
> |
> | /* Override any GCC internal prototype to avoid an error.
> |    Use char because int might match the return type of a GCC
> |    builtin and then its argument prototype would still apply.  */
> | #ifdef __cplusplus
> | extern "C"
> | #endif
> | char knlist ();
> | /* The GNU C library defines this for functions which it implements
> |     to always fail with ENOSYS.  Some functions are actually named
> |     something starting with __ and the normal name is an alias.  */
> | #if defined __stub_knlist || defined __stub___knlist
> | choke me
> | #endif
> |
> | int
> | main ()
> | {
> | return knlist ();
> |   ;
> |   return 0;
> | }
> configure:23742: result: no
> configure:23890: error: Perl support requires --enable-shared
>
>
>
>     .

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to