I am having problems compiling tcpreplay on my Solaris platform. Details below: - tcpreplay version: 3.4.0 pre 3 & 3.3.2 - Platform: Solaris 8 on SPARC - Compiler: Sun Studio 11
Compiler/Platform compatibility issues found: Sun Studio 11 does not support -Wall flag. gcc struct attributes used in src/common/cache.h - line 83 #include file <err.h> not included on Solaris systems. Has anyone been successful in compiling tcpreplay 3.3.2 on Solaris 8? Config.log pasted below: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.63. Invocation command line was $ ./configure --with-libpcap=/opt/csw ## --------- ## ## Platform. ## ## --------- ## hostname = alph4800 uname -m = sun4u uname -r = 5.8 uname -s = SunOS uname -v = Generic_117350-47 /usr/bin/uname -p = sparc /bin/uname -X = System = SunOS Node = alph4800 Release = 5.8 KernelID = Generic_117350-47 Machine = sun4u BusType = <unknown> Serial = <unknown> Users = <unknown> OEM# = 0 Origin# = 1 NumCPU = 8 /bin/arch = sun4 /usr/bin/arch -k = sun4u /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /data/opt/SUNWspro/bin PATH: /opt/Lucent/ALUsybaset/OCS-12_5/bin PATH: /opt/Lucent/ALUsybaset/bin PATH: /opt/Lucent/ALUperl58t/bin PATH: /usr/sbin PATH: /usr/bin PATH: /usr/local/bin PATH: /opt/csw/bin PATH: /usr/X/bin PATH: /usr/openwin/bin PATH: /usr/dt/bin PATH: /usr/local/sbin PATH: /opt/acn/bin PATH: /usr/ccs/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2172: checking whether to enable maintainer-specific portions of Makefiles configure:2181: result: no configure:2194: checking if malloc debugging is wanted configure:2214: result: no configure:2253: checking build system type configure:2271: result: sparc-sun-solaris2.8 configure:2293: checking host system type configure:2308: result: sparc-sun-solaris2.8 configure:2330: checking target system type configure:2345: result: sparc-sun-solaris2.8 configure:2378: checking for cygwin development environment configure:2390: result: no configure:2411: checking for a BSD-compatible install configure:2479: result: config/install-sh -c configure:2490: checking whether build environment is sane configure:2533: result: yes configure:2558: checking for a thread-safe mkdir -p configure:2597: result: config/install-sh -c -d configure:2610: checking for gawk configure:2626: found /opt/csw/bin/gawk configure:2637: result: gawk configure:2648: checking whether make sets $(MAKE) configure:2670: result: yes configure:2860: checking for a BSD-compatible install configure:2928: result: config/install-sh -c configure:2976: checking for style of include used by make configure:3004: result: GNU configure:3074: checking for gcc configure:3104: result: no configure:3167: checking for cc configure:3188: found /data/opt/SUNWspro/bin/cc configure:3211: result: cc configure:3333: checking for C compiler version configure:3341: cc --version >&5 cc: Warning: option -- passed to ld usage: cc [ options] files. Use 'cc -flags' for details configure:3345: $? = 1 configure:3352: cc -v >&5 usage: cc [ options] files. Use 'cc -flags' for details configure:3356: $? = 1 configure:3363: cc -V >&5 cc: Sun C 5.8 2005/10/13 usage: cc [ options] files. Use 'cc -flags' for details configure:3367: $? = 1 configure:3390: checking for C compiler default output file name configure:3412: cc -Wall -O3 -std=gnu99 conftest.c >&5 cc: illegal option -Wall configure:3416: $? = 1 configure:3454: result: configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE tcpreplay | #define VERSION "3.4.0pre3" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3460: error: in `/opt2/Software/Sun/tcpreplay-3.4.0pre3': configure:3463: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=sparc-sun-solaris2.8 ac_cv_env_CCC_set= ac_cv_env_CCC_value= ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_CXXCPP_set= ac_cv_env_CXXCPP_value= ac_cv_env_CXXFLAGS_set= ac_cv_env_CXXFLAGS_value= ac_cv_env_CXX_set= ac_cv_env_CXX_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set= ac_cv_env_build_alias_value= ac_cv_env_host_alias_set= ac_cv_env_host_alias_value= ac_cv_env_target_alias_set= ac_cv_env_target_alias_value= ac_cv_host=sparc-sun-solaris2.8 ac_cv_prog_AWK=gawk ac_cv_prog_CC=cc ac_cv_prog_make_make_set=yes ac_cv_target=sparc-sun-solaris2.8 ## ----------------- ## ## Output variables. ## ## ----------------- ## ACLOCAL='${SHELL} /opt2/Software/Sun/tcpreplay-3.4.0pre3/config/missing --run aclocal-1.10' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' AMTAR='${SHELL} /opt2/Software/Sun/tcpreplay-3.4.0pre3/config/missing --run tar' AR='' AUTOCONF='${SHELL} /opt2/Software/Sun/tcpreplay-3.4.0pre3/config/missing --run autoconf' AUTOGEN='' AUTOHEADER='${SHELL} /opt2/Software/Sun/tcpreplay-3.4.0pre3/config/missing --run autoheader' AUTOMAKE='${SHELL} /opt2/Software/Sun/tcpreplay-3.4.0pre3/config/missing --run automake-1.10' AWK='gawk' CC='cc' CCDEPMODE='' CFLAGS=' -Wall -O3 -std=gnu99' COMPILE_FRAGROUTE_FALSE='' COMPILE_FRAGROUTE_TRUE='' COMPILE_TCPBRIDGE_FALSE='' COMPILE_TCPBRIDGE_TRUE='' CPP='' CPPFLAGS='' CUT='' CXX='' CXXCPP='' CXXDEPMODE='' CXXFLAGS='' CYGPATH_W='echo' DEFS='' DEPDIR='.deps' DMALLOC_LIB='' DSYMUTIL='' DUMPBIN='' ECHO='echo' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' ENABLE_OSX_FRAMEWORKS_FALSE='' ENABLE_OSX_FRAMEWORKS_TRUE='' ENABLE_TCPDUMP_FALSE='' ENABLE_TCPDUMP_TRUE='' ENABLE_TCPREPLAY_EDIT_FALSE='' ENABLE_TCPREPLAY_EDIT_TRUE='' EXEEXT='' FGREP='' GREP='' GROFF='' INSTALL_DATA='${INSTALL} -m 644' INSTALL_LIBOPTS_FALSE='' INSTALL_LIBOPTS_TRUE='' INSTALL_PROGRAM='${INSTALL}' INSTALL_SCRIPT='${INSTALL}' INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LD='' LDFLAGS='' LDNETINC='' LDNETLIB='' LIBOBJS='' LIBOPTS_CFLAGS='' LIBOPTS_DIR='' LIBOPTS_LDADD='' LIBS='' LIBTOOL='' LIPO='' LNAVLIB='' LNAV_CFLAGS='' LN_S='' LPCAPINC='' LPCAPLIB='' LTLIBOBJS='' MAINT='#' MAINTAINER_MODE_FALSE='' MAINTAINER_MODE_TRUE='#' MAKEINFO='${SHELL} /opt2/Software/Sun/tcpreplay-3.4.0pre3/config/missing --run makeinfo' MKDIR_P='config/install-sh -c -d' NEED_LIBOPTS_FALSE='' NEED_LIBOPTS_TRUE='' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE='tcpreplay' PACKAGE_BUGREPORT='' PACKAGE_NAME='' PACKAGE_STRING='' PACKAGE_TARNAME='' PACKAGE_VERSION='' PATH_SEPARATOR=':' PCAP_BPF_H_FILE='' PRINTF='' RANLIB='' SED='' SET_MAKE='' SHELL='/bin/bash' STRIP='' SYSTEM_STRLCPY_FALSE='' SYSTEM_STRLCPY_TRUE='' TCPREPLAY_RELEASE='1' TCPREPLAY_VERSION='3.4.0pre3' VERSION='3.4.0pre3' WORDS_BIGENDIAN_FALSE='' WORDS_BIGENDIAN_TRUE='' ac_ct_CC='' ac_ct_CXX='' ac_ct_DUMPBIN='' am__fastdepCC_FALSE='' am__fastdepCC_TRUE='' am__fastdepCXX_FALSE='' am__fastdepCXX_TRUE='' am__include='include' am__isrc='' am__leading_dot='.' am__quote='' am__tar='${AMTAR} chof - "$$tardir"' am__untar='${AMTAR} xf -' bindir='${exec_prefix}/bin' build='sparc-sun-solaris2.8' build_alias='' build_cpu='sparc' build_os='solaris2.8' build_vendor='sun' datadir='${datarootdir}' datarootdir='${prefix}/share' debug_flag='' docdir='${datarootdir}/doc/${PACKAGE}' dvidir='${docdir}' exec_prefix='NONE' host='sparc-sun-solaris2.8' host_alias='' host_cpu='sparc' host_os='solaris2.8' host_vendor='sun' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' install_sh='$(SHELL) /opt2/Software/Sun/tcpreplay-3.4.0pre3/config/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' lt_ECHO='echo' mandir='${datarootdir}/man' mkdir_p='$(top_builddir)/config/install-sh -c -d' nic1='' nic2='' oldincludedir='/usr/include' pcncfg='' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target='sparc-sun-solaris2.8' target_alias='' target_cpu='sparc' target_os='solaris2.8' target_vendor='sun' tcpdump_path='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define PACKAGE tcpreplay #define VERSION "3.4.0pre3" configure: exit 77 ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Tcpreplay-users mailing list Tcpreplay-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support