Build of mp3gain with android toolchain

The build took 00h 00m 57s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
8,700 ansic
49 makefile
8,749 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

To avoid scrolling, you may jump to the last line of the invocation of makepkg that was used to build this package.

Removed vanilla repositories from pacman.conf and added:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

Copied permanent toolchain into container-local sysroot
# /toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
# /toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
# /toolchain_root/sysroot --> /sysroot/sysroot
# /toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
# /toolchain_root/lib --> /sysroot/lib
# /toolchain_root/SOURCES --> /sysroot/SOURCES
# /toolchain_root/lib64 --> /sysroot/lib64
# /toolchain_root/share --> /sysroot/share
# /toolchain_root/bin --> /sysroot/bin
# /toolchain_root/COPYING --> /sysroot/COPYING
# /toolchain_root/COPYING3 --> /sysroot/COPYING3
# /toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
# /toolchain_root/include --> /sysroot/include
# /toolchain_root/libexec --> /sysroot/libexec

CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
# ==> Making package: mp3gain 1.5.2-3 (Tue Apr 4 20:22:03 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -Wall -O2 -DHAVE_MEMCPY -c -o mp3gain.o mp3gain.c
# gcc -Wall -O2 -DHAVE_MEMCPY -c -o apetag.o apetag.c
# gcc -Wall -O2 -DHAVE_MEMCPY -c -o id3tag.o id3tag.c
# gcc -Wall -O2 -DHAVE_MEMCPY -c -o gain_analysis.o gain_analysis.c
# cc1: error: no include path in which to search for stdc-predef.h
# mp3gain.c:48:19: error: no include path in which to search for stdio.h
# #include
# ^
# mp3gain.c:49:20: error: no include path in which to search for stdlib.h
# #include
# ^
# mp3gain.c:50:18: error: no include path in which to search for math.h
# #include
# ^
# In file included from mp3gain.c:51:0:
# apetag.h:4:19: error: no include path in which to search for stdio.h
# #include
# ^
# mp3gain.c:62:19: error: no include path in which to search for utime.h
# #include
# ^
# mp3gain.c:70:23: error: no include path in which to search for sys/stat.h
# # include
# ^
# mp3gain.c:71:20: error: no include path in which to search for utime.h
# # include
# ^
# mp3gain.c:72:20: error: no include path in which to search for errno.h
# # include
# ^
# mp3gain.c:83:19: error: no include path in which to search for fcntl.h
# #include
# ^
# mp3gain.c:84:20: error: no include path in which to search for string.h
# #include
# ^
# In file included from mpglibDBL/common.h:23:0,
# from mpglibDBL/interface.h:22,
# from mp3gain.c:92:
# mpglibDBL/mpg123.h:4:26: error: no include path in which to search for stdio.h
# #include
# ^
# mpglibDBL/mpg123.h:21:27: error: no include path in which to search for signal.h
# #include
# ^
# mpglibDBL/mpg123.h:27:18: error: no include path in which to search for math.h
# #include
# ^
# In file included from mpglibDBL/encoder.h:126:0,
# from mpglibDBL/mpglib.h:1,
# from mpglibDBL/common.h:24,
# from mpglibDBL/interface.h:22,
# from mp3gain.c:92:
# mpglibDBL/machine.h:25:19: error: no include path in which to search for stdio.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# mpglibDBL/machine.h:46:19: error: no include path in which to search for math.h
# # include
# ^
# mpglibDBL/machine.h:49:19: error: no include path in which to search for ctype.h
# #include
# ^
# mpglibDBL/machine.h:62:24: error: no include path in which to search for sys/types.h
# # include
# ^
# mpglibDBL/machine.h:63:23: error: no include path in which to search for sys/stat.h
# # include
# ^
# In file included from apetag.c:1:0:
# apetag.h:4:19: error: no include path in which to search for stdio.h
# #include
# ^
# In file included from mpglibDBL/encoder.h:127:0,
# from mpglibDBL/mpglib.h:1,
# from mpglibDBL/common.h:24,
# from mpglibDBL/interface.h:22,
# from mp3gain.c:92:
# mpglibDBL/lame.h:26:19: error: no include path in which to search for stdio.h
# #include
# ^
# mpglibDBL/lame.h:27:20: error: no include path in which to search for stdarg.h
# #include
# ^
# In file included from mp3gain.h:44:0,
# from apetag.c:2:
# rg_error.h:36:20: error: no include path in which to search for string.h
# #include
# ^
# rg_error.h:58:19: error: no include path in which to search for stdio.h
# #include
# ^
# mpglibDBL/lame.h:199:54: error: unknown type name 'va_list'
# void (*func)(const char *, va_list));
# ^
# mpglibDBL/lame.h:201:54: error: unknown type name 'va_list'
# void (*func)(const char *, va_list));
# ^
# apetag.c:4:20: error: no include path in which to search for stdlib.h
# #include
# ^
# mpglibDBL/lame.h:203:54: error: unknown type name 'va_list'
# void (*func)(const char *, va_list));
# ^
# apetag.c:5:19: error: no include path in which to search for stdio.h
# #include
# ^
# apetag.c:6:20: error: no include path in which to search for memory.h
# #include
# ^
# apetag.c:7:20: error: no include path in which to search for string.h
# #include
# ^
# apetag.c:8:19: error: no include path in which to search for fcntl.h
# #include
# ^
# apetag.c:12:20: error: no include path in which to search for unistd.h
# #include
# ^
# apetag.c:19:21: error: unknown type name 'FILE'
# int ReadMP3ID3v1Tag(FILE *fi, unsigned char **tagbuff, long *tag_offset) {
# ^
# apetag.c:71:34: error: unknown type name 'FILE'
# static int ReadMP3Lyrics3v2Tag ( FILE *fp, unsigned char **tagbuff, unsigned long *tagSize, unsigned char **id3tagbuff, long *tag_offset )
# ^
# apetag.c:142:21: error: unknown type name 'FILE'
# int ReadMP3APETag ( FILE *fp, struct MP3GainTagInfo *info, struct APETagStruct **apeTag, long *tag_offset )
# ^
# mpglibDBL/lame.h:660:50: error: unknown type name 'FILE'
# void CDECL lame_mp3_tags_fid(lame_global_flags *,FILE* fid);
# ^
# apetag.c: In function 'truncate_file':
# apetag.c:332:2: warning: implicit declaration of function 'open' [-Wimplicit-function-declaration]
# fd = open(filename, O_RDWR);
# ^
# apetag.c:332:22: error: 'O_RDWR' undeclared (first use in this function)
# fd = open(filename, O_RDWR);
# ^
# apetag.c:332:22: note: each undeclared identifier is reported only once for each function it appears in
# apetag.c:335:2: warning: implicit declaration of function 'ftruncate' [-Wimplicit-function-declaration]
# if (ftruncate(fd, truncLength)) {
# ^
# apetag.c:336:3: warning: implicit declaration of function 'close' [-Wimplicit-function-declaration]
# close(fd);
# ^
# In file included from mpglibDBL/interface.h:23:0,
# from mp3gain.c:92:
# mpglibDBL/../gain_analysis.h:31:20: error: no include path in which to search for stddef.h
# #include
# ^
# apetag.c: In function 'ReadMP3GainAPETag':
# mpglibDBL/../gain_analysis.h:47:87: error: unknown type name 'size_t'
# int AnalyzeSamples ( const Float_t* left_samples, const Float_t* right_samples, size_t num_samples, int num_channels );
# ^
# apetag.c:357:5: error: unknown type name 'FILE'
# FILE *fi;
# ^
# apetag.c:360:5: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# fi = fopen(filename, "rb");
# ^
# apetag.c:360:8: warning: assignment makes pointer from integer without a cast [enabled by default]
# fi = fopen(filename, "rb");
# ^
# In file included from mp3gain.h:44:0,
# from mp3gain.c:97:
# rg_error.h:36:20: error: no include path in which to search for string.h
# #include
# ^
# rg_error.h:58:19: error: no include path in which to search for stdio.h
# #include
# ^
# apetag.c:361:15: error: 'NULL' undeclared (first use in this function)
# if (fi == NULL)
# ^
# apetag.c:364:2: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
# fseek(fi, 0, SEEK_END);
# ^
# apetag.c:364:15: error: 'SEEK_END' undeclared (first use in this function)
# fseek(fi, 0, SEEK_END);
# ^
# apetag.c:365:5: warning: implicit declaration of function 'ftell' [-Wimplicit-function-declaration]
# tag_offset = ftell(fi);
# ^
# apetag.c:371:3: warning: implicit declaration of function 'ReadMP3APETag' [-Wimplicit-function-declaration]
# ReadMP3APETag ( fi, info, &(fileTags->apeTag), &tag_offset );
# ^
# mp3gain.c:158:1: error: unknown type name 'FILE'
# FILE *inf = NULL;
# ^
# apetag.c:372:9: warning: implicit declaration of function 'ReadMP3Lyrics3v2Tag' [-Wimplicit-function-declaration]
# ReadMP3Lyrics3v2Tag ( fi, &(fileTags->lyrics3tag), &(fileTags->lyrics3TagSize), &(fileTags->id31tag), &tag_offset );
# ^
# mp3gain.c:158:13: error: 'NULL' undeclared here (not in a function)
# FILE *inf = NULL;
# ^
# mp3gain.c:160:1: error: unknown type name 'FILE'
# FILE *outf;
# ^
# apetag.c:373:3: warning: implicit declaration of function 'ReadMP3ID3v1Tag' [-Wimplicit-function-declaration]
# ReadMP3ID3v1Tag ( fi, &(fileTags->id31tag), &tag_offset );
# ^
# apetag.c:378:5: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(fi);
# ^
# apetag.c: In function 'WriteMP3GainAPETag':
# apetag.c:391:2: error: unknown type name 'FILE'
# FILE *outputFile;
# ^
# mp3gain.c: In function 'flushWriteBuff':
# mp3gain.c:186:3: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
# fseek(inf,writebuffer[i].fileposition,SEEK_SET);
# ^
# mp3gain.c:186:41: error: 'SEEK_SET' undeclared (first use in this function)
# fseek(inf,writebuffer[i].fileposition,SEEK_SET);
# ^
# mp3gain.c:186:41: note: each undeclared identifier is reported only once for each function it appears in
# mp3gain.c:187:3: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
# fwrite(writebuffer[i].val,1,2,inf);
# ^
# mp3gain.c:187:3: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# apetag.c:454:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# newFieldData = (char *)malloc(newTagLength - (sizeof(newFooter) + sizeof(newHeader)));
# ^
# mp3gain.c: In function 'addWriteBuff':
# mp3gain.c:198:21: error: 'SEEK_SET' undeclared (first use in this function)
# fseek(inf,filepos,SEEK_SET);
# ^
# apetag.c:454:25: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# newFieldData = (char *)malloc(newTagLength - (sizeof(newFooter) + sizeof(newHeader)));
# ^
# mp3gain.c: In function 'fillBuffer':
# apetag.c:465:3: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(&newFooter,&(fileTags->apeTag->footer),sizeof(newFooter));
# ^
# apetag.c:465:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# mp3gain.c:222:7: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if (fwrite(buffer,1,inbuffer-savelastbytes,outf) != (size_t)(inbuffer-savelastbytes))
# ^
# mp3gain.c:222:56: error: 'size_t' undeclared (first use in this function)
# if (fwrite(buffer,1,inbuffer-savelastbytes,outf) != (size_t)(inbuffer-savelastbytes))
# ^
# mp3gain.c:227:3: warning: implicit declaration of function 'memmove' [-Wimplicit-function-declaration]
# memmove((void*)buffer,(const void*)(buffer+inbuffer-savelastbytes),savelastbytes);
# ^
# mp3gain.c:227:3: warning: incompatible implicit declaration of built-in function 'memmove' [enabled by default]
# apetag.c:479:4: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(newHeader.Reserved,0,sizeof(newHeader.Reserved));
# ^
# apetag.c:479:4: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# mp3gain.c:232:3: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
# i = (unsigned long)fread(buffer,1,skipbuf,inf);
# ^
# apetag.c:490:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(newHeader.ID,"APETAGEX",sizeof(newHeader.ID));
# ^
# mp3gain.c:237:8: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if (fwrite(buffer,1,skipbuf,outf) != skipbuf)
# ^
# apetag.c:495:3: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(newHeader.Reserved,0,sizeof(newHeader.Reserved));
# ^
# apetag.c:511:3: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(mp3gainTagData, "MP3GAIN_MINMAX");
# ^
# apetag.c:511:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# apetag.c:513:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(mp3gainTagData,"%03d", info->minGain); /* write directly to tag buffer, because we'll replace the trailing null char anyhow */
# ^
# apetag.c:513:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# apetag.c:517:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(mp3gainTagData, valueString, 3); /* DON'T write trailing null char */
# ^
# apetag.c:526:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(mp3gainTagData, "MP3GAIN_ALBUM_MINMAX");
# ^
# mp3gain.c: In function 'passError':
# apetag.c:528:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(mp3gainTagData,"%03d", info->albumMinGain); /* write directly to tag buffer, because we'll replace the trailing null char anyhow */
# ^
# mp3gain.c:334:5: error: unknown type name 'size_t'
# size_t totalStrLen = 0;
# ^
# mp3gain.c:336:5: error: unknown type name 'va_list'
# va_list marker;
# ^
# apetag.c:532:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(mp3gainTagData, valueString, 3); /* DON'T write trailing null char */
# ^
# mp3gain.c:338:5: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
# va_start(marker, numStrings);
# ^
# mp3gain.c:340:9: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# totalStrLen += strlen(va_arg(marker, const char *));
# ^
# apetag.c:541:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(mp3gainTagData, "MP3GAIN_UNDO");
# ^
# mp3gain.c:340:24: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# totalStrLen += strlen(va_arg(marker, const char *));
# ^
# apetag.c:543:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(mp3gainTagData,"%+04d", info->undoLeft); /* write directly to tag buffer, because we'll replace the trailing null char anyhow */
# ^
# mp3gain.c:340:9: warning: implicit declaration of function 'va_arg' [-Wimplicit-function-declaration]
# totalStrLen += strlen(va_arg(marker, const char *));
# ^
# mp3gain.c:340:46: error: expected expression before 'const'
# totalStrLen += strlen(va_arg(marker, const char *));
# ^
# mp3gain.c:342:5: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
# va_end(marker);
# ^
# apetag.c:562:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(mp3gainTagData, "REPLAYGAIN_TRACK_GAIN");
# ^
# mp3gain.c:344:5: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# errstr = (char *)malloc(totalStrLen + 3);
# ^
# apetag.c:564:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(valueString,"%-+9.6f", info->trackGain);
# ^
# mp3gain.c:344:22: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# errstr = (char *)malloc(totalStrLen + 3);
# ^
# apetag.c:565:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(mp3gainTagData, valueString, 9);
# ^
# mp3gain.c:349:9: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
# strcat(errstr,va_arg(marker, const char *));
# ^
# mp3gain.c:349:9: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# mp3gain.c:349:38: error: expected expression before 'const'
# strcat(errstr,va_arg(marker, const char *));
# ^
# apetag.c:576:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(mp3gainTagData, "REPLAYGAIN_TRACK_PEAK");
# ^
# mp3gain.c:354:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(errstr);
# ^
# mp3gain.c:354:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# apetag.c:578:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(valueString,"%-8.6f", info->trackPeak);
# ^
# apetag.c:579:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(mp3gainTagData, valueString, 8);
# ^
# apetag.c:588:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(mp3gainTagData, "REPLAYGAIN_ALBUM_GAIN");
# ^
# apetag.c:590:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(valueString,"%-+9.6f", info->albumGain);
# ^
# apetag.c:591:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(mp3gainTagData, valueString, 9);
# ^
# mp3gain.c: In function 'frameSearch':
# mp3gain.c:420:5: warning: implicit declaration of function 'floor' [-Wimplicit-function-declaration]
# arrbytesinframe[i] = (long)(floor(floor((bitbase*bitrate[tempmpegver][i])/frequency[tempmpegver][startfreq >> 2]) / 8.0));
# ^
# apetag.c:602:3: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(mp3gainTagData, "REPLAYGAIN_ALBUM_PEAK");
# ^
# mp3gain.c:420:33: warning: incompatible implicit declaration of built-in function 'floor' [enabled by default]
# arrbytesinframe[i] = (long)(floor(floor((bitbase*bitrate[tempmpegver][i])/frequency[tempmpegver][startfreq >> 2]) / 8.0));
# ^
# apetag.c:604:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(valueString,"%-8.6f", info->albumPeak);
# ^
# apetag.c:605:3: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(mp3gainTagData, valueString, 8);
# ^
# apetag.c:610:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# outputFile = fopen(filename,"r+b");
# ^
# apetag.c:611:20: error: 'NULL' undeclared (first use in this function)
# if (outputFile == NULL) {
# ^
# apetag.c:616:39: error: 'SEEK_SET' undeclared (first use in this function)
# fseek(outputFile,fileTags->tagOffset,SEEK_SET);
# ^
# apetag.c:618:3: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
# fwrite(&newHeader,1,sizeof(newHeader),outputFile);
# ^
# apetag.c:618:3: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# mp3gain.c: In function 'getSizeOfFile':
# apetag.c:623:3: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# fwrite(fileTags->lyrics3tag, 1, fileTags->lyrics3TagSize, outputFile);
# ^
# mp3gain.c:495:5: error: unknown type name 'FILE'
# FILE *file;
# ^
# apetag.c:626:3: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# fwrite(fileTags->id31tag, 1, 128, outputFile); //so only write id3 tag alone if
# ^
# mp3gain.c:497:5: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# file = fopen(filename, "rb");
# ^
# apetag.c:634:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(newFieldData);
# ^
# apetag.c:634:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# mp3gain.c:497:10: warning: assignment makes pointer from integer without a cast [enabled by default]
# file = fopen(filename, "rb");
# ^
# apetag.c: In function 'RemoveMP3GainAPETag':
# mp3gain.c:499:24: error: 'SEEK_END' undeclared (first use in this function)
# fseek(file, 0, SEEK_END);
# ^
# apetag.c:656:23: error: 'NULL' undeclared (first use in this function)
# fileTags.apeTag = NULL;
# ^
# mp3gain.c:500:9: warning: implicit declaration of function 'ftell' [-Wimplicit-function-declaration]
# size = ftell(file);
# ^
# mp3gain.c:501:9: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(file);
# ^
# mp3gain.c: In function 'deleteFile':
# mp3gain.c:510:5: warning: implicit declaration of function 'remove' [-Wimplicit-function-declaration]
# return remove(filename);
# ^
# apetag.c: At top level:
# apetag.c:50:12: warning: 'Lyrics3GetNumber6' defined but not used [-Wunused-function]
# static int Lyrics3GetNumber6 ( const unsigned char* string )
# ^
# mp3gain.c: In function 'moveFile':
# cc1: error: no include path in which to search for stdc-predef.h
# mp3gain.c:515:5: warning: implicit declaration of function 'rename' [-Wimplicit-function-declaration]
# return rename(currentfilename, newfilename);
# ^
# mp3gain.c: In function 'fileTime':
# mp3gain.c:532:24: error: storage size of 'savedAttributes' isn't known
# static struct stat savedAttributes;
# ^
# id3tag.c:44:20: error: no include path in which to search for stdlib.h
# #include
# ^
# id3tag.c:45:19: error: no include path in which to search for stdio.h
# #include
# ^
# id3tag.c:46:20: error: no include path in which to search for stdarg.h
# #include
# ^
# id3tag.c:47:20: error: no include path in which to search for string.h
# #include
# ^
# mp3gain.c:551:9: warning: implicit declaration of function 'stat' [-Wimplicit-function-declaration]
# timeSaved = (stat(filename, &savedAttributes) == 0);
# ^
# In file included from id3tag.c:48:0:
# apetag.h:4:19: error: no include path in which to search for stdio.h
# #include
# ^
# mp3gain.c:569:19: error: storage size of 'setTime' isn't known
# struct utimbuf setTime;
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# mp3gain.c:575:4: warning: implicit declaration of function 'utime' [-Wimplicit-function-declaration]
# utime(filename, &setTime);
# ^
# mp3gain.c:569:19: warning: unused variable 'setTime' [-Wunused-variable]
# struct utimbuf setTime;
# ^
# gain_analysis.c:91:19: error: no include path in which to search for stdio.h
# #include
# ^
# mp3gain.c:532:24: warning: unused variable 'savedAttributes' [-Wunused-variable]
# static struct stat savedAttributes;
# ^
# gain_analysis.c:92:20: error: no include path in which to search for stdlib.h
# #include
# ^
# In file included from mp3gain.h:44:0,
# from id3tag.c:50:
# rg_error.h:36:20: error: no include path in which to search for string.h
# #include
# ^
# gain_analysis.c:93:20: error: no include path in which to search for string.h
# #include
# ^
# mp3gain.c: In function 'reportPercentWritten':
# rg_error.h:58:19: error: no include path in which to search for stdio.h
# #include
# ^
# gain_analysis.c:94:18: error: no include path in which to search for math.h
# #include
# ^
# mp3gain.c:586:5: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr," \r %2lu%% of %lu bytes written\r"
# ^
# In file included from gain_analysis.c:96:0:
# gain_analysis.h:31:20: error: no include path in which to search for stddef.h
# #include
# ^
# mp3gain.c:586:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# mp3gain.c:586:13: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr," \r %2lu%% of %lu bytes written\r"
# ^
# gain_analysis.h:47:87: error: unknown type name 'size_t'
# int AnalyzeSamples ( const Float_t* left_samples, const Float_t* right_samples, size_t num_samples, int num_channels );
# ^
# mp3gain.c:588:5: warning: implicit declaration of function 'fflush' [-Wimplicit-function-declaration]
# fflush(stderr);
# ^
# mp3gain.c: In function 'reportPercentAnalyzed':
# gain_analysis.c:114:34: error: 'size_t' undeclared here (not in a function)
# #define MAX_SAMPLES_PER_WINDOW (size_t) (MAX_SAMP_FREQ * RMS_WINDOW_TIME + 1) // max. Samples per Time slice
# ^
# gain_analysis.c:119:29: note: in expansion of macro 'MAX_SAMPLES_PER_WINDOW'
# Float_t lstepbuf [MAX_SAMPLES_PER_WINDOW + MAX_ORDER];
# ^
# mp3gain.c:608:6: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(fileDivFiles,"[%d/%d]",numFiles,totFiles);
# ^
# mp3gain.c:608:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# mp3gain.c:610:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr," \r%s %2lu%% of %lu bytes analyzed\r"
# ^
# mp3gain.c:610:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr," \r%s %2lu%% of %lu bytes analyzed\r"
# ^
# mp3gain.c: In function 'changeGain':
# mp3gain.c:738:11: error: 'stderr' undeclared (first use in this function)
# fflush(stderr);
# ^
# id3tag.c: In function 'id3_release_frames':
# id3tag.c:227:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(tframe->data);
# ^
# id3tag.c:227:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# mp3gain.c:739:11: error: 'stdout' undeclared (first use in this function)
# fflush(stdout);
# ^
# id3tag.c: In function 'id3_make_frame':
# id3tag.c:246:2: error: unknown type name 'va_list'
# va_list ap;
# ^
# mp3gain.c:740:23: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# outlength = (long)strlen(filename);
# ^
# id3tag.c:252:2: warning: implicit declaration of function 'va_start' [-Wimplicit-function-declaration]
# va_start(ap, format);
# ^
# mp3gain.c:741:27: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# outfilename = (char *)malloc(outlength+5);
# ^
# id3tag.c:257:5: warning: implicit declaration of function 'va_arg' [-Wimplicit-function-declaration]
# s = va_arg(ap, const char *);
# ^
# make: *** [: apetag.o] Error 1
# make: *** Waiting for unfinished jobs....
# id3tag.c:257:20: error: expected expression before 'const'
# s = va_arg(ap, const char *);
# ^
# mp3gain.c:742:4: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(outfilename,filename);
# ^
# mp3gain.c:742:4: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# id3tag.c:258:5: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# k += strlen(s);
# ^
# id3tag.c:258:10: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# k += strlen(s);
# ^
# id3tag.c:261:20: error: expected expression before 'unsigned'
# i = va_arg(ap, unsigned int);
# ^
# id3tag.c:265:20: error: expected expression before 'unsigned'
# i = va_arg(ap, unsigned int);
# ^
# mp3gain.c:746:6: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat(outfilename,".TMP");
# ^
# id3tag.c:269:5: warning: implicit declaration of function 'va_end' [-Wimplicit-function-declaration]
# va_end(ap);
# ^
# id3tag.c:270:12: error: 'NULL' undeclared (first use in this function)
# return NULL;
# ^
# id3tag.c:270:12: note: each undeclared identifier is reported only once for each function it appears in
# id3tag.c:275:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
# frame = malloc(sizeof(struct ID3v2FrameStruct));
# ^
# id3tag.c:275:10: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# frame = malloc(sizeof(struct ID3v2FrameStruct));
# ^
# mp3gain.c:754:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# inf = fopen(filename,"r+b");
# ^
# id3tag.c:277:2: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
# strncpy(frame->frameid, frameid, 4);
# ^
# id3tag.c:277:2: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# mp3gain.c:757:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# outf = fopen(outfilename, "wb");
# ^
# id3tag.c:288:20: error: expected expression before 'const'
# s = va_arg(ap, const char *);
# ^
# id3tag.c:289:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# j = strlen(s);
# ^
# mp3gain.c:770:11: warning: assignment makes pointer from integer without a cast [enabled by default]
# inf = fopen(filename,"r+b");
# ^
# id3tag.c:290:5: warning: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration]
# memcpy(frame->data + k, s, j);
# ^
# id3tag.c:290:5: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# id3tag.c:294:20: error: expected expression before 'unsigned'
# i = va_arg(ap, unsigned int);
# ^
# id3tag.c:299:20: error: expected expression before 'unsigned'
# i = va_arg(ap, unsigned int);
# ^
# id3tag.c: In function 'id3_decode_rva2_frame':
# id3tag.c:328:2: warning: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
# if (memcmp(frame->frameid, "RVA2", 4) != 0)
# ^
# gain_analysis.c:190:52: error: expected declaration specifiers or '...' before 'size_t'
# filterYule (const Float_t* input, Float_t* output, size_t nSamples, const Float_t* kernel)
# ^
# id3tag.c: In function 'id3_decode_mp3gain_frame':
# mp3gain.c:985:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr," \r");
# ^
# id3tag.c:449:2: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(buf, frame->data + p, k);
# ^
# gain_analysis.c:222:54: error: expected declaration specifiers or '...' before 'size_t'
# filterButter (const Float_t* input, Float_t* output, size_t nSamples, const Float_t* kernel)
# ^
# id3tag.c:454:2: warning: implicit declaration of function 'strcasecmp' [-Wimplicit-function-declaration]
# if (strcasecmp(buf, "MP3GAIN_UNDO") == 0) {
# ^
# mp3gain.c:1000:18: error: 'SEEK_END' undeclared (first use in this function)
# fseek(outf, 0, SEEK_END);
# ^
# id3tag.c:456:3: warning: implicit declaration of function 'sscanf' [-Wimplicit-function-declaration]
# if (sscanf(buf + strlen(buf) + 1, "%d,%d,%c", &f1, &f2, &f3) == 3 &&
# ^
# gain_analysis.c: In function 'ResetSampleFrequency':
# id3tag.c:456:7: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
# if (sscanf(buf + strlen(buf) + 1, "%d,%d,%c", &f1, &f2, &f3) == 3 &&
# ^
# gain_analysis.c:264:5: warning: implicit declaration of function 'ceil' [-Wimplicit-function-declaration]
# sampleWindow = (int) ceil (samplefreq * RMS_WINDOW_TIME);
# ^
# gain_analysis.c:264:26: warning: incompatible implicit declaration of built-in function 'ceil' [enabled by default]
# sampleWindow = (int) ceil (samplefreq * RMS_WINDOW_TIME);
# ^
# id3tag.c:456:20: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (sscanf(buf + strlen(buf) + 1, "%d,%d,%c", &f1, &f2, &f3) == 3 &&
# ^
# gain_analysis.c:270:5: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset ( A, 0, sizeof(A) );
# ^
# gain_analysis.c:270:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# id3tag.c:457:15: error: 'NULL' undeclared (first use in this function)
# info != NULL) {
# ^
# mp3gain.c:1070:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(outfilename);
# ^
# id3tag.c:466:7: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
# if (sscanf(buf + strlen(buf) + 1, "%d,%d", &f1, &f2) == 2 &&
# ^
# gain_analysis.c: In function 'InitGainAnalysis':
# mp3gain.c:696:7: warning: variable 'freqidx' set but not used [-Wunused-but-set-variable]
# int freqidx;
# ^
# gain_analysis.c:289:5: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset ( B, 0, sizeof(B) );
# ^
# id3tag.c:466:20: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (sscanf(buf + strlen(buf) + 1, "%d,%d", &f1, &f2) == 2 &&
# ^
# gain_analysis.c: At top level:
# gain_analysis.c:301:77: error: expected declaration specifiers or '...' before 'size_t'
# AnalyzeSamples ( const Float_t* left_samples, const Float_t* right_samples, size_t num_samples, int num_channels )
# ^
# id3tag.c:475:7: warning: incompatible implicit declaration of built-in function 'sscanf' [enabled by default]
# if (sscanf(buf + strlen(buf) + 1, "%d,%d", &f1, &f2) == 2 &&
# ^
# mp3gain.c: In function 'changeGainAndTag':
# id3tag.c:475:20: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (sscanf(buf + strlen(buf) + 1, "%d,%d", &f1, &f2) == 2 &&
# ^
# id3tag.c: At top level:
# mp3gain.c:1158:6: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
# tag->trackPeak *= pow(2.0,(double)(leftgainchange)/4.0);
# ^
# id3tag.c:494:29: error: unknown type name 'FILE'
# static int id3_parse_v2_tag(FILE *f, struct ID3v2TagStruct *tag)
# ^
# mp3gain.c:1158:24: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# tag->trackPeak *= pow(2.0,(double)(leftgainchange)/4.0);
# ^
# gain_analysis.c:431:34: error: expected declaration specifiers or '...' before 'size_t'
# analyzeResult ( Uint32_t* Array, size_t len )
# ^
# gain_analysis.c: In function 'GetTitleGain':
# gain_analysis.c:459:5: warning: implicit declaration of function 'analyzeResult' [-Wimplicit-function-declaration]
# retval = analyzeResult ( A, sizeof(A)/sizeof(*A) );
# ^
# mp3gain.c:1164:24: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# tag->albumPeak *= pow(2.0,(double)(leftgainchange)/4.0);
# ^
# id3tag.c:759:26: error: unknown type name 'FILE'
# static int id3_write_tag(FILE *f, struct ID3v2TagStruct *tag)
# ^
# gain_analysis.c: At top level:
# gain_analysis.c:135:18: warning: 'A' defined but not used [-Wunused-variable]
# static Uint32_t A [(size_t)(STEPS_per_dB * MAX_dB)];
# ^
# gain_analysis.c:136:18: warning: 'B' defined but not used [-Wunused-variable]
# static Uint32_t B [(size_t)(STEPS_per_dB * MAX_dB)];
# ^
# mp3gain.c: In function 'queryUserForClipping':
# id3tag.c:823:29: error: unknown type name 'FILE'
# static int id3_parse_v1_tag(FILE *f, struct ID3v2TagStruct *tag)
# ^
# mp3gain.c:1208:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"\nWARNING: %s may clip with mp3 gain change %d\n",argv_mainloop,intGainChange);
# ^
# mp3gain.c:1208:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"\nWARNING: %s may clip with mp3 gain change %d\n",argv_mainloop,intGainChange);
# ^
# id3tag.c:912:27: error: unknown type name 'FILE'
# static int id3_search_tag(FILE *f, struct ID3v2TagStruct *tag)
# ^
# mp3gain.c:1210:9: error: 'stdout' undeclared (first use in this function)
# fflush(stdout);
# ^
# gain_analysis.c: In function 'GetAlbumGain':
# gain_analysis.c:479:1: warning: control reaches end of non-void function [-Wreturn-type]
# }
# ^
# id3tag.c:1019:26: error: unknown type name 'FILE'
# static int id3_copy_data(FILE *inf, FILE *outf, long offset, long count)
# ^
# mp3gain.c:1215:3: warning: implicit declaration of function 'getchar' [-Wimplicit-function-declaration]
# ch = getchar();
# ^
# id3tag.c:1019:37: error: unknown type name 'FILE'
# static int id3_copy_data(FILE *inf, FILE *outf, long offset, long count)
# ^
# id3tag.c: In function 'ReadMP3GainID3Tag':
# mp3gain.c:1216:3: warning: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
# ch = toupper(ch);
# ^
# id3tag.c:1058:2: error: unknown type name 'FILE'
# FILE *f;
# ^
# mp3gain.c: In function 'showVersion':
# id3tag.c:1063:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# f = fopen(filename, "rb");
# ^
# mp3gain.c:1229:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"%s version %s\n",progname,MP3GAIN_VERSION);
# ^
# id3tag.c:1063:4: warning: assignment makes pointer from integer without a cast [enabled by default]
# f = fopen(filename, "rb");
# ^
# mp3gain.c:1229:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"%s version %s\n",progname,MP3GAIN_VERSION);
# ^
# mp3gain.c: In function 'wrapExplanation':
# id3tag.c:1064:11: error: 'NULL' undeclared (first use in this function)
# if (f == NULL) {
# ^
# mp3gain.c:1236:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Here's the problem:\n");
# ^
# id3tag.c:1069:2: warning: implicit declaration of function 'id3_search_tag' [-Wimplicit-function-declaration]
# ret = id3_search_tag(f, &tag);
# ^
# mp3gain.c:1236:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"Here's the problem:\n");
# ^
# id3tag.c:1070:2: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(f);
# ^
# id3tag.c: In function 'WriteMP3GainID3Tag':
# make: *** [: gain_analysis.o] Error 1
# id3tag.c:1107:2: error: unknown type name 'FILE'
# FILE *f, *outf;
# ^
# mp3gain.c:1272:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(0);
# ^
# mp3gain.c:1272:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# mp3gain.c: In function 'errUsage':
# id3tag.c:1115:4: warning: assignment makes pointer from integer without a cast [enabled by default]
# f = fopen(filename, "rb");
# ^
# mp3gain.c:1281:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"copyright(c) 2001-2009 by Glen Sawyer\n");
# ^
# id3tag.c:1116:11: error: 'NULL' undeclared (first use in this function)
# if (f == NULL) {
# ^
# mp3gain.c:1281:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"copyright(c) 2001-2009 by Glen Sawyer\n");
# ^
# mp3gain.c:1292:12: error: 'stdout' undeclared (first use in this function)
# fclose(stdout);
# ^
# id3tag.c:1155:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(frame->data);
# ^
# mp3gain.c:1294:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# mp3gain.c: In function 'fullUsage':
# id3tag.c:1179:3: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(sbuf, "%03d,%03d", info->minGain, info->maxGain);
# ^
# id3tag.c:1179:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# mp3gain.c:1302:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"copyright(c) 2001-2009 by Glen Sawyer\n");
# ^
# mp3gain.c:1302:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"copyright(c) 2001-2009 by Glen Sawyer\n");
# ^
# id3tag.c:1186:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(sbuf, "%03d,%03d", info->albumMinGain, info->albumMaxGain);
# ^
# id3tag.c:1193:3: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(sbuf, "%+04d,%+04d,%c", info->undoLeft, info->undoRight, info->undoWrap ? 'W' : 'N');
# ^
# id3tag.c:1207:16: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# tmpfilename = malloc(strlen(filename) + 5);
# ^
# mp3gain.c:1359:16: error: 'stdout' undeclared (first use in this function)
# fclose(stdout);
# ^
# id3tag.c:1207:23: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# tmpfilename = malloc(strlen(filename) + 5);
# ^
# mp3gain.c:1361:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# id3tag.c:1208:2: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(tmpfilename, filename);
# ^
# mp3gain.c: In function 'dumpTaginfo':
# id3tag.c:1208:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# mp3gain.c:1399:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "haveAlbumGain %d albumGain %f\n",info->haveAlbumGain, info->albumGain);
# ^
# id3tag.c:1209:2: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
# strcat(tmpfilename, ".TMP");
# ^
# id3tag.c:1209:2: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# mp3gain.c:1399:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "haveAlbumGain %d albumGain %f\n",info->haveAlbumGain, info->albumGain);
# ^
# id3tag.c:1210:7: warning: assignment makes pointer from integer without a cast [enabled by default]
# outf = fopen(tmpfilename, "wb");
# ^
# id3tag.c:1214:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(tmpfilename);
# ^
# mp3gain.c: In function 'main':
# id3tag.c:1220:2: warning: implicit declaration of function 'id3_write_tag' [-Wimplicit-function-declaration]
# ret = id3_write_tag(outf, &tag);
# ^
# id3tag.c:1226:4: warning: implicit declaration of function 'id3_copy_data' [-Wimplicit-function-declaration]
# ret = id3_copy_data(f, outf, 0, -1);
# ^
# mp3gain.c:1485:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# (strlen(argv[i])==2)) {
# ^
# id3tag.c:1251:3: warning: implicit declaration of function 'remove' [-Wimplicit-function-declaration]
# remove(tmpfilename);
# ^
# mp3gain.c:1503:7: warning: implicit declaration of function 'atof' [-Wimplicit-function-declaration]
# dBGainMod = atof(argv[i]+2);
# ^
# id3tag.c:1252:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(tmpfilename);
# ^
# mp3gain.c:1527:7: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# directGainVal = atoi(argv[i]+2);
# ^
# id3tag.c:1272:2: warning: implicit declaration of function 'rename' [-Wimplicit-function-declaration]
# if (rename(tmpfilename, filename)) {
# ^
# id3tag.c:1281:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(tmpfilename);
# ^
# id3tag.c: At top level:
# id3tag.c:174:22: warning: 'id3_get_unsync_data' defined but not used [-Wunused-function]
# static unsigned long id3_get_unsync_data(unsigned char *dest, const unsigned char *src, unsigned long srclen)
# ^
# id3tag.c:201:22: warning: 'id3_put_unsync_data' defined but not used [-Wunused-function]
# static unsigned long id3_put_unsync_data(unsigned char *dest, const unsigned char *src, unsigned long srclen)
# ^
# mp3gain.c:1690:28: error: 'stdout' undeclared (first use in this function)
# fclose(stdout);
# ^
# mp3gain.c:1691:28: error: 'stderr' undeclared (first use in this function)
# fclose(stderr);
# ^
# mp3gain.c:1692:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# mp3gain.c:1710:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"I don't recognize option %s\n",argv[i]);
# ^
# mp3gain.c:1716:18: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# fileok = (int *)malloc(sizeof(int) * argc);
# ^
# mp3gain.c:1719:23: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# tagInfo = (struct MP3GainTagInfo *)calloc(argc, sizeof(struct MP3GainTagInfo));
# ^
# mp3gain.c:1719:40: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# tagInfo = (struct MP3GainTagInfo *)calloc(argc, sizeof(struct MP3GainTagInfo));
# ^
# mp3gain.c:1728:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"File\tMP3 gain\tdB gain\tMax Amplitude\tMax global_gain\tMin global_gain\tAlbum gain\tAlbum dB gain\tAlbum Max Amplitude\tAlbum Max global_gain\tAlbum Min global_gain\n");
# ^
# mp3gain.c:1730:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"File\tleft global_gain change\tright global_gain change\n");
# ^
# mp3gain.c:1732:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"File\tMP3 gain\tdB gain\tMax Amplitude\tMax global_gain\tMin global_gain\n");
# ^
# make: *** [: id3tag.o] Error 1
# mp3gain.c:1876:9: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(&mp, 0, sizeof(mp));
# ^
# mp3gain.c:1876:9: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# mp3gain.c:1885:7: warning: implicit declaration of function 'log10' [-Wimplicit-function-declaration]
# dblGainChange = curTag->trackGain / (5.0 * log10(2.0));
# ^
# mp3gain.c:1885:50: warning: incompatible implicit declaration of built-in function 'log10' [enabled by default]
# dblGainChange = curTag->trackGain / (5.0 * log10(2.0));
# ^
# mp3gain.c:1887:7: warning: implicit declaration of function 'fabs' [-Wimplicit-function-declaration]
# if (fabs(dblGainChange) - (double)((int)(fabs(dblGainChange))) < 0.5)
# ^
# mp3gain.c:1887:11: warning: incompatible implicit declaration of built-in function 'fabs' [enabled by default]
# if (fabs(dblGainChange) - (double)((int)(fabs(dblGainChange))) < 0.5)
# ^
# mp3gain.c:1893:50: warning: incompatible implicit declaration of built-in function 'log10' [enabled by default]
# dblGainChange = curTag->albumGain / (5.0 * log10(2.0));
# ^
# mp3gain.c:1895:11: warning: incompatible implicit declaration of built-in function 'fabs' [enabled by default]
# if (fabs(dblGainChange) - (double)((int)(fabs(dblGainChange))) < 0.5)
# ^
# mp3gain.c:1901:11: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"%s\n",argv[mainloop]);
# ^
# mp3gain.c:1906:50: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# if (curTag->trackPeak * (Float_t)(pow(2.0,(double)(intGainChange)/4.0)) > 1.0) {
# ^
# mp3gain.c:1921:50: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# if (curTag->trackPeak * (Float_t)(pow(2.0,(double)(intAlbumGainChange)/4.0)) > 1.0) {
# ^
# mp3gain.c:1935:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"%s\t",argv[mainloop]);
# ^
# mp3gain.c:1977:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Undoing mp3gain changes (%d,%d) to %s...\n", tagInfo[mainloop].undoLeft, tagInfo[mainloop].undoRight, argv[mainloop]);
# ^
# mp3gain.c:1988:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"%s\t0\t0\n",argv[mainloop]);
# ^
# mp3gain.c:1991:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"No changes to undo in %s\n",argv[mainloop]);
# ^
# mp3gain.c:1993:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"No undo information in %s\n",argv[mainloop]);
# ^
# mp3gain.c:2000:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Applying gain change of %d to CHANNEL %d of %s...\n",directGainVal,whichChannel,argv[mainloop]);
# ^
# mp3gain.c:2020:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Applying gain change of %d to %s...\n",directGainVal,argv[mainloop]);
# ^
# mp3gain.c:2043:15: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Deleting tag info of %s...\n", argv[mainloop]);
# ^
# mp3gain.c:2049:7: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"%s\n",argv[mainloop]);
# ^
# mp3gain.c:2057:14: warning: assignment makes pointer from integer without a cast [enabled by default]
# inf = fopen(argv[mainloop],"rb");
# ^
# mp3gain.c:2281:12: warning: implicit declaration of function 'AnalyzeSamples' [-Wimplicit-function-declaration]
# if (AnalyzeSamples(lsamples,rsamples,procSamp/nchan,nchan) == GAIN_ANALYSIS_ERROR) {
# ^
# mp3gain.c:2329:11: warning: incompatible implicit declaration of built-in function 'fabs' [enabled by default]
# (fabs(dBchange - curTag->trackGain) >= 0.01))
# ^
# mp3gain.c:2347:11: warning: incompatible implicit declaration of built-in function 'fabs' [enabled by default]
# (fabs(maxsample - (curTag->trackPeak) * 32768.0) >= 3.3))) {
# ^
# mp3gain.c:2357:41: warning: incompatible implicit declaration of built-in function 'log10' [enabled by default]
# dblGainChange = dBchange / (5.0 * log10(2.0));
# ^
# mp3gain.c:2373:35: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# if (maxsample * (Float_t)(pow(2.0,(double)(intGainChange)/4.0)) > 32767.0) {
# ^
# mp3gain.c:2398:66: warning: incompatible implicit declaration of built-in function 'floor' [enabled by default]
# int intMaxNoClipGain = (int)(floor(4.0 * log10(32767.0 / maxsample) / log10(2.0)));
# ^
# mp3gain.c:2404:63: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# if (maxsample * (Float_t)(pow(2.0,(double)(intGainChange)/4.0)) > 32767.0) {
# ^
# mp3gain.c:2459:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Not enough samples in mp3 files to do analysis\n");
# ^
# mp3gain.c:2487:10: warning: incompatible implicit declaration of built-in function 'fabs' [enabled by default]
# (fabs(dBchange - curTag->albumGain) >= 0.01))
# ^
# mp3gain.c:2506:10: warning: incompatible implicit declaration of built-in function 'fabs' [enabled by default]
# (fabs(maxmaxsample - curTag->albumPeak) >= 0.0001))) {
# ^
# mp3gain.c:2519:38: warning: incompatible implicit declaration of built-in function 'log10' [enabled by default]
# dblGainChange = dBchange / (5.0 * log10(2.0));
# ^
# mp3gain.c:2520:8: warning: incompatible implicit declaration of built-in function 'fabs' [enabled by default]
# if (fabs(dblGainChange) - (double)((int)(fabs(dblGainChange))) < 0.5)
# ^
# mp3gain.c:2528:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"\"Album\"\t%d\t%f\t%f\t%d\t%d\n",intGainChange,dBchange,maxmaxsample * 32768.0 ,maxmaxgain,minmingain);
# ^
# mp3gain.c:2534:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"\nRecommended \"Album\" dB change for all files: %f\n",dBchange);
# ^
# mp3gain.c:2538:52: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# if (tagInfo[mainloop].trackPeak * (Float_t)(pow(2.0,(double)(intGainChange)/4.0)) > 1.0) {
# ^
# mp3gain.c:2546:41: warning: incompatible implicit declaration of built-in function 'floor' [enabled by default]
# /*MAA*/ int intMaxNoClipGain = (int)(floor(-4.0 * log10(maxmaxsample) / log10(2.0)));
# ^
# mp3gain.c:2548:13: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# /*MAA*/ fprintf(stdout,"Applying auto-clipped mp3 gain change of %d to album\n(Original suggested gain was %d)\n",intMaxNoClipGain,intGainChange);
# ^
# mp3gain.c:2556:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"\nNo changes to %s are necessary\n",argv[mainloop]);
# ^
# mp3gain.c:2564:53: warning: incompatible implicit declaration of built-in function 'pow' [enabled by default]
# if (tagInfo[mainloop].trackPeak * (Float_t)(pow(2.0,(double)(intGainChange)/4.0)) > 1.0)
# ^
# mp3gain.c:2568:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Applying mp3 gain change of %d to %s...\n",intGainChange,argv[mainloop]);
# ^
# mp3gain.c:2575:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,"Writing tag information for %s\n",argv[mainloop]);
# ^
# mp3gain.c:2603:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(tagInfo);
# ^
# mp3gain.c:1416:6: warning: variable 'crcflag' set but not used [-Wunused-but-set-variable]
# int crcflag;
# ^
# make: *** [: mp3gain.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...