bioinfo-ut / GenomeTester4

A toolkit for performing set operations - union, intersection and complement - on k-mer lists.
GNU General Public License v3.0
32 stars 14 forks source link

Compiling of GenomeTester4 on Ubuntu 20.04 LTS results in redefinition error #24

Closed mjeltsch closed 2 years ago

mjeltsch commented 2 years ago

Hello! Since I could not find any precompiled binaries, I tried to compile GenomeTester4 on Ubuntu 20.04 LTS (two different machines) with the following errors:

word-map.c:313:1: error: redefinition of ‘gt4_word_map_get_word’
  313 | gt4_word_map_get_word (const GT4WordMap *wmap, uint64_t idx)
      | ^~~~~~~~~~~~~~~~~~~~~
In file included from word-map.c:37:
word-map.h:90:1: note: previous definition of ‘gt4_word_map_get_word’ was here
   90 | gt4_word_map_get_word (const GT4WordMap *wmap, uint64_t idx)
      | ^~~~~~~~~~~~~~~~~~~~~
word-map.c:319:1: error: redefinition of ‘gt4_word_map_get_count’
  319 | gt4_word_map_get_count (const GT4WordMap *wmap, uint64_t idx)
      | ^~~~~~~~~~~~~~~~~~~~~~
In file included from word-map.c:37:
word-map.h:96:1: note: previous definition of ‘gt4_word_map_get_count’ was here
   96 | gt4_word_map_get_count (const GT4WordMap *wmap, uint64_t idx)
      | ^~~~~~~~~~~~~~~~~~~~~~
word-map.c:325:1: error: redefinition of ‘gt4_word_map_get_word_ptr’
  325 | gt4_word_map_get_word_ptr (const GT4WordMap *wmap, uint64_t idx)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from word-map.c:37:
word-map.h:102:1: note: previous definition of ‘gt4_word_map_get_word_ptr’ was here
  102 | gt4_word_map_get_word_ptr (const GT4WordMap *wmap, uint64_t idx)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:182: glistmaker] Error 1

Any ideas?

lauris71 commented 2 years ago

Newer gcc compilers are much more strict for standards and versions. Fixed compilation on Ubuntu 18, hopefully this will also fix it for 20