Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make install error at virtualsmartcard #269

Closed
xuxiaoyang0527 opened this issue Mar 12, 2024 · 1 comment
Closed

make install error at virtualsmartcard #269

xuxiaoyang0527 opened this issue Mar 12, 2024 · 1 comment

Comments

@xuxiaoyang0527
Copy link

Hi author,

When run make install at virtualsmartcard, it report SyntaxError: invalid syntax.

CardGenerator.pySEutils.pyTLVutils.pyConstantDefinitions.pySmartcardFilesystem.pyutils.pyCryptoUtils.pySmartcardSAM.pySWutils.pyVirtualSmartcard.py__init__.py
Byte-compiling python modules (optimized versions) ...
CardGenerator.pySEutils.pyTLVutils.pyConstantDefinitions.pySmartcardFilesystem.pyutils.pyCryptoUtils.pySmartcardSAM.pySWutils.pyVirtualSmartcard.py__init__.py
/bin/mkdir -p '/usr/local/lib/python3.5/dist-packages/virtualsmartcard/cards'
/usr/bin/install -c -m 644 virtualsmartcard/cards/init.py virtualsmartcard/cards/ePass.py virtualsmartcard/cards/nPA.py virtualsmartcard/cards/Relay.py virtualsmartcard/cards/RelayMiddleman.py virtualsmartcard/cards/cryptoflex.py '/usr/local/lib/python3.5/dist-packages/virtualsmartcard/cards'
Byte-compiling python modules...
init.pyePass.pynPA.pyRelay.pyRelayMiddleman.py File "/usr/local/lib/python3.5/dist-packages/virtualsmartcard/cards/RelayMiddleman.py", line 8
def handleInPDU(self, inPDU: bytes):
^
SyntaxError: invalid syntax

//my environment configuration.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking whether ln -s works... yes
checking for a sed that does not truncate output... (cached) /bin/sed
checking for python... /usr/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/dist-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/dist-packages
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... yes
checking for help2man... /usr/bin/help2man
checking whether make supports nested variables... (cached) yes
checking for PCSC... yes
checking for ifdhandler.h... yes
checking debuglog.h usability... yes
checking debuglog.h presence... yes
checking for debuglog.h... yes
configure: WARNING: libqrencode not found by pkg-config
checking qrencode.h usability... no
checking qrencode.h presence... no
checking for qrencode.h... no
checking for QRcode_encodeString... checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking whether SO_NOSIGPIPE is declared... no
checking whether MSG_NOSIGNAL is declared... yes
checking whether inet_ntop is declared... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memset... yes
checking for select... yes
checking for socket... yes
checking for strlcpy... no
checking for strlcat... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating doc/api/Makefile
config.status: creating npa-example-data/Makefile
config.status: creating npa-example-data/dh/Makefile
config.status: creating npa-example-data/ecdh/Makefile
config.status: creating src/Makefile
config.status: creating src/pcsclite-vpcd/Makefile
config.status: creating src/ifd-vpcd/Makefile
config.status: creating src/vpcd/Makefile
config.status: creating src/vpicc/Makefile
config.status: creating src/vpcd-config/Makefile
config.status: creating MacOSX/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

virtualsmartcard has been configured with following options:

Version: 0.10
User binaries: /usr/local/bin
PC/SC configuration: /etc/reader.conf.d
Driver directory: /usr/lib/pcsc/drivers/serial
Python site-packages: /usr/local/lib/python2.7/dist-packages

Build libpcsclite: no
Build Info.plist: no
Build reader.conf:
VPCD hostname: /dev/null
VPCD slot count: 2

Host: x86_64-pc-linux-gnu
Compiler: gcc
Preprocessor flags:
Compiler flags: -g -O2
Linker flags:
Libraries:

PTHREAD_LIBS:
PTHREAD_CFLAGS: -pthread
PCSC_CFLAGS: -pthread -I/usr/include/PCSC
PCSC_LIBS: -lpcsclite
QRENCODE_CFLAGS:
QRENCODE_LIBS:
BUNDLE_HOST: Linux
LIB_PREFIX: lib
DYN_LIB_EXT: so

HELP2MAN: /usr/bin/help2man
PYTHON: /usr/bin/python

Please help check this issue.

Thanks.

@frankmorgner
Copy link
Owner

we switched to python3 some time ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants