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

sys/python.sh seems to be failing #81

Closed
zardus opened this issue Apr 25, 2013 · 2 comments
Closed

sys/python.sh seems to be failing #81

zardus opened this issue Apr 25, 2013 · 2 comments

Comments

@zardus
Copy link

zardus commented Apr 25, 2013

I am getting the following from sys/python.sh:

PYTHON_VERSION=2.7
PYTHON=python${PYTHON_VERSION}

TODO: PREFIX=/usr

Using PYTHON_VERSION 2.7
Using PYTHON_CONFIG python2.7-config

==> Using valabind valabind 0.6.4 - pancake@nopcode.org
==> Using swig 2.0.4
Checking valabind languages support...

  • python: yes
  • perl: no
  • ruby: no
  • lua: no
  • go: no
  • java: no
  • guile: no
  • php5: /usr/bin/valabind-cc: 1: /usr/bin/valabind-cc: php-config: not found
    /usr/bin/valabind-cc: 1: /usr/bin/valabind-cc: php-config: not found
    no
  • node-ffi: no
  • ctypes: no
  • cxx: yes (g++)
  • valac: yes
    Supported langs:
  • python
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for working directories... current
    using prefix '/usr'
    checking for c compiler... gcc
    checking for c++ compiler... g++
    checking for valabind... /usr/bin/valabind
    checking for swig... /usr/bin/swig
    checking for g-ir-compiler... no
    checking pkg-config flags for r_core... yes
    creating ./config.mk
    cleaning temporally files... done

Final report:

  • PREFIX = /usr
  • HAVE_SWIG = 1
  • HAVE_VALABIND = 1
  • HAVE_GIRCOMPILER = 0
  • DEVEL_MODE = 1
    mkdir -p /usr/share/vala/vapi
    /usr/bin/install -m 644 vapi/.vapi vapi/.deps /usr/share/vala/vapi
    rm -f .so r_
    Build r_core -lr_core -lr_config -lr_cons -lr_cmd -lr_util -lr_flags -lr_asm -lr_lib -lr_debug -lr_hash -lr_bin -lr_lang -lr_io -lr_anal -lr_parse -lr_bp -lr_egg -lr_reg -lr_search -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic -lr_db
    valabind-cc python r_core -NRadare --swig -I../../libr/include -x --vapidir=../vapi ../vapi/r_core -I/usr/include/libr -lr_core -lr_config -lr_cons -lr_cmd -lr_util -lr_flags -lr_asm -lr_lib -lr_debug -lr_hash -lr_bin -lr_lang -lr_io -lr_anal -lr_parse -lr_bp -lr_egg -lr_reg -lr_search -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic -lr_db
    valabind -x -x --vapidir ../vapi -o r_core.i -m r_core ../vapi/r_core --swig -NRadare
    Unknown option -NRadare
    Try --help
    ... r_core.so
    Build r_bin -lr_bin -lr_lib -lr_util
    valabind-cc python r_bin -NRadare --swig -I../../libr/include -x --vapidir=../vapi ../vapi/r_bin -I/usr/include/libr -lr_bin -lr_lib -lr_util
    valabind -x -x --vapidir ../vapi -o r_bin.i -m r_bin ../vapi/r_bin --swig -NRadare
    Unknown option -NRadare
    Try --help
    ... r_bin.so
    Build r_asm -lr_asm -lr_lib -lr_util -lr_parse -lr_db
    valabind-cc python r_asm -NRadare --swig -I../../libr/include -x --vapidir=../vapi ../vapi/r_asm -I/usr/include/libr -lr_asm -lr_lib -lr_util -lr_parse -lr_db
    valabind -x -x --vapidir ../vapi -o r_asm.i -m r_asm ../vapi/r_asm --swig -NRadare
    Unknown option -NRadare
    Try --help
    ... r_asm.so
    cd .. ; make install-python
    make[1]: Entering directory /opt/analrepo/build/radare2/r2-bindings' [ -e python/_r_core.so ] && true make[1]: *** [install-python] Error 1 make[1]: Leaving directory/opt/analrepo/build/radare2/r2-bindings'
    make: *** [install] Error 2

Radare2 itself installs and works fine. Please let me know if I can provide more info :-)

@radare
Copy link
Collaborator

radare commented Apr 25, 2013

Are you using the latest version of valabind? The error says that he cant understand the -N flag

On Apr 25, 2013, at 6:40, Yan notifications@github.com wrote:

I am getting the following from sys/python.sh:

PYTHON_VERSION=2.7
PYTHON=python${PYTHON_VERSION}

#TODO: PREFIX=/usr
Using PYTHON_VERSION 2.7
Using PYTHON_CONFIG python2.7-config

==> Using valabind valabind 0.6.4 - pancake@nopcode.org
==> Using swig 2.0.4
Checking valabind languages support...

python: yes
perl: no
ruby: no
lua: no
go: no
java: no
guile: no
php5: /usr/bin/valabind-cc: 1: /usr/bin/valabind-cc: php-config: not found /usr/bin/valabind-cc: 1: /usr/bin/valabind-cc: php-config: not found no
node-ffi: no
ctypes: no
cxx: yes (g++)
valac: yes Supported langs:
python checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for working directories... current using prefix '/usr' checking for c compiler... gcc checking for c++ compiler... g++ checking for valabind... /usr/bin/valabind checking for swig... /usr/bin/swig checking for g-ir-compiler... no checking pkg-config flags for r_core... yes creating ./config.mk cleaning temporally files... done
Final report:

PREFIX = /usr
HAVE_SWIG = 1
HAVE_VALABIND = 1
HAVE_GIRCOMPILER = 0
DEVEL_MODE = 1 mkdir -p /usr/share/vala/vapi /usr/bin/install -m 644 vapi/.vapi vapi/.deps /usr/share/vala/vapi rm -f .so r_ Build r_core -lr_core -lr_config -lr_cons -lr_cmd -lr_util -lr_flags -lr_asm -lr_lib -lr_debug -lr_hash -lr_bin -lr_lang -lr_io -lr_anal -lr_parse -lr_bp -lr_egg -lr_reg -lr_search -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic -lr_db
valabind-cc python r_core -NRadare --swig -I../../libr/include -x --vapidir=../vapi ../vapi/r_core -I/usr/include/libr -lr_core -lr_config -lr_cons -lr_cmd -lr_util -lr_flags -lr_asm -lr_lib -lr_debug -lr_hash -lr_bin -lr_lang -lr_io -lr_anal -lr_parse -lr_bp -lr_egg -lr_reg -lr_search -lr_syscall -lr_sign -lr_diff -lr_socket -lr_fs -lr_magic -lr_db valabind -x -x --vapidir ../vapi -o r_core.i -m r_core ../vapi/r_core --swig -NRadare Unknown option -NRadare Try --help ... r_core.so Build r_bin -lr_bin -lr_lib -lr_util
valabind-cc python r_bin -NRadare --swig -I../../libr/include -x --vapidir=../vapi ../vapi/r_bin -I/usr/include/libr -lr_bin -lr_lib -lr_util valabind -x -x --vapidir ../vapi -o r_bin.i -m r_bin ../vapi/r_bin --swig -NRadare Unknown option -NRadare Try --help ... r_bin.so Build r_asm -lr_asm -lr_lib -lr_util -lr_parse -lr_db
valabind-cc python r_asm -NRadare --swig -I../../libr/include -x --vapidir=../vapi ../vapi/r_asm -I/usr/include/libr -lr_asm -lr_lib -lr_util -lr_parse -lr_db valabind -x -x --vapidir ../vapi -o r_asm.i -m r_asm ../vapi/r_asm --swig -NRadare Unknown option -NRadare Try --help ... r_asm.so cd .. ; make install-python make[1]: Entering directory /opt/analrepo/build/radare2/r2-bindings' [ -e python/_r_core.so ] && true make[1]: *** [install-python] Error 1 make[1]: Leaving directory/opt/analrepo/build/radare2/r2-bindings' make: *** [install] Error 2 ==========================
Radare2 itself installs and works fine. Please let me know if I can provide more info :-)


Reply to this email directly or view it on GitHub.

@radare
Copy link
Collaborator

radare commented Apr 28, 2013

I have submited a fix in r2-git, i'm closing this bug, feel free to comment if there's any issue and I will reopen the bug if not working for you.

Thanks

@radare radare closed this as completed Apr 28, 2013
yossizap pushed a commit to yossizap/radare2 that referenced this issue Dec 30, 2019
* Fixed a lot of warnings and removed waste code

* Fixed more warnings and removed more waste code

* restore XrefsDialog::updateLabels

This function is used in memorywidget.cpp
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