[MacPorts] #70580: cpabe fails to build: policy_lang.y: error: expected ‘;’ before ‘}’ token

MacPorts noreply at macports.org
Sat Aug 17 23:07:37 UTC 2024


#70580: cpabe fails to build: policy_lang.y: error: expected ‘;’ before ‘}’ token
--------------------------+--------------------
 Reporter:  barracuda156  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:  2.10.1
 Keywords:                |       Port:  cpabe
--------------------------+--------------------
 {{{
 --->  Building cpabe
 Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_cpabe/cpabe/work/cpabe-0.11"
 && /usr/bin/make -j6 -w all
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_security_cpabe/cpabe/work/cpabe-0.11'
 ccache /usr/bin/gcc-4.2 -c -o setup.o setup.c -O3 -Wall
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pbc -I/opt/local/include
 -DPACKAGE_NAME=\"cpabe\" -DPACKAGE_TARNAME=\"cpabe\"
 -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"cpabe\ 0.11\"
 -DPACKAGE_BUGREPORT=\"bethenco at 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 -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
 ccache /usr/bin/gcc-4.2 -c -o common.o common.c -O3 -Wall
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pbc -I/opt/local/include
 -DPACKAGE_NAME=\"cpabe\" -DPACKAGE_TARNAME=\"cpabe\"
 -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"cpabe\ 0.11\"
 -DPACKAGE_BUGREPORT=\"bethenco at 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 -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
 ccache /usr/bin/gcc-4.2 -c -o enc.o enc.c -O3 -Wall
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pbc -I/opt/local/include
 -DPACKAGE_NAME=\"cpabe\" -DPACKAGE_TARNAME=\"cpabe\"
 -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"cpabe\ 0.11\"
 -DPACKAGE_BUGREPORT=\"bethenco at 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 -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
 if which bison 2> /dev/null; then \
            bison -o policy_lang.c policy_lang.y; \
         fi
 ccache /usr/bin/gcc-4.2 -c -o keygen.o keygen.c -O3 -Wall
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pbc -I/opt/local/include
 -DPACKAGE_NAME=\"cpabe\" -DPACKAGE_TARNAME=\"cpabe\"
 -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"cpabe\ 0.11\"
 -DPACKAGE_BUGREPORT=\"bethenco at 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 -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
 /opt/local/bin/bison
 ccache /usr/bin/gcc-4.2 -c -o dec.o dec.c -O3 -Wall
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pbc -I/opt/local/include
 -DPACKAGE_NAME=\"cpabe\" -DPACKAGE_TARNAME=\"cpabe\"
 -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"cpabe\ 0.11\"
 -DPACKAGE_BUGREPORT=\"bethenco at 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 -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
 ccache /usr/bin/gcc-4.2 -c -o test-lang.o test-lang.c -O3 -Wall
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pbc -I/opt/local/include
 -DPACKAGE_NAME=\"cpabe\" -DPACKAGE_TARNAME=\"cpabe\"
 -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"cpabe\ 0.11\"
 -DPACKAGE_BUGREPORT=\"bethenco at 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 -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 ‘init_aes’:
 common.c:29: warning: ‘AES_set_encrypt_key’ is deprecated (declared at
 /opt/local/include/openssl/aes.h:52)
 common.c:31: warning: ‘AES_set_decrypt_key’ is deprecated (declared at
 /opt/local/include/openssl/aes.h:55)
 common.c: In function ‘aes_128_cbc_encrypt’:
 common.c:65: warning: ‘AES_cbc_encrypt’ is deprecated (declared at
 /opt/local/include/openssl/aes.h:68)
 common.c: In function ‘aes_128_cbc_decrypt’:
 common.c:83: warning: ‘AES_cbc_encrypt’ is deprecated (declared at
 /opt/local/include/openssl/aes.h:68)
 common.c: In function ‘suck_stdin’:
 common.c:171: warning: ignoring return value of ‘g_string_free_and_steal’,
 declared with attribute warn_unused_result
 ccache /usr/bin/gcc-4.2 -c -o policy_lang.o policy_lang.c -O3 -Wall
 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include
 -I/opt/local/include -I/opt/local/include/pbc -I/opt/local/include
 -DPACKAGE_NAME=\"cpabe\" -DPACKAGE_TARNAME=\"cpabe\"
 -DPACKAGE_VERSION=\"0.11\" -DPACKAGE_STRING=\"cpabe\ 0.11\"
 -DPACKAGE_BUGREPORT=\"bethenco at 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 -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
 ccache /usr/bin/gcc-4.2 -o cpabe-setup setup.o common.o -O3 -Wall
 -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -Wl,-rpath
 /opt/local/lib -Wl,-rpath /usr/local/lib -lgmp -L/opt/local/lib -Wl,-rpath
 /opt/local/lib -Wl,-rpath /usr/local/lib -lpbc -L/opt/local/lib -lbswabe
 -lcrypto -lcrypto
 ccache /usr/bin/gcc-4.2 -o cpabe-dec dec.o common.o -O3 -Wall
 -L/opt/local/lib -lglib-2.0 -lintl -L/opt/local/lib -Wl,-rpath
 /opt/local/lib -Wl,-rpath /usr/local/lib -lgmp -L/opt/local/lib -Wl,-rpath
 /opt/local/lib -Wl,-rpath /usr/local/lib -lpbc -L/opt/local/lib -lbswabe
 -lcrypto -lcrypto
 policy_lang.y: In function ‘yyparse’:
 policy_lang.y:67: error: expected ‘;’ before ‘}’ token
 policy_lang.y: In function ‘yylex’:
 policy_lang.y:424: warning: ignoring return value of
 ‘g_string_free_and_steal’, declared with attribute warn_unused_result
 make: *** [policy_lang.o] Error 1
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/70580>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list