Skip to content

testing/par2cmdline-turbo: fix build with gcc 14

mio requested to merge mio/aports:par2cmdline-turbo into master

Should be fixed upstream but rebuild with -std=gnu99 in the meantime to allow posix_memalign() to be detected.

The rebuild error was:

In file included from parpar/hasher/md5-scalar.h:3,
                 from parpar/hasher/md5-final.c:2:
parpar/hasher/md5-base.h: In function 'md5_alloc_scalar':
parpar/hasher/../src/platform.h:305:49: error: implicit declaration of function 'posix_memalign'; did you mean '_mm_posix_memalign'? [-Wimplicit-function-declaration]
  305 |         #define ALIGN_ALLOC(buf, len, align) if(posix_memalign((void**)&(buf), align < sizeof(void*) ? sizeof(void*) : align, (len))) (buf) = NULL
      |                                                 ^~~~~~~~~~~~~~
parpar/hasher/md5-base.h:315:9: note: in expansion of macro 'ALIGN_ALLOC'
  315 |         ALIGN_ALLOC(ret, sizeof(word_t)*words, sizeof(word_t) < sizeof(void*) ? sizeof(void*) : sizeof(word_t));
      |         ^~~~~~~~~~~

Merge request reports

Loading