cds@ubuntu:~$ cd Desktop
cds@ubuntu:~/Desktop$ ls
cc gmp-6.1.1 papers of cpabe
Charm-Crypto-0.43 jpbc papers of jpbc
Charm-Crypto_0.43-Python3_i386.deb jpbc1 pbc-0.5.13
cpabe-0.11 jTR-ABE-master pbc-0.5.14
cpabe-master junwei-wang-cpabe-afb82a6 piratte
DET-ABE-master libbswabe-0.9 Python-2.7.12
glib-2.36.3 openssl-1.1.0c test
gmp-5.1.1 package1 Untitled 1.odt
cds@ubuntu:~/Desktop$ cd libbswabe-0.9/
cds@ubuntu:~/Desktop/libbswabe-0.9$ ls
acinclude.m4 config.log COPYING install-sh misc.c NEWS
aclocal.m4 config.status core.c libbswabe.a misc.o private.h
AUTHORS configure core.o Makefile missing README
bswabe.h configure.ac INSTALL Makefile.in mkinstalldirs
cds@ubuntu:~/Desktop/libbswabe-0.9$ ./configure
checking whether to enable debugging... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for uint32_t... yes
checking for ANSI C header files... (cached) yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for strdup... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
configure: creating ./config.status
config.status: creating Makefile
cds@ubuntu:~/Desktop/libbswabe-0.9$ make
gcc -c -o core.o core.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe"
-DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.9"
-DPACKAGE_STRING="libbswabe 0.9"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1
gcc -c -o misc.o misc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe"
-DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.9"
-DPACKAGE_STRING="libbswabe 0.9"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1
rm -f libbswabe.a
ar rc libbswabe.a core.o misc.o
cds@ubuntu:~/Desktop/libbswabe-0.9$ make install
./mkinstalldirs -m 755 /usr/local/lib
./mkinstalldirs -m 755 /usr/local/include
./install-sh -m 755 libbswabe.a /usr/local/lib
cp: cannot create regular file '/usr/local/lib/_inst.4111_': Permission denied
Makefile:48: recipe for target 'install' failed
make: *** [install] Error 1
cds@ubuntu:~/Desktop/libbswabe-0.9$ sudo make install
[sudo] password for cds:
./mkinstalldirs -m 755 /usr/local/lib
./mkinstalldirs -m 755 /usr/local/include
./install-sh -m 755 libbswabe.a /usr/local/lib
./install-sh -m 644 bswabe.h /usr/local/include
cds@ubuntu:~/Desktop/libbswabe-0.9$ cd ..
cds@ubuntu:~/Desktop$ ls
cc gmp-6.1.1 papers of cpabe
Charm-Crypto-0.43 jpbc papers of jpbc
Charm-Crypto_0.43-Python3_i386.deb jpbc1 pbc-0.5.13
cpabe-0.11 jTR-ABE-master pbc-0.5.14
cpabe-master junwei-wang-cpabe-afb82a6 piratte
DET-ABE-master libbswabe-0.9 Python-2.7.12
glib-2.36.3 openssl-1.1.0c test
gmp-5.1.1 package1 Untitled 1.odt
cds@ubuntu:~/Desktop$ cd piratte
cds@ubuntu:~/Desktop/piratte$ ls
AUTHORS libbswabe-piratte piratte README
cds@ubuntu:~/Desktop/piratte$ ./configure
bash: ./configure: No such file or directory
cds@ubuntu:~/Desktop/piratte$ ./configure
bash: ./configure: No such file or directory
cds@ubuntu:~/Desktop/piratte$ ./configure
bash: ./configure: No such file or directory
cds@ubuntu:~/Desktop/piratte$ cd piratte
cds@ubuntu:~/Desktop/piratte/piratte$ ls
acinclude.m4 convert.c gen_policy.c make.sh README
aclocal.m4 COPYING gen_pol.sh missing revoke.c
AUTHORS cpabe.h gen_sh.sh mkinstalldirs setup.c
common.c dec.c INSTALL NEWS test-lang.c
common.h dec_delegated.c install-sh policy_lang.c
configure delegate.c keygen.c policy_lang.h
configure.ac enc.c Makefile.in policy_lang.y
cds@ubuntu:~/Desktop/piratte/piratte$ ./configure
checking whether to enable debugging... no
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for EVP_aes_128_cbc in -lcrypto... yes
checking for strchr... yes
checking for strdup... yes
checking for memset... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
checking for libbswabe... found
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto
/usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'easier-setup' failed
make: *** [easier-setup] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ gedit make
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:118:12: error: too many arguments to function ‘bswabe_cph_serialize’
cph_buf = bswabe_cph_serialize(cph, 0);
^
In file included from enc.c:7:0:
/usr/local/include/bswabe.h:94:13: note: declared here
GByteArray* bswabe_cph_serialize( bswabe_cph_t* cph );
^
enc.c:119:2: error: too many arguments to function ‘bswabe_cph_free’
bswabe_cph_free(cph, 0);
^
In file included from enc.c:7:0:
/usr/local/include/bswabe.h:111:6: note: declared here
void bswabe_cph_free( bswabe_cph_t* cph );
^
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
Makefile:64: recipe for target 'enc.o' failed
make: *** [enc.o] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ gedit
cds@ubuntu:~/Desktop/piratte/piratte$ gedit makefile
cds@ubuntu:~/Desktop/piratte/piratte$ gedit MakeFile
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:118:12: error: too many arguments to function ‘bswabe_cph_serialize’
cph_buf = bswabe_cph_serialize(cph, 0);
^
In file included from enc.c:7:0:
/usr/local/include/bswabe.h:94:13: note: declared here
GByteArray* bswabe_cph_serialize( bswabe_cph_t* cph );
^
enc.c:119:2: error: too many arguments to function ‘bswabe_cph_free’
bswabe_cph_free(cph, 0);
^
In file included from enc.c:7:0:
/usr/local/include/bswabe.h:111:6: note: declared here
void bswabe_cph_free( bswabe_cph_t* cph );
^
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
Makefile:64: recipe for target 'enc.o' failed
make: *** [enc.o] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘yyparse’:
policy_lang.y:67:38: error: expected ‘;’ before ‘}’ token
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
Makefile:64: recipe for target 'policy_lang.o' failed
make: *** [policy_lang.o] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp
-Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
keygen.c: In function ‘main’:
keygen.c:141:8: error: too many arguments to function ‘bswabe_keygen’
prv = bswabe_keygen(pub, msk, attrs, u_k);
^
In file included from keygen.c:10:0:
/usr/local/include/bswabe.h:46:15: note: declared here
bswabe_prv_t* bswabe_keygen( bswabe_pub_t* pub,
^
keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit-
function-declaration]
fp_users = fopen_write_or_die(id_file_name);
^
keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_users = fopen_write_or_die(id_file_name);
^
Makefile:64: recipe for target 'keygen.o' failed
make: *** [keygen.o] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:118:12: error: too few arguments to function ‘bswabe_cph_serialize’
cph_buf = bswabe_cph_serialize(cph);
^
In file included from enc.c:7:0:
bswabe.h:121:13: note: declared here
GByteArray* bswabe_cph_serialize( bswabe_cph_t* cph, int proxy );
^
enc.c:119:2: error: too few arguments to function ‘bswabe_cph_free’
bswabe_cph_free(cph);
^
In file included from enc.c:7:0:
bswabe.h:144:6: note: declared here
void bswabe_cph_free( bswabe_cph_t* cph, int proxy );
^
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
Makefile:64: recipe for target 'enc.o' failed
make: *** [enc.o] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp
-Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
keygen.c: In function ‘main’:
keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit-
function-declaration]
fp_users = fopen_write_or_die(id_file_name);
^
keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_users = fopen_write_or_die(id_file_name);
^
gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
delegate.c: In function ‘parse_args’:
delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function-
declaration]
parse_attribute(&alist, argv[i]);
^
delegate.c: In function ‘main’:
delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit-
function-declaration]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute
warn_unused_result [-Wunused-result]
fscanf(fp_u_k, "%s", u_k_str);
^
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ sudo make install
[sudo] password for cds:
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make install
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ ^C
cds@ubuntu:~/Desktop/piratte/piratte$ sudo make install
[sudo] password for cds:
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ ./configure
checking whether to enable debugging... no
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for EVP_aes_128_cbc in -lcrypto... yes
checking for strchr... yes
checking for strdup... yes
checking for memset... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
checking for libbswabe... found
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto
/usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'easier-setup' failed
make: *** [easier-setup] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp
-Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
keygen.c: In function ‘main’:
keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit-
function-declaration]
fp_users = fopen_write_or_die(id_file_name);
^
keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_users = fopen_write_or_die(id_file_name);
^
gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
delegate.c: In function ‘parse_args’:
delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function-
declaration]
parse_attribute(&alist, argv[i]);
^
delegate.c: In function ‘main’:
delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit-
function-declaration]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute
warn_unused_result [-Wunused-result]
fscanf(fp_u_k, "%s", u_k_str);
^
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp
-Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
keygen.c: In function ‘main’:
keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit-
function-declaration]
fp_users = fopen_write_or_die(id_file_name);
^
keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_users = fopen_write_or_die(id_file_name);
^
gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
delegate.c: In function ‘parse_args’:
delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function-
declaration]
parse_attribute(&alist, argv[i]);
^
delegate.c: In function ‘main’:
delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit-
function-declaration]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute
warn_unused_result [-Wunused-result]
fscanf(fp_u_k, "%s", u_k_str);
^
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:47: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ ./configure
checking whether to enable debugging... no
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for EVP_aes_128_cbc in -lcrypto... yes
checking for strchr... yes
checking for strdup... yes
checking for memset... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
checking for libbswabe... found
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto
/usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'easier-setup' failed
make: *** [easier-setup] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp
-Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
keygen.c: In function ‘main’:
keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit-
function-declaration]
fp_users = fopen_write_or_die(id_file_name);
^
keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_users = fopen_write_or_die(id_file_name);
^
gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
delegate.c: In function ‘parse_args’:
delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function-
declaration]
parse_attribute(&alist, argv[i]);
^
delegate.c: In function ‘main’:
delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit-
function-declaration]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute
warn_unused_result [-Wunused-result]
fscanf(fp_u_k, "%s", u_k_str);
^
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
delegate.o: In function `main':
delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate'
delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x1c2d): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:46: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ ^C
cds@ubuntu:~/Desktop/piratte/piratte$ ^C
cds@ubuntu:~/Desktop/piratte/piratte$ cd ..
cds@ubuntu:~/Desktop/piratte$ cd ..
cds@ubuntu:~/Desktop$ ls
cc cpabe-master gmp-6.1.1 junwei-wang-cpabe-afb82a6 package1
pbc-0.5.14 Untitled 1.odt
Charm-Crypto-0.43 DET-ABE-master jpbc LAVCERTIFICATES papers
of cpabe piratte
Charm-Crypto_0.43-Python3_i386.deb glib-2.36.3 jpbc1 libbswabe-0.9 papers of
jpbc Python-2.7.12
cpabe-0.11 gmp-5.1.1 jTR-ABE-master openssl-1.1.0c pbc-0.5.13
test
cds@ubuntu:~/Desktop$ cd pbc-0.5.1
bash: cd: pbc-0.5.1: No such file or directory
cds@ubuntu:~/Desktop$ cd pbc-0.5.14
cds@ubuntu:~/Desktop/pbc-0.5.14$ make
make all-recursive
make[1]: Entering directory '/home/cds/Desktop/pbc-0.5.14'
Making all in .
make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14'
make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14'
Making all in example
make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/example'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/example'
Making all in gen
make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/gen'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/gen'
make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14'
cds@ubuntu:~/Desktop/pbc-0.5.14$ sudo make install
[sudo] password for cds:
Making install in .
make[1]: Entering directory '/home/cds/Desktop/pbc-0.5.14'
make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ./libtool --mode=install /usr/bin/install -c libpbc.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libpbc.so.1.0.0 /usr/local/lib/libpbc.so.1.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libpbc.so.1.0.0 libpbc.so.1 || { rm -f libpbc.so.1 && ln
-s libpbc.so.1.0.0 libpbc.so.1; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libpbc.so.1.0.0 libpbc.so || { rm -f libpbc.so && ln -s
libpbc.so.1.0.0 libpbc.so; }; })
libtool: install: /usr/bin/install -c .libs/libpbc.lai /usr/local/lib/libpbc.la
libtool: install: /usr/bin/install -c .libs/libpbc.a /usr/local/lib/libpbc.a
libtool: install: chmod 644 /usr/local/lib/libpbc.a
libtool: install: ranlib /usr/local/lib/libpbc.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n
/usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include/pbc" || /bin/mkdir -p "/usr/local/include/pbc"
/usr/bin/install -c -m 644 include/pbc_a1_param.h include/pbc_a_param.h include/pbc_curve.h
include/pbc_d_param.h include/pbc_e_param.h include/pbc_field.h include/pbc_multiz.h
include/pbc_z.h include/pbc_fieldquadratic.h include/pbc_f_param.h include/pbc_g_param.h
include/pbc_i_param.h include/pbc_fp.h include/pbc_ternary_extension_field.h include/pbc.h
include/pbc_hilbert.h include/pbc_memory.h include/pbc_mnt.h include/pbc_pairing.h
include/pbc_param.h include/pbc_poly.h include/pbc_random.h include/pbc_singular.h
include/pbc_test.h include/pbc_utils.h '/usr/local/include/pbc'
make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14'
make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14'
Making install in example
make[1]: Entering directory '/home/cds/Desktop/pbc-0.5.14/example'
make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/example'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/example'
make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/example'
Making install in gen
make[1]: Entering directory '/home/cds/Desktop/pbc-0.5.14/gen'
make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/gen'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/gen'
make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/gen'
cds@ubuntu:~/Desktop/pbc-0.5.14$ cd ..
cds@ubuntu:~/Desktop$ ls
cc cpabe-master gmp-6.1.1 junwei-wang-cpabe-afb82a6 package1
pbc-0.5.14 Untitled 1.odt
Charm-Crypto-0.43 DET-ABE-master jpbc LAVCERTIFICATES papers
of cpabe piratte
Charm-Crypto_0.43-Python3_i386.deb glib-2.36.3 jpbc1 libbswabe-0.9 papers of
jpbc Python-2.7.12
cpabe-0.11 gmp-5.1.1 jTR-ABE-master openssl-1.1.0c pbc-0.5.13
test
cds@ubuntu:~/Desktop$ cd piratte/
cds@ubuntu:~/Desktop/piratte$ ls
AUTHORS libbswabe-piratte piratte README
cds@ubuntu:~/Desktop/piratte$ cd libbswabe-piratte/
cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ ./configure
checking whether to enable debugging... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for uint32_t... yes
checking for ANSI C header files... (cached) yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for working alloca.h... yes
checking for alloca... yes
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for strdup... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
configure: creating ./config.status
config.status: creating Makefile
cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ make
gcc -c -o core.o core.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe"
-DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.8"
-DPACKAGE_STRING="libbswabe 0.8"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1
gcc -c -o misc.o misc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe"
-DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.8"
-DPACKAGE_STRING="libbswabe 0.8"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1
rm -f libbswabe.a
ar rc libbswabe.a core.o misc.o
cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ sudo make install
./mkinstalldirs -m 755 /usr/local/lib
./mkinstalldirs -m 755 /usr/local/include
./install-sh -m 755 libbswabe.a /usr/local/lib
./install-sh -m 644 bswabe.h /usr/local/include
cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ cd ..
cds@ubuntu:~/Desktop/piratte$ ls
AUTHORS libbswabe-piratte piratte README
cds@ubuntu:~/Desktop/piratte$ cd piratte/
cds@ubuntu:~/Desktop/piratte/piratte$ ./configure
checking whether to enable debugging... no
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for EVP_aes_128_cbc in -lcrypto... yes
checking for strchr... yes
checking for strdup... yes
checking for memset... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
checking for libbswabe... found
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto
/usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'easier-setup' failed
make: *** [easier-setup] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto
/usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'easier-setup' failed
make: *** [easier-setup] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ ./configure
checking whether to enable debugging... no
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for EVP_aes_128_cbc in -lcrypto... yes
checking for strchr... yes
checking for strdup... yes
checking for memset... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
checking for libbswabe... found
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto
/usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'easier-setup' failed
make: *** [easier-setup] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp
-Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
keygen.c: In function ‘main’:
keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit-
function-declaration]
fp_users = fopen_write_or_die(id_file_name);
^
keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_users = fopen_write_or_die(id_file_name);
^
gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
delegate.c: In function ‘parse_args’:
delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function-
declaration]
parse_attribute(&alist, argv[i]);
^
delegate.c: In function ‘main’:
delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit-
function-declaration]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute
warn_unused_result [-Wunused-result]
fscanf(fp_u_k, "%s", u_k_str);
^
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
//usr/local/lib/libbswabe.a(core.o): In function `bswabe_setup':
core.c:(.text+0x8ca): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0xe59): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x32cd): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:47: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ ./configure
checking whether to enable debugging... no
checking for bison... bison -y
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for an ANSI C-conforming const... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for string.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat correctly handles trailing slash... yes
checking whether stat accepts an empty string... no
checking for vprintf... yes
checking for _doprnt... no
checking for SHA1 in -lcrypto... yes
checking for EVP_aes_128_cbc in -lcrypto... yes
checking for strchr... yes
checking for strdup... yes
checking for memset... yes
checking for pkg-config... /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... yes (version 2.48.1)
checking for GMP version >= 4.0.0 or later... found
checking for the PBC library... found
checking for libbswabe... found
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto
/usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init'
/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO
missing from command line
collect2: error: ld returned 1 exit status
Makefile:37: recipe for target 'easier-setup' failed
make: *** [easier-setup] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$ make
gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
common.c: In function ‘suck_file’:
common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread(a->data, 1, s.st_size, f);
^
common.c: In function ‘read_cph_file’:
common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
common.c: In function ‘read_aes_file’:
common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c: In function ‘read_cpabe_file’:
common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*aes_buf)->data, 1, len, f);
^
common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute
warn_unused_result [-Wunused-result]
fread((*cph_buf)->data, 1, len, f);
^
gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-
rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include
-I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
enc.c: In function ‘main’:
enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function-
declaration]
write_aes_file(aes_file, file_len, aes_buf);
^
enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function-
declaration]
write_cph_file(out_file, cph_buf);
^
if which bison 2> /dev/null; then 
bison -o policy_lang.c policy_lang.y; 
fi
/usr/bin/bison
gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-
gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
policy_lang.y: In function ‘eq_policy’:
policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_flexint_%llu", attr, n->value));
^
policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
^
policy_lang.y: In function ‘yylex’:
policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
sscanf(s->str, "%llu", &(yylval.nat));
^
policy_lang.y: In function ‘parse_attribute’:
policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 )
^
policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value));
^
policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’,
but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=]
else if( sscanf(a, " %s = %llu ", s, &value) == 2 )
^
policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’,
but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
(*l, g_strdup_printf("%s_flexint_%llu", s, value));
^
gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp
-Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
keygen.c: In function ‘main’:
keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit-
function-declaration]
fp_users = fopen_write_or_die(id_file_name);
^
keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_users = fopen_write_or_die(id_file_name);
^
gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-
2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
-DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
-DPACKAGE_STRING="cpabe 0.10"
-DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
-DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
-DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
-DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1
-DHAVE_BSWABE=1
delegate.c: In function ‘parse_args’:
delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function-
declaration]
parse_attribute(&alist, argv[i]);
^
delegate.c: In function ‘main’:
delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit-
function-declaration]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint-
conversion]
fp_u_k = fopen_read_or_die( u_k_file);
^
delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute
warn_unused_result [-Wunused-result]
fscanf(fp_u_k, "%s", u_k_str);
^
gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath
/usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
//usr/local/lib/libbswabe.a(core.o): In function `bswabe_setup':
core.c:(.text+0x8ca): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize':
misc.c:(.text+0xe59): undefined reference to `pairing_init_set_buf'
//usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free':
misc.c:(.text+0x32cd): undefined reference to `pairing_clear'
collect2: error: ld returned 1 exit status
Makefile:47: recipe for target 'easier-delegate' failed
make: *** [easier-delegate] Error 1
cds@ubuntu:~/Desktop/piratte/piratte$

Piratte installation

  • 1.
    cds@ubuntu:~$ cd Desktop cds@ubuntu:~/Desktop$ls cc gmp-6.1.1 papers of cpabe Charm-Crypto-0.43 jpbc papers of jpbc Charm-Crypto_0.43-Python3_i386.deb jpbc1 pbc-0.5.13 cpabe-0.11 jTR-ABE-master pbc-0.5.14 cpabe-master junwei-wang-cpabe-afb82a6 piratte DET-ABE-master libbswabe-0.9 Python-2.7.12 glib-2.36.3 openssl-1.1.0c test gmp-5.1.1 package1 Untitled 1.odt cds@ubuntu:~/Desktop$ cd libbswabe-0.9/ cds@ubuntu:~/Desktop/libbswabe-0.9$ ls acinclude.m4 config.log COPYING install-sh misc.c NEWS aclocal.m4 config.status core.c libbswabe.a misc.o private.h AUTHORS configure core.o Makefile missing README bswabe.h configure.ac INSTALL Makefile.in mkinstalldirs cds@ubuntu:~/Desktop/libbswabe-0.9$ ./configure checking whether to enable debugging... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for uint32_t... yes checking for ANSI C header files... (cached) yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working alloca.h... yes checking for alloca... yes checking for vprintf... yes checking for _doprnt... no
  • 2.
    checking for SHA1in -lcrypto... yes checking for strdup... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found configure: creating ./config.status config.status: creating Makefile cds@ubuntu:~/Desktop/libbswabe-0.9$ make gcc -c -o core.o core.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe" -DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.9" -DPACKAGE_STRING="libbswabe 0.9" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1 gcc -c -o misc.o misc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe" -DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.9" -DPACKAGE_STRING="libbswabe 0.9" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1 rm -f libbswabe.a ar rc libbswabe.a core.o misc.o cds@ubuntu:~/Desktop/libbswabe-0.9$ make install ./mkinstalldirs -m 755 /usr/local/lib ./mkinstalldirs -m 755 /usr/local/include ./install-sh -m 755 libbswabe.a /usr/local/lib cp: cannot create regular file '/usr/local/lib/_inst.4111_': Permission denied Makefile:48: recipe for target 'install' failed make: *** [install] Error 1 cds@ubuntu:~/Desktop/libbswabe-0.9$ sudo make install [sudo] password for cds: ./mkinstalldirs -m 755 /usr/local/lib ./mkinstalldirs -m 755 /usr/local/include ./install-sh -m 755 libbswabe.a /usr/local/lib ./install-sh -m 644 bswabe.h /usr/local/include cds@ubuntu:~/Desktop/libbswabe-0.9$ cd .. cds@ubuntu:~/Desktop$ ls cc gmp-6.1.1 papers of cpabe Charm-Crypto-0.43 jpbc papers of jpbc
  • 3.
    Charm-Crypto_0.43-Python3_i386.deb jpbc1 pbc-0.5.13 cpabe-0.11jTR-ABE-master pbc-0.5.14 cpabe-master junwei-wang-cpabe-afb82a6 piratte DET-ABE-master libbswabe-0.9 Python-2.7.12 glib-2.36.3 openssl-1.1.0c test gmp-5.1.1 package1 Untitled 1.odt cds@ubuntu:~/Desktop$ cd piratte cds@ubuntu:~/Desktop/piratte$ ls AUTHORS libbswabe-piratte piratte README cds@ubuntu:~/Desktop/piratte$ ./configure bash: ./configure: No such file or directory cds@ubuntu:~/Desktop/piratte$ ./configure bash: ./configure: No such file or directory cds@ubuntu:~/Desktop/piratte$ ./configure bash: ./configure: No such file or directory cds@ubuntu:~/Desktop/piratte$ cd piratte cds@ubuntu:~/Desktop/piratte/piratte$ ls acinclude.m4 convert.c gen_policy.c make.sh README aclocal.m4 COPYING gen_pol.sh missing revoke.c AUTHORS cpabe.h gen_sh.sh mkinstalldirs setup.c common.c dec.c INSTALL NEWS test-lang.c common.h dec_delegated.c install-sh policy_lang.c configure delegate.c keygen.c policy_lang.h configure.ac enc.c Makefile.in policy_lang.y cds@ubuntu:~/Desktop/piratte/piratte$ ./configure checking whether to enable debugging... no checking for bison... bison -y checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for uint32_t... yes
  • 4.
    checking for uint64_t...yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for SHA1 in -lcrypto... yes checking for EVP_aes_128_cbc in -lcrypto... yes checking for strchr... yes checking for strdup... yes checking for memset... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found checking for libbswabe... found configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
  • 5.
    -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1-DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto /usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'easier-setup' failed make: *** [easier-setup] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ gedit make cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
  • 6.
    -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1-DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
  • 7.
    -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1-DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:118:12: error: too many arguments to function ‘bswabe_cph_serialize’ cph_buf = bswabe_cph_serialize(cph, 0); ^ In file included from enc.c:7:0: /usr/local/include/bswabe.h:94:13: note: declared here GByteArray* bswabe_cph_serialize( bswabe_cph_t* cph ); ^ enc.c:119:2: error: too many arguments to function ‘bswabe_cph_free’ bswabe_cph_free(cph, 0); ^ In file included from enc.c:7:0: /usr/local/include/bswabe.h:111:6: note: declared here void bswabe_cph_free( bswabe_cph_t* cph ); ^ enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ Makefile:64: recipe for target 'enc.o' failed make: *** [enc.o] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ gedit cds@ubuntu:~/Desktop/piratte/piratte$ gedit makefile cds@ubuntu:~/Desktop/piratte/piratte$ gedit MakeFile cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
  • 8.
    -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:118:12: error: too many arguments to function ‘bswabe_cph_serialize’ cph_buf = bswabe_cph_serialize(cph, 0);
  • 9.
    ^ In file includedfrom enc.c:7:0: /usr/local/include/bswabe.h:94:13: note: declared here GByteArray* bswabe_cph_serialize( bswabe_cph_t* cph ); ^ enc.c:119:2: error: too many arguments to function ‘bswabe_cph_free’ bswabe_cph_free(cph, 0); ^ In file included from enc.c:7:0: /usr/local/include/bswabe.h:111:6: note: declared here void bswabe_cph_free( bswabe_cph_t* cph ); ^ enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ Makefile:64: recipe for target 'enc.o' failed make: *** [enc.o] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison
  • 10.
    gcc -c -opolicy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘yyparse’: policy_lang.y:67:38: error: expected ‘;’ before ‘}’ token policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value)); ^ policy_lang.y: In function ‘yylex’: policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat)); ^ policy_lang.y: In function ‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^ policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ Makefile:64: recipe for target 'policy_lang.o' failed make: *** [policy_lang.o] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
  • 11.
    -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu"-DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value)); ^ policy_lang.y: In function ‘yylex’: policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat));
  • 12.
    ^ policy_lang.y: In function‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^ policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 keygen.c: In function ‘main’: keygen.c:141:8: error: too many arguments to function ‘bswabe_keygen’ prv = bswabe_keygen(pub, msk, attrs, u_k); ^ In file included from keygen.c:10:0: /usr/local/include/bswabe.h:46:15: note: declared here bswabe_prv_t* bswabe_keygen( bswabe_pub_t* pub, ^ keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit- function-declaration] fp_users = fopen_write_or_die(id_file_name); ^ keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_users = fopen_write_or_die(id_file_name); ^ Makefile:64: recipe for target 'keygen.o' failed make: *** [keygen.o] Error 1
  • 13.
    cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c-o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f);
  • 14.
    ^ gcc -o easier-setupsetup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:118:12: error: too few arguments to function ‘bswabe_cph_serialize’ cph_buf = bswabe_cph_serialize(cph); ^ In file included from enc.c:7:0: bswabe.h:121:13: note: declared here GByteArray* bswabe_cph_serialize( bswabe_cph_t* cph, int proxy ); ^ enc.c:119:2: error: too few arguments to function ‘bswabe_cph_free’ bswabe_cph_free(cph); ^ In file included from enc.c:7:0: bswabe.h:144:6: note: declared here void bswabe_cph_free( bswabe_cph_t* cph, int proxy ); ^ enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ Makefile:64: recipe for target 'enc.o' failed make: *** [enc.o] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
  • 15.
    -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1-DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value)); ^ policy_lang.y: In function ‘yylex’: policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat)); ^ policy_lang.y: In function ‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^
  • 16.
    policy_lang.y:596:26: warning: format‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 keygen.c: In function ‘main’: keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit- function-declaration] fp_users = fopen_write_or_die(id_file_name); ^ keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_users = fopen_write_or_die(id_file_name); ^ gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
  • 17.
    -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1-DHAVE_PBC=1 -DHAVE_BSWABE=1 delegate.c: In function ‘parse_args’: delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function- declaration] parse_attribute(&alist, argv[i]); ^ delegate.c: In function ‘main’: delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit- function-declaration] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp_u_k, "%s", u_k_str); ^ gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:46: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ sudo make install [sudo] password for cds: gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:46: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make install gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize'
  • 18.
    //usr/local/lib/libbswabe.a(misc.o): In function`bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:46: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ ^C cds@ubuntu:~/Desktop/piratte/piratte$ sudo make install [sudo] password for cds: gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:46: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:46: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ ./configure checking whether to enable debugging... no checking for bison... bison -y checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes
  • 19.
    checking for sys/types.h...yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for SHA1 in -lcrypto... yes checking for EVP_aes_128_cbc in -lcrypto... yes checking for strchr... yes checking for strdup... yes checking for memset... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found checking for libbswabe... found configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
  • 20.
    -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1-DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto /usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'easier-setup' failed make: *** [easier-setup] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
  • 21.
    -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
  • 22.
    gcc -c -oenc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value)); ^ policy_lang.y: In function ‘yylex’:
  • 23.
    policy_lang.y:391:18: warning: format‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat)); ^ policy_lang.y: In function ‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^ policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 keygen.c: In function ‘main’: keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit- function-declaration] fp_users = fopen_write_or_die(id_file_name); ^ keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_users = fopen_write_or_die(id_file_name); ^ gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10"
  • 24.
    -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 delegate.c: In function ‘parse_args’: delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function- declaration] parse_attribute(&alist, argv[i]); ^ delegate.c: In function ‘main’: delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit- function-declaration] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp_u_k, "%s", u_k_str); ^ gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:46: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1
  • 25.
    -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1-DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1
  • 26.
    -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1-DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value)); ^ policy_lang.y: In function ‘yylex’: policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat)); ^ policy_lang.y: In function ‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^
  • 27.
    policy_lang.y:596:26: warning: format‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 keygen.c: In function ‘main’: keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit- function-declaration] fp_users = fopen_write_or_die(id_file_name); ^ keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_users = fopen_write_or_die(id_file_name); ^ gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
  • 28.
    -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1-DHAVE_PBC=1 -DHAVE_BSWABE=1 delegate.c: In function ‘parse_args’: delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function- declaration] parse_attribute(&alist, argv[i]); ^ delegate.c: In function ‘main’: delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit- function-declaration] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp_u_k, "%s", u_k_str); ^ gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:47: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ ./configure checking whether to enable debugging... no checking for bison... bison -y checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes
  • 29.
    checking for string.h...yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for SHA1 in -lcrypto... yes checking for EVP_aes_128_cbc in -lcrypto... yes checking for strchr... yes checking for strdup... yes checking for memset... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found checking for libbswabe... found configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1
  • 30.
    gcc -c -ocommon.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto /usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'easier-setup' failed make: *** [easier-setup] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL=""
  • 31.
    -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
  • 32.
    -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value)); ^ policy_lang.y: In function ‘yylex’: policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat)); ^
  • 33.
    policy_lang.y: In function‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^ policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 keygen.c: In function ‘main’: keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit- function-declaration] fp_users = fopen_write_or_die(id_file_name); ^ keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_users = fopen_write_or_die(id_file_name); ^ gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
  • 34.
    -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1-DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 delegate.c: In function ‘parse_args’: delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function- declaration] parse_attribute(&alist, argv[i]); ^ delegate.c: In function ‘main’: delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit- function-declaration] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp_u_k, "%s", u_k_str); ^ gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp delegate.o: In function `main': delegate.c:(.text.startup+0xa4): undefined reference to `bswabe_delegate' delegate.c:(.text.startup+0xac): undefined reference to `bswabe_del_prv_serialize' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0x6e9): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x1c2d): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:46: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ ^C cds@ubuntu:~/Desktop/piratte/piratte$ ^C cds@ubuntu:~/Desktop/piratte/piratte$ cd .. cds@ubuntu:~/Desktop/piratte$ cd .. cds@ubuntu:~/Desktop$ ls cc cpabe-master gmp-6.1.1 junwei-wang-cpabe-afb82a6 package1 pbc-0.5.14 Untitled 1.odt Charm-Crypto-0.43 DET-ABE-master jpbc LAVCERTIFICATES papers of cpabe piratte Charm-Crypto_0.43-Python3_i386.deb glib-2.36.3 jpbc1 libbswabe-0.9 papers of jpbc Python-2.7.12 cpabe-0.11 gmp-5.1.1 jTR-ABE-master openssl-1.1.0c pbc-0.5.13 test cds@ubuntu:~/Desktop$ cd pbc-0.5.1 bash: cd: pbc-0.5.1: No such file or directory cds@ubuntu:~/Desktop$ cd pbc-0.5.14
  • 35.
    cds@ubuntu:~/Desktop/pbc-0.5.14$ make make all-recursive make[1]:Entering directory '/home/cds/Desktop/pbc-0.5.14' Making all in . make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14' make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14' Making all in example make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/example' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/example' Making all in gen make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/gen' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/gen' make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14' cds@ubuntu:~/Desktop/pbc-0.5.14$ sudo make install [sudo] password for cds: Making install in . make[1]: Entering directory '/home/cds/Desktop/pbc-0.5.14' make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14' test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib" /bin/bash ./libtool --mode=install /usr/bin/install -c libpbc.la '/usr/local/lib' libtool: install: /usr/bin/install -c .libs/libpbc.so.1.0.0 /usr/local/lib/libpbc.so.1.0.0 libtool: install: (cd /usr/local/lib && { ln -s -f libpbc.so.1.0.0 libpbc.so.1 || { rm -f libpbc.so.1 && ln -s libpbc.so.1.0.0 libpbc.so.1; }; }) libtool: install: (cd /usr/local/lib && { ln -s -f libpbc.so.1.0.0 libpbc.so || { rm -f libpbc.so && ln -s libpbc.so.1.0.0 libpbc.so; }; }) libtool: install: /usr/bin/install -c .libs/libpbc.lai /usr/local/lib/libpbc.la libtool: install: /usr/bin/install -c .libs/libpbc.a /usr/local/lib/libpbc.a libtool: install: chmod 644 /usr/local/lib/libpbc.a libtool: install: ranlib /usr/local/lib/libpbc.a libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib ---------------------------------------------------------------------- Libraries have been installed in: /usr/local/lib If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- test -z "/usr/local/include/pbc" || /bin/mkdir -p "/usr/local/include/pbc"
  • 36.
    /usr/bin/install -c -m644 include/pbc_a1_param.h include/pbc_a_param.h include/pbc_curve.h include/pbc_d_param.h include/pbc_e_param.h include/pbc_field.h include/pbc_multiz.h include/pbc_z.h include/pbc_fieldquadratic.h include/pbc_f_param.h include/pbc_g_param.h include/pbc_i_param.h include/pbc_fp.h include/pbc_ternary_extension_field.h include/pbc.h include/pbc_hilbert.h include/pbc_memory.h include/pbc_mnt.h include/pbc_pairing.h include/pbc_param.h include/pbc_poly.h include/pbc_random.h include/pbc_singular.h include/pbc_test.h include/pbc_utils.h '/usr/local/include/pbc' make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14' make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14' Making install in example make[1]: Entering directory '/home/cds/Desktop/pbc-0.5.14/example' make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/example' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/example' make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/example' Making install in gen make[1]: Entering directory '/home/cds/Desktop/pbc-0.5.14/gen' make[2]: Entering directory '/home/cds/Desktop/pbc-0.5.14/gen' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/gen' make[1]: Leaving directory '/home/cds/Desktop/pbc-0.5.14/gen' cds@ubuntu:~/Desktop/pbc-0.5.14$ cd .. cds@ubuntu:~/Desktop$ ls cc cpabe-master gmp-6.1.1 junwei-wang-cpabe-afb82a6 package1 pbc-0.5.14 Untitled 1.odt Charm-Crypto-0.43 DET-ABE-master jpbc LAVCERTIFICATES papers of cpabe piratte Charm-Crypto_0.43-Python3_i386.deb glib-2.36.3 jpbc1 libbswabe-0.9 papers of jpbc Python-2.7.12 cpabe-0.11 gmp-5.1.1 jTR-ABE-master openssl-1.1.0c pbc-0.5.13 test cds@ubuntu:~/Desktop$ cd piratte/ cds@ubuntu:~/Desktop/piratte$ ls AUTHORS libbswabe-piratte piratte README cds@ubuntu:~/Desktop/piratte$ cd libbswabe-piratte/ cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ ./configure checking whether to enable debugging... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E
  • 37.
    checking for ANSIC header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for uint32_t... yes checking for ANSI C header files... (cached) yes checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working alloca.h... yes checking for alloca... yes checking for vprintf... yes checking for _doprnt... no checking for SHA1 in -lcrypto... yes checking for strdup... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found configure: creating ./config.status config.status: creating Makefile cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ make gcc -c -o core.o core.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe" -DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.8" -DPACKAGE_STRING="libbswabe 0.8" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1 gcc -c -o misc.o misc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="libbswabe" -DPACKAGE_TARNAME="libbswabe" -DPACKAGE_VERSION="0.8" -DPACKAGE_STRING="libbswabe 0.8" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_STDINT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1
  • 38.
    -DHAVE_MALLOC=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1-DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRDUP=1 -DHAVE_GMP=1 -DHAVE_PBC=1 rm -f libbswabe.a ar rc libbswabe.a core.o misc.o cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ sudo make install ./mkinstalldirs -m 755 /usr/local/lib ./mkinstalldirs -m 755 /usr/local/include ./install-sh -m 755 libbswabe.a /usr/local/lib ./install-sh -m 644 bswabe.h /usr/local/include cds@ubuntu:~/Desktop/piratte/libbswabe-piratte$ cd .. cds@ubuntu:~/Desktop/piratte$ ls AUTHORS libbswabe-piratte piratte README cds@ubuntu:~/Desktop/piratte$ cd piratte/ cds@ubuntu:~/Desktop/piratte/piratte$ ./configure checking whether to enable debugging... no checking for bison... bison -y checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes
  • 39.
    checking whether lstatcorrectly handles trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for SHA1 in -lcrypto... yes checking for EVP_aes_128_cbc in -lcrypto... yes checking for strchr... yes checking for strdup... yes checking for memset... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found checking for libbswabe... found configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’:
  • 40.
    common.c:214:2: warning: ignoringreturn value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto /usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'easier-setup' failed make: *** [easier-setup] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto /usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'easier-setup' failed make: *** [easier-setup] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ ./configure checking whether to enable debugging... no checking for bison... bison -y checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes
  • 41.
    checking for sys/types.h...yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for SHA1 in -lcrypto... yes checking for EVP_aes_128_cbc in -lcrypto... yes checking for strchr... yes checking for strdup... yes checking for memset... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found checking for libbswabe... found configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1
  • 42.
    -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1-DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto /usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'easier-setup' failed make: *** [easier-setup] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10"
  • 43.
    -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp
  • 44.
    gcc -c -oenc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value)); ^ policy_lang.y: In function ‘yylex’:
  • 45.
    policy_lang.y:391:18: warning: format‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat)); ^ policy_lang.y: In function ‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^ policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 keygen.c: In function ‘main’: keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit- function-declaration] fp_users = fopen_write_or_die(id_file_name); ^ keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_users = fopen_write_or_die(id_file_name); ^ gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10"
  • 46.
    -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 delegate.c: In function ‘parse_args’: delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function- declaration] parse_attribute(&alist, argv[i]); ^ delegate.c: In function ‘main’: delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit- function-declaration] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp_u_k, "%s", u_k_str); ^ gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp //usr/local/lib/libbswabe.a(core.o): In function `bswabe_setup': core.c:(.text+0x8ca): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0xe59): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x32cd): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:47: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$ ./configure checking whether to enable debugging... no checking for bison... bison -y checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for an ANSI C-conforming const... yes
  • 47.
    checking how torun the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for size_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for ANSI C header files... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for vprintf... yes checking for _doprnt... no checking for SHA1 in -lcrypto... yes checking for EVP_aes_128_cbc in -lcrypto... yes checking for strchr... yes checking for strdup... yes checking for memset... yes checking for pkg-config... /usr/bin/pkg-config checking for GLIB - version >= 2.0.0... yes (version 2.48.1) checking for GMP version >= 4.0.0 or later... found checking for the PBC library... found checking for libbswabe... found configure: creating ./config.status config.status: creating Makefile config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir setting cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c -o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
  • 48.
    -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1-DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ gcc -o easier-setup setup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto /usr/bin/ld: //usr/local/lib/libpbc.so: undefined reference to symbol '__gmpz_init' /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libgmp.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:37: recipe for target 'easier-setup' failed make: *** [easier-setup] Error 1
  • 49.
    cds@ubuntu:~/Desktop/piratte/piratte$ make gcc -c-o setup.o setup.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 gcc -c -o common.o common.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 common.c: In function ‘suck_file’: common.c:148:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread(a->data, 1, s.st_size, f); ^ common.c: In function ‘read_cph_file’: common.c:214:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f); ^ common.c: In function ‘read_aes_file’: common.c:268:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c: In function ‘read_cpabe_file’: common.c:331:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*aes_buf)->data, 1, len, f); ^ common.c:341:2: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result] fread((*cph_buf)->data, 1, len, f);
  • 50.
    ^ gcc -o easier-setupsetup.o common.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,- rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o enc.o enc.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 enc.c: In function ‘main’: enc.c:128:2: warning: implicit declaration of function ‘write_aes_file’ [-Wimplicit-function- declaration] write_aes_file(aes_file, file_len, aes_buf); ^ enc.c:129:2: warning: implicit declaration of function ‘write_cph_file’ [-Wimplicit-function- declaration] write_cph_file(out_file, cph_buf); ^ if which bison 2> /dev/null; then bison -o policy_lang.c policy_lang.y; fi /usr/bin/bison gcc -c -o policy_lang.o policy_lang.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux- gnu/glib-2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 policy_lang.y: In function ‘eq_policy’: policy_lang.y:212:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_flexint_%llu", attr, n->value)); ^ policy_lang.y:215:21: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (g_strdup_printf("%s_expint%02d_%llu", attr, n->bits, n->value));
  • 51.
    ^ policy_lang.y: In function‘yylex’: policy_lang.y:391:18: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 3 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] sscanf(s->str, "%llu", &(yylval.nat)); ^ policy_lang.y: In function ‘parse_attribute’: policy_lang.y:577:17: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] if( sscanf(a, " %s = %llu # %u ", s, &value, &bits) == 3 ) ^ policy_lang.y:596:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_expint%02d_%llu", s, bits, value)); ^ policy_lang.y:598:22: warning: format ‘%llu’ expects argument of type ‘long long unsigned int *’, but argument 4 has type ‘uint64_t * {aka long unsigned int *}’ [-Wformat=] else if( sscanf(a, " %s = %llu ", s, &value) == 2 ) ^ policy_lang.y:612:26: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=] (*l, g_strdup_printf("%s_flexint_%llu", s, value)); ^ gcc -o easier-enc enc.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o keygen.o keygen.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe" -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu" -DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 keygen.c: In function ‘main’: keygen.c:146:13: warning: implicit declaration of function ‘fopen_write_or_die’ [-Wimplicit- function-declaration] fp_users = fopen_write_or_die(id_file_name); ^ keygen.c:146:11: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_users = fopen_write_or_die(id_file_name); ^ gcc -o easier-keygen keygen.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp gcc -c -o delegate.o delegate.c -O3 -Wall -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib- 2.0/include -I/usr/include/pbc -I/usr/local/include/pbc -DPACKAGE_NAME="cpabe"
  • 52.
    -DPACKAGE_TARNAME="cpabe" -DPACKAGE_VERSION="0.10" -DPACKAGE_STRING="cpabe 0.10" -DPACKAGE_BUGREPORT="bethenco@cs.berkeley.edu"-DPACKAGE_URL="" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_FCNTL_H=1 -DHAVE_STDDEF_H=1 -DHAVE_STRING_H=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DLSTAT_FOLLOWS_SLASHED_SYMLINK=1 -DHAVE_VPRINTF=1 -DHAVE_LIBCRYPTO=1 -DHAVE_LIBCRYPTO=1 -DHAVE_STRCHR=1 -DHAVE_STRDUP=1 -DHAVE_MEMSET=1 -DHAVE_GMP=1 -DHAVE_PBC=1 -DHAVE_BSWABE=1 delegate.c: In function ‘parse_args’: delegate.c:85:4: warning: implicit declaration of function ‘parse_attribute’ [-Wimplicit-function- declaration] parse_attribute(&alist, argv[i]); ^ delegate.c: In function ‘main’: delegate.c:120:11: warning: implicit declaration of function ‘fopen_read_or_die’ [-Wimplicit- function-declaration] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:120:9: warning: assignment makes pointer from integer without a cast [-Wint- conversion] fp_u_k = fopen_read_or_die( u_k_file); ^ delegate.c:121:2: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fp_u_k, "%s", u_k_str); ^ gcc -o easier-delegate delegate.o common.o policy_lang.o -O3 -Wall -lglib-2.0 -Wl,-rpath /usr/local/lib -lgmp -Wl,-rpath /usr/local/lib -lpbc -lbswabe -lcrypto -lcrypto -lgmp //usr/local/lib/libbswabe.a(core.o): In function `bswabe_setup': core.c:(.text+0x8ca): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_unserialize': misc.c:(.text+0xe59): undefined reference to `pairing_init_set_buf' //usr/local/lib/libbswabe.a(misc.o): In function `bswabe_pub_free': misc.c:(.text+0x32cd): undefined reference to `pairing_clear' collect2: error: ld returned 1 exit status Makefile:47: recipe for target 'easier-delegate' failed make: *** [easier-delegate] Error 1 cds@ubuntu:~/Desktop/piratte/piratte$