[OpenWrt-Devel] Package compile which requires Python.h

W. Michael Petullo mike at flyn.org
Sat Oct 17 19:08:13 EDT 2015


I am trying to create a new gobject-introspection package for
OpenWrt. This package builds some code using Python.h. However, the
configuration of gobject-introspection fails with the following appearing
in config.log:

configure:14641: i486-openwrt-linux-musl-gcc -E -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/lib/libiconv-stub/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/lib/libintl-stub/include  -I/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7 -I/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7 conftest.c
In file included from /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/Python.h:8:0,
                 from conftest.c:42:
/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/pyconfig.h:1019:0: warning: "SIZEOF_LONG" redefined [enabled by default]
 #define SIZEOF_LONG 8
 ^
conftest.c:30:0: note: this is the location of the previous definition
 #define SIZEOF_LONG 4
 ^
In file included from /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/Python.h:58:0,
                 from conftest.c:42:
/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
  ^

Has anyone else seen this LONG_BIT check causing a problem when building
a Python-related package?

-- 
Mike

:wq
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list