Unable to build lxml with --static-deps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 14.04 x86_64
Python 2.7
libxml2-dev: 2.9.1+dfsg1-3ub
libxslt1-dev: 1.1.28-2build1
gcc: gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2
When running python setup.py bdist_wheel --static-deps, I get an error while building libiconv:
make[2]: Entering directory `/build/
make[3]: Entering directory `/build/
make[3]: Nothing to be done for `am--refresh'.
make[3]: Leaving directory `/build/
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
In file included from progname.c:26:0:
./stdio.h:1010:1: error: ‘gets’ undeclared here (not in a function)
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
^
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
gcc -DHAVE_CONFIG_H -DEXEEXT=\"\" -I. -I.. -I../lib -I../intl -DDEPENDS_
make[2]: *** [progname.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/build/
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/
make: *** [all] Error 2
Traceback (most recent call last):
File "app_main.py", line 75, in run_toplevel
File "setup.py", line 230, in <module>
**setup_
File "setup.py", line 144, in setup_extra_options
STATIC_CFLAGS, STATIC_BINARIES)
File "/build/
multicore=
File "/build/
cmmi(
File "/build/
cwd=build_dir, **call_setup)
File "/build/
raise Exception('Command "%s" returned code %s' % (cmd_desc, returncode))
Exception: Command "make -j5" returned code 512
Other projects have solved this by patching libiconv: https:/
description: | updated |
Just in case: please make sure you do not have a file "stdio.h" lying around somewhere in your build directory or so. At a quick glance, I couldn't find one in the libiconv sources.