Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-10620

sys-fs/cryptsetup-2.5.0 fails to link

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Severe (Ebuild) Severe (Ebuild)
    • None
    • None
    • None
    • blocks cryptsetup

      emerging sys-fs/cryptsetup-2.5.0 fails in the linking step with an error like this repeated trice

      /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/../../../../lib64/libjson-c.a(random_seed.c.o): in function `json_c_get_random_seed':
      (.text.json_c_get_random_seed+0x1): undefined reference to `arc4random'
      
      

      As arc4random is provided by libbsd, as a workaround I tried building with -lbsd tossed into CFLAGS and that made this error go away, but introduced a problem with having multiple definitions for a bunch of SHA512_* functions, making this workaround a no-go.

      Full build log attached.

            adbosco adbosco
            librin.so.1 librin.so.1
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: