Tags: +patch

Hi Lucas,
thanks for reporting this bug. Fortunately, the fix is pretty
straight-forward :)

> Relevant part (hopefully):
> > gcc fatsort.o FAT_fs.o deviceio.o endianness.o sig.o entrylist.o errors.o 
> > options.o clusterchain.o sort.o misc.o natstrcmp.o stringlist.o regexlist.o 
> >  -o fatsort -Wl,-z,relro -Wl,-z,now -s
> > /usr/bin/ld: entrylist.o:./src/options.h:38: multiple definition of 
> > `OPT_LOCALE'; fatsort.o:./src/options.h:38: first defined here
> > /usr/bin/ld: options.o:./src/options.h:38: multiple definition of 
> > `OPT_LOCALE'; fatsort.o:./src/options.h:38: first defined here
> > /usr/bin/ld: sort.o:./src/options.h:38: multiple definition of 
> > `OPT_LOCALE'; fatsort.o:./src/options.h:38: first defined here
> > /usr/bin/ld: misc.o:./src/options.h:38: multiple definition of 
> > `OPT_LOCALE'; fatsort.o:./src/options.h:38: first defined here
> > collect2: error: ld returned 1 exit status

Cheers,
Alex

--
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁   Alex Muntada <al...@debian.org>
  ⢿⡄⠘⠷⠚⠋   Debian Developer 🍥 log.alexm.org
  ⠈⠳⣄⠀⠀⠀⠀

--- fatsort-1.6.2.605.orig/src/options.h
+++ fatsort-1.6.2.605/src/options.h
@@ -35,7 +35,7 @@ extern uint32_t OPT_VERSION, OPT_HELP, O
 extern struct sStringList *OPT_INCL_DIRS, *OPT_EXCL_DIRS, *OPT_INCL_DIRS_REC, *OPT_EXCL_DIRS_REC, *OPT_IGNORE_PREFIXES_LIST;
 extern struct sRegExList *OPT_REGEX_INCL, *OPT_REGEX_EXCL;
 
-char *OPT_LOCALE;
+extern char *OPT_LOCALE;
 
 // parses command line options
 int32_t parse_options(int argc, char *argv[]);

Attachment: signature.asc
Description: PGP signature

Reply via email to