Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created April 25, 2013 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tmcw/5463752 to your computer and use it in GitHub Desktop.
Save tmcw/5463752 to your computer and use it in GitHub Desktop.
~/src/pixz〉make
gcc -g -O0 -std=gnu99 -Wall -Wno-unknown-pragmas -DPIXZ_VERSION='"1.0.2"' -c -o read.o read.c
read.c:3:21: error: archive.h: No such file or directory
read.c:4:27: error: archive_entry.h: No such file or directory
read.c:54: warning: ‘struct archive’ declared inside parameter list
read.c:54: warning: its scope is only this definition or declaration, which is probably not what you want
read.c:55: warning: ‘struct archive’ declared inside parameter list
read.c: In function ‘pixz_read’:
read.c:117: warning: implicit declaration of function ‘archive_read_new’
read.c:117: warning: initialization makes pointer from integer without a cast
read.c:118: warning: implicit declaration of function ‘archive_read_support_compression_none’
read.c:119: warning: implicit declaration of function ‘archive_read_support_format_tar’
read.c:120: warning: implicit declaration of function ‘archive_read_open’
read.c:123: warning: implicit declaration of function ‘archive_read_next_header’
read.c:124: error: ‘ARCHIVE_EOF’ undeclared (first use in this function)
read.c:124: error: (Each undeclared identifier is reported only once
read.c:124: error: for each function it appears in.)
read.c:126: error: ‘ARCHIVE_OK’ undeclared (first use in this function)
read.c:126: error: ‘ARCHIVE_WARN’ undeclared (first use in this function)
read.c:127: warning: implicit declaration of function ‘archive_error_string’
read.c:127: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
read.c:127: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
read.c:131: warning: implicit declaration of function ‘archive_read_header_position’
read.c:132: warning: implicit declaration of function ‘archive_entry_pathname’
read.c:132: warning: initialization makes pointer from integer without a cast
read.c:153: warning: implicit declaration of function ‘archive_read_finish’
read.c: At top level:
read.c:599: warning: ‘struct archive’ declared inside parameter list
read.c:599: error: conflicting types for ‘tar_ok’
read.c:54: error: previous declaration of ‘tar_ok’ was here
read.c: In function ‘tar_ok’:
read.c:600: error: ‘ARCHIVE_OK’ undeclared (first use in this function)
read.c:601: warning: control reaches end of non-void function
read.c: At top level:
read.c:626: warning: ‘struct archive’ declared inside parameter list
read.c:626: error: conflicting types for ‘tar_read’
read.c:55: error: previous declaration of ‘tar_read’ was here
read.c: In function ‘taste_tar’:
read.c:668: warning: initialization makes pointer from integer without a cast
read.c:671: warning: implicit declaration of function ‘archive_read_open_memory’
read.c:673: error: ‘ARCHIVE_OK’ undeclared (first use in this function)
make: *** [read.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment