[Slackbuilds-users] help. trying to create package for radare2-bindings.

Fernando Lopez fernando.lopezjr at gmail.com
Thu Sep 28 23:16:02 UTC 2017


I can't get it to compile.... maybe missing something? I did try version,
1.4.x and 1.6.x and latest commit. I believe it is just broken...

*./configure*
==> Using valabind 1.4
==> Using swig 3.0.12
Checking valabind languages support...
 - python: yes
 - perl: yes
 - ruby: yes
 - lua: yes
 - go: no
 - java: yes
 - guile: yes
 - php5: no
 - node-ffi: no
 - ctypes: yes
 - ocaml: no
 - cxx: yes (g++)
 - valac: yes
Supported langs:
 - ctypes
 - cxx
 - duktape
 - guile
 - java
 - lua
 - perl
 - python
 - ruby
 - valac
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/local'
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... /usr/bin/g-ir-compiler
Using PKGCONFIG: pkg-config
checking pkg-config flags for r_core... yes
creating ./config.mk
cleaning temporally files... done

Final report:
 - PREFIX = /usr/local
 - HAVE_SWIG = 1
 - HAVE_VALABIND = 1
 - HAVE_GIRCOMPILER = 1


*make > error.txt 2>&1*
(pkg-config:6055): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:6055): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed
make -C libr/lang/p
make[1]: Entering directory
'/home/ferdna/Downloads/slackbuilds/radare2-bindings/radare2-bindings/radare2-bindings-1.6.0/libr/lang/p'

(pkg-config:6064): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:6064): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:6078): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:6078): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed
cc -I/usr/include/libr -I/usr/include/texlua52   -c -o lua.o lua.c
lua.c: In function ‘init’:
lua.c:10:16: error: ‘PREFIX’ undeclared (first use in this function);
did you mean ‘PRIX8’?
 #define LIBDIR PREFIX"/lib"
                ^
lua.c:97:20: note: in expansion of macro ‘LIBDIR’
  r_lua_file (NULL, LIBDIR"/radare2/"R2_VERSION"/radare.lua");
                    ^~~~~~
lua.c:10:16: note: each undeclared identifier is reported only once for
each function it appears in
 #define LIBDIR PREFIX"/lib"
                ^
lua.c:97:20: note: in expansion of macro ‘LIBDIR’
  r_lua_file (NULL, LIBDIR"/radare2/"R2_VERSION"/radare.lua");
                    ^~~~~~
lua.c:10:22: error: expected ‘)’ before string constant
 #define LIBDIR PREFIX"/lib"
                      ^
lua.c:97:20: note: in expansion of macro ‘LIBDIR’
  r_lua_file (NULL, LIBDIR"/radare2/"R2_VERSION"/radare.lua");
                    ^~~~~~
make[1]: *** [<builtin>: lua.o] Error 1
make[1]: Leaving directory
'/home/ferdna/Downloads/slackbuilds/radare2-bindings/radare2-bindings/radare2-bindings-1.6.0/libr/lang/p'
make: *** [Makefile:46: all] Error 2


*THIS IS FOR LATEST COMMIT(1846502d79f8abe309769829d7f6c72e9e9fb708):*
*bash-4.4$ make*

(pkg-config:7653): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7653): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed
make -C libr/lang/p
make[1]: Entering directory
'/home/ferdna/Downloads/slackbuilds/radare2-bindings/radare2-bindings/radare2-bindings-1846502d79f8abe309769829d7f6c72e9e9fb708/libr/lang/p'

(pkg-config:7662): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7662): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7682): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7682): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed
cc -I/usr/include/libr -DPREFIX=\"/usr/local\" -I/usr/include/texlua52   -c
-o lua.o lua.c

(pkg-config:7690): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7690): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7695): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7695): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed
cc -I/usr/include/libr -DPREFIX=\"/usr/local\" -I/usr/include/texlua52
-fPIC  -lr_core -lr_io -lr_util -shared -o lang_lua.so lua.c -ltexlua52

(pkg-config:7705): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7705): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed
cc -I/usr/include/libr -DPREFIX=\"/usr/local\" -I/usr/include/texlua52
-I/usr/lib64/perl5/CORE/ \
-fPIC  -lr_core -lr_io -lr_util -shared -o lang_perl.so perl.c \
`perl -MExtUtils::Embed -e ccopts | sed -e 's/-arch [^\s]* //g'` \
`perl -MExtUtils::Embed -e ldopts | sed -e 's/-arch [^\s]* //g'`
In file included from /usr/include/ctype.h:25:0,
                 from /usr/include/libr/r_types_base.h:4,
                 from /usr/include/libr/r_types.h:160,
                 from /usr/include/libr/r_lib.h:7,
                 from perl.c:4:
/usr/include/features.h:373:4: warning: #warning _FORTIFY_SOURCE requires
compiling with optimization (-O) [-Wcpp]
 #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
    ^~~~~~~
perl.c: In function ‘setup’:
perl.c:75:2: warning: #warning TODO: implement setup in lang/perl [-Wcpp]
 #warning TODO: implement setup in lang/perl
  ^~~~~~~

(pkg-config:7725): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed

(pkg-config:7725): GLib-CRITICAL **: g_string_insert_len: assertion 'len ==
0 || val != NULL' failed
cc python.c -I/usr/include/libr -DPREFIX=\"/usr/local\"
-I/usr/include/texlua52 -I/usr/include/python2.7 -I/usr/include/python2.7
-g -O2 -DNDEBUG -g -fwrapv -O3 -Wall  -DPYVER=2 -lpython2.7 -lpthread -ldl
-lutil -lm -L/usr/lib  -lr_core -lr_io -lr_util -shared \
  -lr_core -lr_io -lr_util -shared -fPIC -o lang_python2.so
In file included from python.c:76:0:
python/io.c: In function ‘Radare_plugin_io’:
python/io.c:178:4: error: ‘RLibStruct {aka struct r_lib_struct_t}’ has no
member named ‘free’
  lp.free = (void (*)(void *data))Radare_plugin_io_free;
    ^
python/io.c:180:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  Py_RETURN_TRUE;
  ^~~~~~~~~~~~~~
In file included from python.c:77:0:
python/asm.c: In function ‘Radare_plugin_asm’:
python/asm.c:89:4: error: ‘RLibStruct {aka struct r_lib_struct_t}’ has no
member named ‘free’
  lp.free = (void (*)(void *data))Radare_plugin_asm_free;
    ^
python/asm.c:91:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  Py_RETURN_TRUE;
  ^~~~~~~~~~~~~~
In file included from python.c:78:0:
python/anal.c: In function ‘Radare_plugin_anal’:
python/anal.c:234:4: error: ‘RLibStruct {aka struct r_lib_struct_t}’ has no
member named ‘free’
  lp.free = (void (*)(void *data))Radare_plugin_anal_free;
    ^
python/anal.c:236:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  Py_RETURN_TRUE;
  ^~~~~~~~~~~~~~
In file included from python.c:79:0:
python/bin.c: In function ‘Radare_plugin_bin’:
python/bin.c:787:4: error: ‘RLibStruct {aka struct r_lib_struct_t}’ has no
member named ‘free’
  lp.free = (void (*)(void *data))Radare_plugin_bin_free;
    ^
python/bin.c:789:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  Py_RETURN_TRUE;
  ^~~~~~~~~~~~~~
In file included from python.c:80:0:
python/core.c: In function ‘Radare_plugin_core’:
python/core.c:51:4: error: ‘RLibStruct {aka struct r_lib_struct_t}’ has no
member named ‘free’
  lp.free = (void (*)(void *data))Radare_plugin_core_free;
    ^
python/core.c:53:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  Py_RETURN_TRUE;
  ^~~~~~~~~~~~~~
python.c: In function ‘init_radare_module’:
python.c:265:2: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
  Py_INCREF(&RadareType);
  ^~~~~~~~~
make[1]: *** [Makefile:72: lang_python.so] Error 1
make[1]: Leaving directory
'/home/ferdna/Downloads/slackbuilds/radare2-bindings/radare2-bindings/radare2-bindings-1846502d79f8abe309769829d7f6c72e9e9fb708/libr/lang/p'
make: *** [Makefile:46: all] Error 2
bash-4.4$

-- 

------------
Regards,
    Fernando Lopez Jr.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170928/886776e5/attachment.html>


More information about the SlackBuilds-users mailing list