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

glib2 not compiling #72

Closed
champtar opened this issue Jun 30, 2014 · 6 comments
Closed

glib2 not compiling #72

champtar opened this issue Jun 30, 2014 · 6 comments

Comments

@champtar
Copy link
Member

hi @tripolar

libtool: link: gcc -Wall -Wstrict-prototypes -Werror=declaration-after-statement -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=pointer-arith -Werror=init-self -Werror=format=2 -Werror=missing-include-dirs -O2 -I/tmp/openwrt/staging_dir/host/include -g -o .libs/gio-querymodules gio-querymodules.o  -L/tmp/openwrt/staging_dir/host/lib ./.libs/libgio-2.0.so /tmp/openwrt/build_dir/host/glib-2.41.1/gobject/.libs/libgobject-2.0.so /tmp/openwrt/build_dir/host/glib-2.41.1/gmodule/.libs/libgmodule-2.0.so -lz -lselinux -lresolv ../gobject/.libs/libgobject-2.0.so /tmp/openwrt/staging_dir/host/lib/../lib64/libffi.so ../gmodule/.libs/libgmodule-2.0.so -ldl /tmp/openwrt/build_dir/host/glib-2.41.1/glib/.libs/libglib-2.0.so ../glib/.libs/libglib-2.0.so -lpthread -Wl,-rpath -Wl,/tmp/openwrt/staging_dir/host/lib -Wl,-rpath -Wl,/tmp/openwrt/staging_dir/host/lib/../lib64
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libselinux.so: undefined reference to `lzma_stream_decoder@XZ_5.0'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libselinux.so: undefined reference to `lzma_end@XZ_5.0'
/usr/lib/gcc/x86_64-redhat-linux/4.8.2/../../../../lib64/libselinux.so: undefined reference to `lzma_code@XZ_5.0'
collect2: error: ld returned 1 exit status
make[8]: *** [gio-querymodules] Error 1
make[8]: Leaving directory `/tmp/openwrt/build_dir/host/glib-2.41.1/gio'
make[7]: *** [all-recursive] Error 1
make[7]: Leaving directory `/tmp/openwrt/build_dir/host/glib-2.41.1/gio'
make[6]: *** [all] Error 2
make[6]: Leaving directory `/tmp/openwrt/build_dir/host/glib-2.41.1/gio'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/tmp/openwrt/build_dir/host/glib-2.41.1'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/tmp/openwrt/build_dir/host/glib-2.41.1'
make[3]: *** [/tmp/openwrt/build_dir/host/glib-2.41.1/.built] Error 2
make[3]: Leaving directory `/tmp/openwrt/feeds/packages/libs/glib2'
make[2]: *** [package/feeds/packages/glib2/host/compile] Error 2
make[2]: Leaving directory `/tmp/openwrt'
make[1]: *** [/tmp/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[1]: Leaving directory `/tmp/openwrt'
make: *** [world] Erreur 2
@nakarotori
Copy link
Contributor

quick fix: use --disable-selinux configure option according to configure.ac

@tripolar
Copy link
Contributor

tripolar commented Jul 1, 2014

it compiles fine here. did you recompile everything?

@champtar
Copy link
Member Author

champtar commented Jul 1, 2014

@tripolar, i've recompiled everything multiple times

make dirclean
rm .config
rm .config.old
echo "CONFIG_ALL=y" > .config
make IGNORE_ERRORS=m -j24 V=99

i have a patch that is "improving the build", but still not compiling
champtar@dbb8e04
can you take a look

btw, i'm building in a mock (minimal fedora 20)

@tripolar
Copy link
Contributor

tripolar commented Jul 3, 2014

does it work with the configure option nakarotori provided above? i can't reproduce the error. Did you try to use another linux distro to build it?

@champtar
Copy link
Member Author

champtar commented Jul 3, 2014

hi
--disable-selinux is already in Makefile,
i haven't tried another distro because this box is FAST (20cpu ...) so i want to compile on it :)

champtar added a commit to champtar/packages that referenced this issue Jul 3, 2014
please test, see openwrt#72

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
champtar added a commit to champtar/packages that referenced this issue Jul 3, 2014
please test, see openwrt#72

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
@champtar
Copy link
Member Author

champtar commented Jul 3, 2014

@tripolar, can you test my PR (it now compile for me :) )

nakarotori added a commit to nakarotori/packages that referenced this issue Jul 6, 2014
please test, see openwrt#72

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
champtar added a commit that referenced this issue Jul 22, 2014
see #72

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
mkg20001 pushed a commit to mkg20001/packages that referenced this issue Jan 20, 2022
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

3 participants