Package Details: snapraid 12.4-1

Git Clone URL: https://aur.archlinux.org/snapraid.git (read-only, click to copy)
Package Base: snapraid
Description: tool for Snapshot RAID: generate parity files, maintain checksums on data, restore lost data
Upstream URL: http://www.snapraid.it/
Licenses: GPL3
Submitter: ice9
Maintainer: Sparticuz
Last Packager: Sparticuz
Votes: 31
Popularity: 1.37
First Submitted: 2012-01-02 06:42 (UTC)
Last Updated: 2025-01-30 16:17 (UTC)

Pinned Comments

Sparticuz commented on 2025-01-30 16:17 (UTC) (edited on 2025-01-30 16:17 (UTC) by Sparticuz)

AUR Changelog 20250130:

Update to Snapraid 12.4, Added a notice and a 5 second hold before running make check, Added smartmontools to optdepends

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

AgingOrange commented on 2022-08-06 03:12 (UTC) (edited on 2022-08-07 16:35 (UTC) by AgingOrange)

I have the same problem as Nillismo. Also tried with the tarball as described on www.snapraid.it, but the same happens when running make when building. This is a fresh install from the 2022-08-05 iso.

Niilismo commented on 2022-08-06 01:48 (UTC) (edited on 2022-08-06 01:48 (UTC) by Niilismo)

I'm unable to build this package, getting tons of errors about definitions:

In file included from /usr/include/linux/fs.h:19,
                 from ./cmdline/portable.h:125,
                 from tommyds/tommy.c:33:
/usr/include/linux/mount.h:95:6: error: redeclaration of ‘enum fsconfig_command’
   95 | enum fsconfig_command {
      |      ^~~~~~~~~~~~~~~~
In file included from ./cmdline/portable.h:105:
/usr/include/sys/mount.h:189:6: note: originally defined here
  189 | enum fsconfig_command
      |      ^~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:96:9: error: redeclaration of enumerator ‘FSCONFIG_SET_FLAG’
   96 |         FSCONFIG_SET_FLAG       = 0,    /* Set parameter, supplying no value */
      |         ^~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:191:3: note: previous definition of ‘FSCONFIG_SET_FLAG’ with type ‘enum fsconfig_command’
  191 |   FSCONFIG_SET_FLAG       = 0,    /* Set parameter, supplying no value */
      |   ^~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:97:9: error: redeclaration of enumerator ‘FSCONFIG_SET_STRING’
   97 |         FSCONFIG_SET_STRING     = 1,    /* Set parameter, supplying a string value */
      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:193:3: note: previous definition of ‘FSCONFIG_SET_STRING’ with type ‘enum fsconfig_command’
  193 |   FSCONFIG_SET_STRING     = 1,    /* Set parameter, supplying a string value */
      |   ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:98:9: error: redeclaration of enumerator ‘FSCONFIG_SET_BINARY’
   98 |         FSCONFIG_SET_BINARY     = 2,    /* Set parameter, supplying a binary blob value */
      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:195:3: note: previous definition of ‘FSCONFIG_SET_BINARY’ with type ‘enum fsconfig_command’
  195 |   FSCONFIG_SET_BINARY     = 2,    /* Set parameter, supplying a binary blob value */
      |   ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:99:9: error: redeclaration of enumerator ‘FSCONFIG_SET_PATH’
   99 |         FSCONFIG_SET_PATH       = 3,    /* Set parameter, supplying an object by path */
      |         ^~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:197:3: note: previous definition of ‘FSCONFIG_SET_PATH’ with type ‘enum fsconfig_command’
  197 |   FSCONFIG_SET_PATH       = 3,    /* Set parameter, supplying an object by path */
      |   ^~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:100:9: error: redeclaration of enumerator ‘FSCONFIG_SET_PATH_EMPTY’
  100 |         FSCONFIG_SET_PATH_EMPTY = 4,    /* Set parameter, supplying an object by (empty) path */
      |         ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:199:3: note: previous definition of ‘FSCONFIG_SET_PATH_EMPTY’ with type ‘enum fsconfig_command’
  199 |   FSCONFIG_SET_PATH_EMPTY = 4,    /* Set parameter, supplying an object by (empty) path */
      |   ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:101:9: error: redeclaration of enumerator ‘FSCONFIG_SET_FD’
  101 |         FSCONFIG_SET_FD         = 5,    /* Set parameter, supplying an object by fd */
      |         ^~~~~~~~~~~~~~~
/usr/include/sys/mount.h:201:3: note: previous definition of ‘FSCONFIG_SET_FD’ with type ‘enum fsconfig_command’
  201 |   FSCONFIG_SET_FD         = 5,    /* Set parameter, supplying an object by fd */
      |   ^~~~~~~~~~~~~~~
/usr/include/linux/mount.h:102:9: error: redeclaration of enumerator ‘FSCONFIG_CMD_CREATE’
  102 |         FSCONFIG_CMD_CREATE     = 6,    /* Invoke superblock creation */
      |         ^~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:203:3: note: previous definition of ‘FSCONFIG_CMD_CREATE’ with type ‘enum fsconfig_command’
  203 |   FSCONFIG_CMD_CREATE     = 6,    /* Invoke superblock creation */
      |   ^~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:103:9: error: redeclaration of enumerator ‘FSCONFIG_CMD_RECONFIGURE’
  103 |         FSCONFIG_CMD_RECONFIGURE = 7,   /* Invoke superblock reconfiguration */
      |         ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/sys/mount.h:205:3: note: previous definition of ‘FSCONFIG_CMD_RECONFIGURE’ with type ‘enum fsconfig_command’
  205 |   FSCONFIG_CMD_RECONFIGURE = 7,   /* Invoke superblock reconfiguration */
      |   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/linux/mount.h:129:8: error: redefinition of ‘struct mount_attr’
  129 | struct mount_attr {
      |        ^~~~~~~~~~
/usr/include/sys/mount.h:161:8: note: originally defined here
  161 | struct mount_attr
      |        ^~~~~~~~~~
make[1]: *** [Makefile:705: tommyds/tommy.o] Error 1
make[1]: Leaving directory '/home/user/.cache/yay/snapraid/src/snapraid-12.1'
make: *** [Makefile:533: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: snapraid

willemw commented on 2022-04-07 07:10 (UTC)

Please remove conflicts=('snapraid-git'). It is not needed, even if that package existed.

Sparticuz commented on 2020-06-01 17:53 (UTC)

@Kihra1, @wmcclain, and everyone else. I've updated the package to 11.5, looks like they released 11.4, then quickly released 11.5 right after that. This includes any fixes to address the GCC 10 compiler issues as well.

wmcclain commented on 2020-05-17 16:45 (UTC)

Reports are cropping up of a lot of packages having issues with a change in a default of gcc 10. Snapraid is one of them.

Gentoo has a concise page on the problem: https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common

And it is the first topic on gnu's page: https://gcc.gnu.org/gcc-10/porting_to.html

The fix is easy, but is best done in the source code. I've posted this note in the snapraid forum at sourceforge for Andrea: https://sourceforge.net/p/snapraid/discussion/1677233/thread/0fafb0f00b/

Sparticuz commented on 2020-05-17 15:15 (UTC)

I will take a look tomorrow and release a -4 if needed. Looks like there has been some movement in master, so hopefully 11.4 goes to release this month also.

wmcclain commented on 2020-05-17 15:07 (UTC) (edited on 2020-05-17 15:10 (UTC) by wmcclain)

It looks like a gcc 10 issue as discussed here:

https://bbs.archlinux.org/viewtopic.php?id=255772

https://bbs.archlinux.org/viewtopic.php?id=255727

I updated and got the same results as you. The workaround for now is to add:

CFLAGS="$CFLAGS -fcommon"

to the PKGBUILD file. Delete the previous compilation results first.

Adding the above to /etc/makepkg.conf didn't work, so this must be done to each package after downloading it.

Kihra1 commented on 2020-05-17 03:37 (UTC)

This package won't build. Many errors about multiple definitions. All are taking the form: /usr/bin/ld: cmdline/snapraid.o:(.bss+0x64): multiple definition of `exit_success'; tommyds/tommy.o:(.bss+0xc): first defined here

Supay commented on 2019-05-20 17:42 (UTC)

@Sparticuz Thank you for this, appreciate you taking it on for the community.

Sparticuz commented on 2019-01-10 23:00 (UTC)

I've adopted this package and will be updating it to 11.3 soon.