-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
So I'm stuck trying to build and package python_seco_librange
(what I want), librange
and libcrange
. I tried the non python libraries as an attempt to be able to build the python one.
In each I resolved missing commands mentioned in errors from running multipkg -d deb .
in each of those three folders. In python_seco_librange
I am stuck on
git/range/python_seco_librange$ multipkg -p deb .
Build failed: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
running install
running build
running build_ext
building 'secorange' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c secorange.c -o build/temp.linux-x86_64-2.7/secorange.o
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffe
r-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/secorange.o -L/usr/local/lib -lrange -lpcre -o build/lib.linux-x86_64-2.7/secorange.so
/usr/bin/ld: cannot find -lrange
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
I'm fairly sure its stuck looking for librange.so
and librange.a
but I have no idea where to get those.
So as an attempt to solve that I started trying to build libcrange
which ends up with
git/range/libcrange$ multipkg -p deb .
Build failed: byacc: e - line 13 of "/tmp/oc_d6p8UkL/build/src/range_parser.y", syntax error
%locations
^
make[3]: *** [range_parser.c] Error 1
make[3]: Leaving directory `/tmp/oc_d6p8UkL/build/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/oc_d6p8UkL/build/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/oc_d6p8UkL/build'
make: *** [all] Error 2
Lastly when trying to build librange
I get
git/range/librange$ multipkg -p deb .
Build failed: /usr/lib/ocaml/caml/memory.h:227:28: note: in expansion of macro ‘CAMLreturnT’
#define CAMLreturn(result) CAMLreturnT(value, result)
^
librange.c:141:5: note: in expansion of macro ‘CAMLreturn’
CAMLreturn(strdup(String_val(caml_result)));
^
ld -fPIC -Bsymbolic -shared --whole-archive -o librange.so camlcode.o librange.o /usr/lib/ocaml/libunix.a /usr/lib/ocaml/libasmrun.a /usr/lib/ocaml/pcre/libpcre_stubs.a -lm -lpcre -ldl
ld: /usr/lib/ocaml/libasmrun.a(startup.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/lib/ocaml/libasmrun.a(startup.o): error adding symbols: Bad value
make: *** [librange.so] Error 1
I'm running ubuntu 14.04 LTS and pulled all the various commands these were erroring on from the official ubuntu mirrors.
Metadata
Metadata
Assignees
Labels
No labels