Uploaded image for project: 'UrBackup Server'
  1. US-96

Qnap x86 error wont compile anymore - file_linux.cpp:339: error: 'fallocate64' was not declared in this scope

    Details

    • Type: Bug
    • Status: Completed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.30
    • Fix Version/s: 2.0.31
    • Component/s: Backend
    • Labels:
      None
    • Environment:

      Linux x86 (ubuntu based), GCC 4.3.6, glibc 2.60

    • Sprint:

      Description

      Hi,

      I am stephane from Qnap, maintainer for UrBackup QPKG,

      since 2.0.30, i have issue on cross compilation

      usually use :

      LIBCURL="-L$PREFIX/lib" \
      LIBCURL_CPPFLAGS="-O2 -I$PREFIX/include" \
      LIBS="-lcurl" \
      CRYPTOPP_CPPFLAGS="-O2 -I$PREFIX/include" \
      CRYPTOPP_LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib" \
      CRYPTOPP_LIBS="-L$PREFIX/lib" \
      CXX=$

      {HOST}-g++ \
      LD=${HOST}

      -ld \
      AS=$

      {HOST}-as \
      AR=${HOST}

      -ar \
      CC=$

      {HOST}-gcc \
      PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" \
      CFLAGS="-O2 -I$PREFIX/include" \
      CXXFLAGS="-O2 -I$PREFIX/include" \
      CPPFLAGS="-O2 -I$PREFIX/include" \
      LDFLAGS="-L$PREFIX/lib -Wl,-rpath,$PREFIX/lib" \
      ./configure \
      --prefix=$PREFIX \
      --host=${HOST}

      \
      --build=i686-pc-linux-gnu \
      --bindir=$PREFIX/bin \
      --sbindir=$PREFIX/bin \
      --libexecdir=$PREFIX/libexec \
      --libdir=$PREFIX/lib \
      --datadir=$PREFIX/share \
      --datarootdir=$PREFIX/share \
      --sysconfdir=$PREFIX/etc \
      --sharedstatedir=$PREFIX/com \
      --localstatedir=$PREFIX/var \
      --includedir=$PREFIX/include \
      --oldincludedir=$PREFIX/include \
      --infodir=$PREFIX/share/info \
      --localedir=$PREFIX/share/locale \
      --with-crypto-prefix=$PREFIX \
      --with-libcurl=$PREFIX \

      but on make ... result Error

      mv -f .deps/urbackupsrv-file_fstream.Tpo .deps/urbackupsrv-file_fstream.Po
      i686-QNAP-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/opt/QUrBackup/include -I/opt/QUrBackup/include -DNDEBUG -DSQLITE_PREPARE_RETRIES=5 -O2 -I/opt/QUrBackup/include -I/usr/local/include -I/usr/local/include -DLINUX -DSTATIC_PLUGIN -DVARDIR='"/opt/QUrBackup/var"' -DBINDIR='"/opt/QUrBackup/bin"' -DDATADIR='"/opt/QUrBackup/share"' -O2 -I/opt/QUrBackup/include -MT urbackupsrv-file_linux.o -MD -MP -MF .deps/urbackupsrv-file_linux.Tpo -c -o urbackupsrv-file_linux.o `test -f 'file_linux.cpp' || echo './'`file_linux.cpp
      file_linux.cpp: In member function 'virtual bool File::PunchHole(_i64, _i64)':
      file_linux.cpp:339: error: 'fallocate64' was not declared in this scope
      make2: *** urbackupsrv-file_linux.o Error 1
      make2: Leaving directory `/SRC/urbackup-server-2.0.30'
      make1: *** all-recursive Error 1
      make1: Leaving directory `/SRC/urbackup-server-2.0.30'
      make: *** all Error 2

      Thanks for the fix, many user are waiting for the update

        Attachments

          Activity

            People

            • Assignee:
              uroni Martin Raiber
              Reporter:
              Qnap Stéphane Stephane Guerithault
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: