resinbeard / candor

linux sequencer-sampler for musical performance
GNU General Public License v3.0
6 stars 1 forks source link

/usr/bin/ld: /var/tmp/ccmk67QB.o:(.bss+0x5720): multiple definition of `loop_state'; /var/tmp/ccxthQpD.o:(.bss+0x11c8): first defined here #3

Open mxmilkiib opened 3 years ago

mxmilkiib commented 3 years ago

Trying to build but getting this;

...
libficus.c:1065:13: warning: passing argument 1 of ‘snprintf’ from incompatible pointer type [-Wincompatible-pointer-types]
 1065 |    snprintf(stdout, 100, "warning cannot connect input port %d (%s).\n", i, name) ;
      |             ^~~~~~
      |             |
      |             FILE *
In file included from libficus.c:18:
/usr/include/stdio.h:354:39: note: expected ‘char * restrict’ but argument is of type ‘FILE *’
  354 | extern int snprintf (char *__restrict __s, size_t __maxlen,
      |                      ~~~~~~~~~~~~~~~~~^~~
libficus.c: In function ‘ficus_clean’:
libficus.c:1131:10: warning: ‘return’ with a value, in function returning void
 1131 |   return 0;
      |          ^
libficus.c:1115:1: note: declared here
 1115 | ficus_clean()
      | ^~~~~~~~~~~
/usr/bin/ld: /var/tmp/ccmk67QB.o:(.bss+0x5720): multiple definition of `loop_state'; /var/tmp/ccxthQpD.o:(.bss+0x11c8): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:7: all] Error 1