Package: shedskin
Version: 0.9.2-1

I tried to compile a simple python program to C++ and then to binary.

$ cat 4.py
print(333)
$ shedskin 4.py
$ make
g++  -O2 -march=native -Wno-deprecated  -I. -I/usr/share/shedskin/lib
4.cpp /usr/share/shedskin/lib/re.cpp
/usr/share/shedskin/lib/builtin.cpp -lgc -lpcre  -o 4
In file included from /usr/share/shedskin/lib/builtin.cpp:131:0:
/usr/share/shedskin/lib/builtin/file.cpp: In member function ‘virtual
__shedskin__::__ss_bool __shedskin__::file::isatty()’:
/usr/share/shedskin/lib/builtin/file.cpp:190:20: error: ‘::isatty’ has
not been declared
/usr/share/shedskin/lib/builtin/file.cpp: In member function ‘virtual
void* __shedskin__::file::truncate(int)’:
/usr/share/shedskin/lib/builtin/file.cpp:200:37: error: ‘ftruncate’
was not declared in this scope
make: *** [4] Error 1


C++ file file.cpp installed by shedskin to
/usr/share/shedskin/lib/builtin/file.cpp fails to compile.

File file.cpp seems to lack inclusion of unistd.h and sys/types.h.
When I added them to file.cpp, the problem was solved.

Best regards,
Boris Nagaev


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to