#3331: ctypes: ValueError: invalid literal for int() with base 8: '08420217248550443400745280086994171' --------------------------+--------------------------------- Reporter: neteler | Owner: grass-dev@… Type: defect | Status: new Priority: normal | Milestone: 7.2.2 Component: Python | Version: svn-releasebranch72 Resolution: | Keywords: ctypes, python CPU: Unspecified | Platform: Unspecified --------------------------+---------------------------------
Comment (by neteler): While we are at it: I found three parsing errors with the patched ctypes version (F25, gcc6): {{{ GISRC=/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/demolocation/.grassrc72 GISBASE=/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu PATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/scripts:$PATH" PYTHONPATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/etc/python:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc- linux-gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/scripts:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/lib:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/lib:" LC_ALL=C ./ctypesgen.py --cpp "gcc -E -I/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu/include -I/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG" -lgrass_gis.7.2.2svn /home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/include/grass/gis.h /home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include/grass/defs/gis.h -o OBJ.x86_64-pc-linux-gnu/gis.py Status: Preprocessing /home/mundialis/tmp/tmpJOuynC.h Status: gcc -E -I/home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include -I/home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" /home/mundialis/tmp/tmpJOuynC.h Status: Parsing /home/mundialis/tmp/tmpJOuynC.h Status: Processing description list. Warning: Member "from" of Struct "DateTime" has been renamed to "_from" because it has the same name as a Python keyword. Warning: Member "def" of Struct "Option" has been renamed to "_def" because it has the same name as a Python keyword. Warning: Could not parse macro "#define serialize_int32_le(buf,x) do { ( buf ) [ i0 ] = ( ( x ) >> i0 ) & i255 ; ( buf ) [ i1 ] = ( ( x ) >> i8 ) & i255 ; ( buf ) [ i2 ] = ( ( x ) >> i16 ) & i255 ; ( buf ) [ i3 ] = ( ( x ) >> i24 ) & i255 ; } while ( i0 )" Warning: Could not parse macro "#define serialize_int32_be(buf,x) do { ( buf ) [ i0 ] = ( ( x ) >> i24 ) & i255 ; ( buf ) [ i1 ] = ( ( x ) >> i16 ) & i255 ; ( buf ) [ i2 ] = ( ( x ) >> i8 ) & i255 ; ( buf ) [ i3 ] = ( ( x ) >> i0 ) & i255 ; } while ( i0 )" Status: Writing to OBJ.x86_64-pc-linux-gnu/gis.py. Status: Wrapping complete. [...] GISRC=/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/demolocation/.grassrc72 GISBASE=/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu PATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/scripts:$PATH" PYTHONPATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/etc/python:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc- linux-gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/scripts:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/lib:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/lib:" LC_ALL=C ./ctypesgen.py --cpp "gcc -E -I/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu/include -I/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG" -lgrass_gmath.7.2.2svn /home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/include/grass/gmath.h /home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include/grass/defs/gmath.h -o OBJ.x86_64-pc-linux- gnu/gmath.py Status: Preprocessing /home/mundialis/tmp/tmp956DqU.h Status: gcc -E -I/home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include -I/home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" /home/mundialis/tmp/tmp956DqU.h Status: Parsing /home/mundialis/tmp/tmp956DqU.h Error: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/stddef.h:427: Syntax error at '__attribute__' Error: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/stddef.h:427: Syntax error at '(' Error: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/stddef.h:428: Syntax error at '__attribute__' Error: /usr/lib/gcc/x86_64-redhat-linux/6.3.1/include/stddef.h:428: Syntax error at '(' Status: Processing description list. Status: Writing to OBJ.x86_64-pc-linux-gnu/gmath.py. [...] GISRC=/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/demolocation/.grassrc72 GISBASE=/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu PATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/scripts:$PATH" PYTHONPATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/etc/python:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/gui/wxpython:$PYTHONPATH" LD_LIBRARY_PATH="/home/mundialis/software/grass72_svn/dist.x86_64-pc- linux-gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/bin:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/scripts:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/lib:/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/lib:" LC_ALL=C ./ctypesgen.py --cpp "gcc -E -I/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu/include -I/home/mundialis/software/grass72_svn/dist.x86_64-pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG" -lgrass_temporal.7.2.2svn /home/mundialis/software/grass72_svn/dist.x86_64-pc-linux- gnu/include/grass/temporal.h -o OBJ.x86_64-pc-linux-gnu/temporal.py Status: Preprocessing /home/mundialis/tmp/tmppn67pF.h Status: gcc -E -I/home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include -I/home/mundialis/software/grass72_svn/dist.x86_64 -pc-linux-gnu/include -D__GLIBC_HAVE_LONG_LONG -U __GNUC__ -dD "-Dinline=" "-D__inline__=" "-D__extension__=" "-D_Bool=uint8_t" "-D__const=const" "-D__asm__(x)=" "-D__asm(x)=" "-DCTYPESGEN=1" /home/mundialis/tmp/tmppn67pF.h Status: Parsing /home/mundialis/tmp/tmppn67pF.h Status: Processing description list. Warning: Member "from" of Struct "DateTime" has been renamed to "_from" because it has the same name as a Python keyword. Warning: Member "in" of Struct "_tgisDataset" has been renamed to "_in" because it has the same name as a Python keyword. Warning: Could not parse macro "#define TGIS STR3DS i5" Status: Writing to OBJ.x86_64-pc-linux-gnu/temporal.py. Status: Wrapping complete. }}} I cannot judge how problematic they are... -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3331#comment:24> GRASS GIS <https://grass.osgeo.org>
_______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/grass-dev