cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c common.c -o common.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c encode.c -o encode.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c ieeefloat.c -o ieeefloat.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c toolame.c -o toolame.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c portableio.c -o portableio.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_n1.c -o psycho_n1.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_0.c -o psycho_0.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_1.c -o psycho_1.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_2.c -o psycho_2.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_3.c -o psycho_3.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c psycho_4.c -o psycho_4.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c fft.c -o fft.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c subband.c -o subband.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c audio_read.c -o audio_read.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c bitstream.c -o bitstream.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c mem.c -o mem.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c crc.c -o crc.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c tables.c -o tables.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c availbits.c -o availbits.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c ath.c -o ath.o cc -O2 -DNDEBUG -DINLINE=inline -march=x86-64 -pipe -Wall -DNEWENCODE -DNEWATAN -c encode_new.c -o encode_new.o toolame.c: In function ‘main’: toolame.c:99:7: warning: variable ‘win_que’ set but not used [-Wunused-but-set-variable] 99 | IN *win_que; | ^~~~~~~ In file included from toolame.c:21: toolame.c: At top level: encode_new.h:6:15: warning: inline function ‘mod’ declared but never defined 6 | INLINE double mod (double a); | ^~~ In file included from toolame.c:17: psycho_4.h:8:14: warning: inline function ‘psycho_4_sin’ declared but never defined 8 | INLINE FLOAT psycho_4_sin(FLOAT phi); | ^~~~~~~~~~~~ psycho_4.h:7:14: warning: inline function ‘psycho_4_cos’ declared but never defined 7 | INLINE FLOAT psycho_4_cos(FLOAT phi); | ^~~~~~~~~~~~ tables.c: In function ‘pick_table’: tables.c:21:14: warning: variable ‘lay’ set but not used [-Wunused-but-set-variable] 21 | int table, lay, ws, bsp, br_per_ch, sfrq; | ^~~ In file included from common.c:13: encode_new.h:6:15: warning: inline function ‘mod’ declared but never defined 6 | INLINE double mod (double a); | ^~~ psycho_3.c: In function ‘psycho_3’: psycho_3.c:75:7: warning: unused variable ‘sblimit’ [-Wunused-variable] 75 | int sblimit = frame->sblimit; | ^~~~~~~ psycho_3.c: At top level: psycho_3.c:68:15: warning: ‘dbtable’ is static but used in inline function ‘psycho_3_add_db’ which is not static 68 | return (b + dbtable[-idiff]); | ^~~~~~~ psycho_3.c:65:17: warning: ‘dbtable’ is static but used in inline function ‘psycho_3_add_db’ which is not static 65 | return (a + dbtable[idiff]); | ^~~~~~~ In file included from psycho_3.c:9: fft.h:9:14: warning: inline function ‘atan_table’ declared but never defined 9 | INLINE FLOAT atan_table(FLOAT y, FLOAT x); | ^~~~~~~~~~ encode_new.c: In function ‘main_bit_allocation_new’: encode_new.c:739:23: warning: variable ‘lay’ set but not used [-Wunused-but-set-variable] 739 | int mode, mode_ext, lay; | ^~~ encode_new.c:738:7: warning: variable ‘noisy_sbs’ set but not used [-Wunused-but-set-variable] 738 | int noisy_sbs; | ^~~~~~~~~ In file included from psycho_1.c:6: fft.h:9:14: warning: inline function ‘atan_table’ declared but never defined 9 | INLINE FLOAT atan_table(FLOAT y, FLOAT x); | ^~~~~~~~~~ fft.c:1208:10: warning: ‘atan_t’ is static but used in inline function ‘atan_table’ which is not static 1208 | return(atan_t[index]); | ^~~~~~ fft.c:1206:13: warning: ‘atan_t’ is static but used in inline function ‘atan_table’ which is not static 1206 | return( atan_t[index] - PI ); | ^~~~~~ fft.c:1203:14: warning: ‘atan_t’ is static but used in inline function ‘atan_table’ which is not static 1203 | return( -atan_t[index] ); | ^~~~~~ fft.c:1200:18: warning: ‘atan_t’ is static but used in inline function ‘atan_table’ which is not static 1200 | return( PI - atan_t[index] ); | ^~~~~~ encode.c: In function ‘main_bit_allocation’: encode.c:508:23: warning: variable ‘lay’ set but not used [-Wunused-but-set-variable] 508 | int mode, mode_ext, lay; | ^~~ encode.c:507:7: warning: variable ‘noisy_sbs’ set but not used [-Wunused-but-set-variable] 507 | int noisy_sbs; | ^~~~~~~~~ audio_read.c: In function ‘parse_input_file’: audio_read.c:264:7: warning: variable ‘wave_header_16bit’ set but not used [-Wunused-but-set-variable] 264 | int wave_header_16bit = -1; | ^~~~~~~~~~~~~~~~~ audio_read.c:262:7: warning: variable ‘wave_header_read’ set but not used [-Wunused-but-set-variable] 262 | int wave_header_read = 0; | ^~~~~~~~~~~~~~~~ psycho_4.c:120:17: warning: ‘sin_table’ is static but used in inline function ‘psycho_4_sin’ which is not static 120 | return(sign * sin_table[index]); | ^~~~~~~~~ psycho_4.c:119:24: warning: ‘sin_table’ is static but used in inline function ‘psycho_4_sin’ which is not static 119 | return(-1 * sign * sin_table[index]); | ^~~~~~~~~ psycho_4.c:106:17: warning: ‘cos_table’ is static but used in inline function ‘psycho_4_cos’ which is not static 106 | return(sign * cos_table[index]); | ^~~~~~~~~ In file included from psycho_4.c:9: fft.h:9:14: warning: inline function ‘atan_table’ declared but never defined 9 | INLINE FLOAT atan_table(FLOAT y, FLOAT x); | ^~~~~~~~~~ In file included from psycho_2.c:8: fft.h:9:14: warning: inline function ‘atan_table’ declared but never defined 9 | INLINE FLOAT atan_table(FLOAT y, FLOAT x); | ^~~~~~~~~~ cc -o toolame common.o encode.o ieeefloat.o toolame.o portableio.o psycho_n1.o psycho_0.o psycho_1.o psycho_2.o psycho_3.o psycho_4.o fft.o subband.o audio_read.o bitstream.o mem.o crc.o tables.o availbits.o ath.o encode_new.o -lm /usr/bin/ld: encode.o:(.bss+0x40): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: toolame.o:(.bss+0x60): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: psycho_0.o:(.bss+0x0): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: psycho_1.o:(.bss+0x1f60): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: psycho_2.o:(.bss+0x0): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: psycho_3.o:(.bss+0x1b40): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: psycho_4.o:(.bss+0x0): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: subband.o:(.bss+0x0): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: audio_read.o:(.bss+0x0): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: availbits.o:(.bss+0x40): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here /usr/bin/ld: encode_new.o:(.bss+0x60): multiple definition of `glopts'; common.o:(.bss+0x20): first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:75: toolame] Error 1 ==> ERROR:(B A failure occurred in build().(B  Aborting...(B