Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Tarsnap + pfSense

    2.0-RC Snapshot Feedback and Problems - RETIRED
    3
    3
    2147
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      ericab last edited by

      any chance tarsnap could be included in the avaliable packages for pfsense ?

      ive tried to build it, as the instructions here say:
      https://www.tarsnap.com/download.html

      and i get this:

      checking build system type... i386-unknown-freebsd8.1
      checking host system type... i386-unknown-freebsd8.1
      checking target system type... i386-unknown-freebsd8.1
      checking for a BSD-compatible install... /usr/bin/install -c
      checking whether build environment is sane... yes
      checking for a thread-safe mkdir -p... config.aux/install-sh -c -d
      checking for gawk... no
      checking for mawk... no
      checking for nawk... nawk
      checking whether make sets $(MAKE)... make: not found
      no
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... configure: error: in `/root/scripts/tarsnap-autoconf-1.0.28':
      configure: error: cannot run C compiled programs.
      If you meant to cross compile, use `--host'.
      See `config.log' for more details
      

      here is the log referenced in the last line:

      This file contains any messages produced by compilers while
      running configure, to aid debugging if configure makes a mistake.
      
      It was created by tarsnap configure 1.0.28, which was
      generated by GNU Autoconf 2.68.  Invocation command line was
      
        $ ./configure 
      
      ## --------- ##
      ## Platform. ##
      ## --------- ##
      
      hostname = pfsense.router
      uname -m = i386
      uname -r = 8.1-RELEASE-p2
      uname -s = FreeBSD
      uname -v = FreeBSD 8.1-RELEASE-p2 #1: Mon Jan 17 19:53:45 EST 2011     sullrich@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8 
      
      /usr/bin/uname -p = i386
      /bin/uname -X     = unknown
      
      /bin/arch              = unknown
      /usr/bin/arch -k       = unknown
      /usr/convex/getsysinfo = unknown
      /usr/bin/hostinfo      = unknown
      /bin/machine           = unknown
      /usr/bin/oslevel       = unknown
      /bin/universe          = unknown
      
      PATH: /sbin
      PATH: /bin
      PATH: /usr/sbin
      PATH: /usr/bin
      PATH: /usr/local/sbin
      PATH: /usr/local/bin
      PATH: /root/bin
      
      ## ----------- ##
      ## Core tests. ##
      ## ----------- ##
      
      configure:2670: checking build system type
      configure:2684: result: i386-unknown-freebsd8.1
      configure:2704: checking host system type
      configure:2717: result: i386-unknown-freebsd8.1
      configure:2737: checking target system type
      configure:2750: result: i386-unknown-freebsd8.1
      configure:2794: checking for a BSD-compatible install
      configure:2862: result: /usr/bin/install -c
      configure:2873: checking whether build environment is sane
      configure:2923: result: yes
      configure:3064: checking for a thread-safe mkdir -p
      configure:3103: result: config.aux/install-sh -c -d
      configure:3116: checking for gawk
      configure:3146: result: no
      configure:3116: checking for mawk
      configure:3146: result: no
      configure:3116: checking for nawk
      configure:3132: found /usr/bin/nawk
      configure:3143: result: nawk
      configure:3154: checking whether make sets $(MAKE)
      configure:3180: result: no
      configure:3362: checking for gcc
      configure:3378: found /usr/bin/gcc
      configure:3389: result: gcc
      configure:3618: checking for C compiler version
      configure:3627: gcc --version >&5
      gcc (GCC) 4.2.1 20070719  [FreeBSD]
      Copyright (C) 2007 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      
      configure:3638: $? = 0
      configure:3627: gcc -v >&5
      Using built-in specs.
      Target: i386-undermydesk-freebsd
      Configured with: FreeBSD/i386 system compiler
      Thread model: posix
      gcc version 4.2.1 20070719  [FreeBSD]
      configure:3638: $? = 0
      configure:3627: gcc -V >&5
      gcc: '-V' option must have argument
      configure:3638: $? = 1
      configure:3627: gcc -qversion >&5
      gcc: unrecognized option '-qversion'
      gcc: No input files specified
      configure:3638: $? = 1
      configure:3658: checking whether the C compiler works
      configure:3680: gcc    conftest.c  >&5
      configure:3684: $? = 0
      configure:3732: result: yes
      configure:3735: checking for C compiler default output file name
      configure:3737: result: a.out
      configure:3743: checking for suffix of executables
      configure:3750: gcc -o conftest    conftest.c  >&5
      configure:3754: $? = 0
      configure:3776: result: 
      configure:3798: checking whether we are cross compiling
      configure:3806: gcc -o conftest    conftest.c  >&5
      conftest.c:15:19: error: no include path in which to search for stdio.h
      conftest.c: In function 'main':
      conftest.c:19: error: 'FILE' undeclared (first use in this function)
      conftest.c:19: error: (Each undeclared identifier is reported only once
      conftest.c:19: error: for each function it appears in.)
      conftest.c:19: error: 'f' undeclared (first use in this function)
      configure:3810: $? = 1
      configure:3817: ./conftest
      eval: ./conftest: not found
      configure:3821: $? = 2
      configure:3828: error: in `/root/scripts/tarsnap-autoconf-1.0.28':
      configure:3832: error: cannot run C compiled programs.
      If you meant to cross compile, use `--host'.
      See `config.log' for more details
      
      ## ---------------- ##
      ## Cache variables. ##
      ## ---------------- ##
      
      ac_cv_build=i386-unknown-freebsd8.1
      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_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=i386-unknown-freebsd8.1
      ac_cv_path_install='/usr/bin/install -c'
      ac_cv_prog_AWK=nawk
      ac_cv_prog_ac_ct_CC=gcc
      ac_cv_prog_make_make_set=no
      ac_cv_target=i386-unknown-freebsd8.1
      
      ## ----------------- ##
      ## Output variables. ##
      ## ----------------- ##
      
      ACLOCAL='${SHELL} /root/scripts/tarsnap-autoconf-1.0.28/config.aux/missing --run aclocal-1.11'
      AMDEPBACKSLASH=''
      AMDEP_FALSE=''
      AMDEP_TRUE=''
      AMTAR='${SHELL} /root/scripts/tarsnap-autoconf-1.0.28/config.aux/missing --run tar'
      AUTOCONF='${SHELL} /root/scripts/tarsnap-autoconf-1.0.28/config.aux/missing --run autoconf'
      AUTOHEADER='${SHELL} /root/scripts/tarsnap-autoconf-1.0.28/config.aux/missing --run autoheader'
      AUTOMAKE='${SHELL} /root/scripts/tarsnap-autoconf-1.0.28/config.aux/missing --run automake-1.11'
      AWK='nawk'
      BROKEN_TCP_NOPUSH=''
      CC='gcc'
      CCDEPMODE=''
      CFLAGS=''
      CPP=''
      CPPFLAGS=''
      CYGPATH_W='echo'
      DEFS=''
      DEPDIR=''
      ECHO_C=''
      ECHO_N='-n'
      ECHO_T=''
      EGREP=''
      EXEEXT=''
      FREEBSD_PORTRANGE_BUG=''
      GREP=''
      HAVE_EXT2FS_EXT2_FS_H=''
      HAVE_SYSCTL_HW_USERMEM=''
      INC_CYGWIN_FILES_FALSE=''
      INC_CYGWIN_FILES_TRUE='#'
      INC_WINDOWS_FILES_FALSE=''
      INC_WINDOWS_FILES_TRUE='#'
      INSTALL_DATA='${INSTALL} -m 644'
      INSTALL_PROGRAM='${INSTALL}'
      INSTALL_SCRIPT='${INSTALL}'
      INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
      LDFLAGS=''
      LIBARCHIVE_VERSION_NUMBER='2007000'
      LIBARCHIVE_VERSION_STRING='2.7.0'
      LIBOBJS=''
      LIBS=''
      LTLIBOBJS=''
      MAINT=''
      MAINTAINER_MODE_FALSE=''
      MAINTAINER_MODE_TRUE=''
      MAKEINFO='${SHELL} /root/scripts/tarsnap-autoconf-1.0.28/config.aux/missing --run makeinfo'
      MANVER=''
      MKDIR_P='config.aux/install-sh -c -d'
      OBJEXT=''
      PACKAGE='tarsnap'
      PACKAGE_BUGREPORT='cperciva@tarsnap.com'
      PACKAGE_NAME='tarsnap'
      PACKAGE_STRING='tarsnap 1.0.28'
      PACKAGE_TARNAME='tarsnap'
      PACKAGE_URL=''
      PACKAGE_VERSION='1.0.28'
      PATH_SEPARATOR=':'
      PROG_LDADD_EXTRA=''
      RANLIB=''
      SCRYPTVER=''
      SET_MAKE='MAKE=make'
      SHELL='/bin/sh'
      STRIP=''
      VERSION='1.0.28'
      ac_ct_CC='gcc'
      am__EXEEXT_FALSE=''
      am__EXEEXT_TRUE=''
      am__fastdepCC_FALSE=''
      am__fastdepCC_TRUE=''
      am__include=''
      am__isrc=''
      am__leading_dot='.'
      am__quote=''
      am__tar='${AMTAR} chof - "$$tardir"'
      am__untar='${AMTAR} xf -'
      bindir='${exec_prefix}/bin'
      build='i386-unknown-freebsd8.1'
      build_alias=''
      build_cpu='i386'
      build_os='freebsd8.1'
      build_vendor='unknown'
      datadir='${datarootdir}'
      datarootdir='${prefix}/share'
      docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
      dvidir='${docdir}'
      exec_prefix='NONE'
      host='i386-unknown-freebsd8.1'
      host_alias=''
      host_cpu='i386'
      host_os='freebsd8.1'
      host_vendor='unknown'
      htmldir='${docdir}'
      includedir='${prefix}/include'
      infodir='${datarootdir}/info'
      install_sh='${SHELL} /root/scripts/tarsnap-autoconf-1.0.28/config.aux/install-sh'
      libdir='${exec_prefix}/lib'
      libexecdir='${exec_prefix}/libexec'
      localedir='${datarootdir}/locale'
      localstatedir='${prefix}/var'
      mandir='${datarootdir}/man'
      mkdir_p='$(top_builddir)/config.aux/install-sh -c -d'
      oldincludedir='/usr/include'
      pdfdir='${docdir}'
      prefix='NONE'
      program_transform_name='s,x,x,'
      psdir='${docdir}'
      sbindir='${exec_prefix}/sbin'
      sharedstatedir='${prefix}/com'
      sysconfdir='${prefix}/etc'
      target='i386-unknown-freebsd8.1'
      target_alias=''
      target_cpu='i386'
      target_os='freebsd8.1'
      target_vendor='unknown'
      
      ## ----------- ##
      ## confdefs.h. ##
      ## ----------- ##
      
      /* confdefs.h */
      #define PACKAGE_NAME "tarsnap"
      #define PACKAGE_TARNAME "tarsnap"
      #define PACKAGE_VERSION "1.0.28"
      #define PACKAGE_STRING "tarsnap 1.0.28"
      #define PACKAGE_BUGREPORT "cperciva@tarsnap.com"
      #define PACKAGE_URL ""
      #define PACKAGE "tarsnap"
      #define VERSION "1.0.28"
      #define LIBARCHIVE_VERSION_STRING "2.7.0"
      #define LIBARCHIVE_VERSION_NUMBER "2007000"
      #define TARVERSION "1.0.28"
      #define TSSERVER "betatest"
      
      configure: exit 1
      
      

      any ideas how to get this to build ?

      id like to begin weekly file-system backups.

      1 Reply Last reply Reply Quote 0
      • _
        _igor_ last edited by

        Looks as if you are trying to compile on your pfSense-box. Missing header-files: error: no include path in which to search for stdio.h
        Other missing things too…

        Better to compile that on a full install FreeBSD-Box and transfer the respective files to your pfSense.

        1 Reply Last reply Reply Quote 0
        • jimp
          jimp Rebel Alliance Developer Netgate last edited by

          Why would you want to run that on your router?

          Just backup your config.xml file periodically and the rest of the system can be reinstalled from cd/usb/etc.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post