% python -V Python 2.7.2 % python ./waf configure --prefix=${VIRTUAL_ENV} ./options() Setting top to : /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0 Setting out to : /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory ./configure() Checking for 'gcc' (c compiler) : ok Checking for program python : /home/user/source/python/virtualenvs/pib/bin/python Checking for python version : (2, 7, 2, 'final', 0) Checking for library python2.7 : not found Checking for library python2.7 : yes Checking for program python2.7-config : not found Checking for program python-config-2.7 : not found Checking for header Python.h : Could not find the python development headers The configuration failed (complete log in /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory/config.log) % cat /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory/config.log # project py2cairo (1.10.0) configured on Fri Jan 6 10:06:45 2012 by # waf 1.6.3 (abi 98, python 20702f0 on linux2) # using ./waf configure --prefix=/home/user/source/python/virtualenvs/pib # ---------------------------------------- Setting top to /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0 ---------------------------------------- Setting out to /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory ---------------------------------------- Checking for 'gcc' (c compiler) find program=['gcc', 'cc'] paths=['/opt/perl/bin', '/opt/java/jdk1.6.0_23/bin', '/home/user/bin', '/home/user/source/python/virtualenvs/pib/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/games'] var='CC' -> '/usr/bin/gcc' find program=['ar'] paths=['/opt/perl/bin', '/opt/java/jdk1.6.0_23/bin', '/home/user/bin', '/home/user/source/python/virtualenvs/pib/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/games'] var='AR' -> '/usr/bin/ar' ok ---------------------------------------- Checking for program python /home/user/source/python/virtualenvs/pib/bin/python find program=['python'] paths=['/opt/perl/bin', '/opt/java/jdk1.6.0_23/bin', '/home/user/bin', '/home/user/source/python/virtualenvs/pib/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/games'] var='PYTHON' -> '/home/user/source/python/virtualenvs/pib/bin/python' ['/home/user/source/python/virtualenvs/pib/bin/python', '-c', 'import sys\nfor x in sys.version_info: print(str(x))'] out: 2 7 2 final 0 ['/home/user/source/python/virtualenvs/pib/bin/python', '-c', "from distutils.sysconfig import get_config_var, get_python_lib\n\nprint(repr(get_python_lib(standard_lib=0, prefix='/home/user/source/python/virtualenvs/pib')))"] out: '/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages' ['/home/user/source/python/virtualenvs/pib/bin/python', '-c', "from distutils.sysconfig import get_config_var, get_python_lib\n\nprint(repr(get_python_lib(plat_specific=1, standard_lib=0, prefix='/home/user/source/python/virtualenvs/pib')))"] out: '/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages' ---------------------------------------- Checking for python version (2, 7, 2, 'final', 0) ['/home/user/source/python/virtualenvs/pib/bin/python', '-c', "from distutils.sysconfig import get_config_var\n\nprint(repr(get_config_var('prefix')))\nprint(repr(get_config_var('SO')))\nprint(repr(get_config_var('LDFLAGS')))\nprint(repr(get_config_var('LIBDIR')))\nprint(repr(get_config_var('LIBPL')))\nprint(repr(get_config_var('INCLUDEPY')))\nprint(repr(get_config_var('Py_ENABLE_SHARED')))\nprint(repr(get_config_var('MACOSX_DEPLOYMENT_TARGET')))\nprint(repr(get_config_var('LDSHARED')))\nprint(repr(get_config_var('CFLAGS')))"] out: '/home/user/source/python/virtualenvs/pib' '.so' '' '/opt/python/local/lib' '/opt/python/local/lib/python2.7/config' '/opt/python/local/include/python2.7' 0 '' 'gcc -pthread -shared' '-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' Configuration returned from ['/home/user/source/python/virtualenvs/pib/bin/python']: "prefix = '/home/user/source/python/virtualenvs/pib'\nSO = '.so'\nLDFLAGS = ''\nLIBDIR = '/opt/python/local/lib'\nLIBPL = '/opt/python/local/lib/python2.7/config'\nINCLUDEPY = '/opt/python/local/include/python2.7'\nPy_ENABLE_SHARED = 0\nMACOSX_DEPLOYMENT_TARGET = ''\nLDSHARED = 'gcc -pthread -shared'\nCFLAGS = '-fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes'" # Trying default LIBPATH_PYEMBED: [] ---------------------------------------- Checking for library python2.7 ==> int main() { return 0; } <== [1/2] c: build_directory/.conf_check_b23d2ec031dcb1f63b0ca7d8ed0df926/test.c -> build_directory/.conf_check_b23d2ec031dcb1f63b0ca7d8ed0df926/testbuild/test.c.0.o ['/usr/bin/gcc', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-DPYTHONDIR="/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="[\'/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages\']"', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.0.o'] [2/2] cprogram: build_directory/.conf_check_b23d2ec031dcb1f63b0ca7d8ed0df926/testbuild/test.c.0.o -> build_directory/.conf_check_b23d2ec031dcb1f63b0ca7d8ed0df926/testbuild/testprog ['/usr/bin/gcc', 'test.c.0.o', '-o', '/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory/.conf_check_b23d2ec031dcb1f63b0ca7d8ed0df926/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-lpython2.7', '-pthread'] err: /usr/bin/ld: cannot find -lpython2.7 collect2: ld returned 1 exit status from /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0: Test does not build: Traceback (most recent call last): File "/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/.waf-1.6.3-3c3129a3ec8fb4a5bbc7ba3161463b22/waflib/Tools/c_config.py", line 435, in run_c_code bld.compile() File "/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/.waf-1.6.3-3c3129a3ec8fb4a5bbc7ba3161463b22/waflib/Build.py", line 193, in compile raise Errors.BuildError(self.producer.error) BuildError: Build failed -> task failed (exit status 1): {task 161547436: cprogram test.c.0.o -> testprog} ['/usr/bin/gcc', 'test.c.0.o', '-o', '/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory/.conf_check_b23d2ec031dcb1f63b0ca7d8ed0df926/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-lpython2.7', '-pthread'] not found from /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0: The configuration failed # try again with -L$python_LIBDIR: [] ---------------------------------------- Checking for library python2.7 ==> int main() { return 0; } <== [1/2] c: build_directory/.conf_check_c87cf2b33ea3c8f4fe80b3a4f772a1f6/test.c -> build_directory/.conf_check_c87cf2b33ea3c8f4fe80b3a4f772a1f6/testbuild/test.c.0.o ['/usr/bin/gcc', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-DPYTHONDIR="/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="[\'/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages\']"', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.0.o'] [2/2] cprogram: build_directory/.conf_check_c87cf2b33ea3c8f4fe80b3a4f772a1f6/testbuild/test.c.0.o -> build_directory/.conf_check_c87cf2b33ea3c8f4fe80b3a4f772a1f6/testbuild/testprog ['/usr/bin/gcc', 'test.c.0.o', '-o', '/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory/.conf_check_c87cf2b33ea3c8f4fe80b3a4f772a1f6/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/opt/python/local/lib', '-lpython2.7', '-pthread'] yes ---------------------------------------- Checking for program python2.7-config not found find program=['python2.7-config'] paths=['/opt/perl/bin', '/opt/java/jdk1.6.0_23/bin', '/home/user/bin', '/home/user/source/python/virtualenvs/pib/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/games'] var='PYTHON_CONFIG' -> '' from /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0: Could not find the program python2.7-config ---------------------------------------- Checking for program python-config-2.7 not found find program=['python-config-2.7'] paths=['/opt/perl/bin', '/opt/java/jdk1.6.0_23/bin', '/home/user/bin', '/home/user/source/python/virtualenvs/pib/bin', '/usr/local/bin', '/usr/bin', '/bin', '/usr/games'] var='PYTHON_CONFIG' -> '' from /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0: Could not find the program python-config-2.7 Include path for Python extensions (found via distutils module): '/opt/python/local/include/python2.7' ---------------------------------------- Checking for header Python.h ==> #ifdef __cplusplus extern "C" { #endif void Py_Initialize(void); void Py_Finalize(void); #ifdef __cplusplus } #endif int main() { Py_Initialize(); Py_Finalize(); return 0; } <== [1/2] c: build_directory/.conf_check_4655f12356c24d5ecc2679a5b579be45/test.c -> build_directory/.conf_check_4655f12356c24d5ecc2679a5b579be45/testbuild/test.c.0.o ['/usr/bin/gcc', '-pthread', '-fno-strict-aliasing', '-fwrapv', '-fno-strict-aliasing', '-I/opt/python/local/include/python2.7', '-DPYTHONDIR="/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages"', '-DPYTHONARCHDIR="[\'/home/user/source/python/virtualenvs/pib/lib/python2.7/site-packages\']"', '-DNDEBUG', '../test.c', '-c', '-o', 'test.c.0.o'] [2/2] cprogram: build_directory/.conf_check_4655f12356c24d5ecc2679a5b579be45/testbuild/test.c.0.o -> build_directory/.conf_check_4655f12356c24d5ecc2679a5b579be45/testbuild/testprog ['/usr/bin/gcc', 'test.c.0.o', '-o', '/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory/.conf_check_4655f12356c24d5ecc2679a5b579be45/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/opt/python/local/lib', '-lpython2.7', '-pthread'] err: /opt/python/local/lib/libpython2.7.a(posixmodule.o): In function `posix_tmpnam': /opt/python/Python-2.7.2/./Modules/posixmodule.c:7370: warning: the use of `tmpnam_r' is dangerous, better use `mkstemp' /opt/python/local/lib/libpython2.7.a(posixmodule.o): In function `posix_tempnam': /opt/python/Python-2.7.2/./Modules/posixmodule.c:7317: warning: the use of `tempnam' is dangerous, better use `mkstemp' /opt/python/local/lib/libpython2.7.a(signalmodule.o): In function `timeval_from_double': /opt/python/Python-2.7.2/./Modules/signalmodule.c:112: undefined reference to `floor' /opt/python/Python-2.7.2/./Modules/signalmodule.c:112: undefined reference to `floor' /opt/python/Python-2.7.2/./Modules/signalmodule.c:113: undefined reference to `fmod' /opt/python/Python-2.7.2/./Modules/signalmodule.c:113: undefined reference to `fmod' /opt/python/local/lib/libpython2.7.a(floatobject.o): In function `float_is_integer': /opt/python/Python-2.7.2/Objects/floatobject.c:986: undefined reference to `floor' /opt/python/local/lib/libpython2.7.a(floatobject.o): In function `float_as_integer_ratio': /opt/python/Python-2.7.2/Objects/floatobject.c:1724: undefined reference to `floor' /opt/python/local/lib/libpython2.7.a(floatobject.o): In function `float_divmod': /opt/python/Python-2.7.2/Objects/floatobject.c:776: undefined reference to `floor' /opt/python/Python-2.7.2/Objects/floatobject.c:750: undefined reference to `fmod' /opt/python/local/lib/libpython2.7.a(floatobject.o): In function `_Py_double_round': /opt/python/Python-2.7.2/Objects/floatobject.c:1122: undefined reference to `floor' /opt/python/Python-2.7.2/Objects/floatobject.c:1136: undefined reference to `fmod' /opt/python/local/lib/libpython2.7.a(floatobject.o): In function `float_rem': /opt/python/Python-2.7.2/Objects/floatobject.c:718: undefined reference to `fmod' /opt/python/local/lib/libpython2.7.a(floatobject.o): In function `float_pow': /opt/python/Python-2.7.2/Objects/floatobject.c:878: undefined reference to `floor' /opt/python/Python-2.7.2/Objects/floatobject.c:888: undefined reference to `fmod' /opt/python/Python-2.7.2/Objects/floatobject.c:912: undefined reference to `pow' /opt/python/Python-2.7.2/Objects/floatobject.c:853: undefined reference to `fmod' /opt/python/Python-2.7.2/Objects/floatobject.c:863: undefined reference to `fmod' /opt/python/local/lib/libpython2.7.a(longobject.o): In function `PyLong_FromString': /opt/python/Python-2.7.2/Objects/longobject.c:1851: undefined reference to `log' /opt/python/local/lib/libpython2.7.a(dynload_shlib.o): In function `_PyImport_GetDynLoadFunc': /opt/python/Python-2.7.2/Python/dynload_shlib.c:94: undefined reference to `dlsym' /opt/python/Python-2.7.2/Python/dynload_shlib.c:130: undefined reference to `dlopen' /opt/python/Python-2.7.2/Python/dynload_shlib.c:141: undefined reference to `dlsym' /opt/python/Python-2.7.2/Python/dynload_shlib.c:133: undefined reference to `dlerror' /opt/python/local/lib/libpython2.7.a(posixmodule.o): In function `posix_forkpty': posixmodule.c:(.text+0x29b3): undefined reference to `forkpty' /opt/python/local/lib/libpython2.7.a(posixmodule.o): In function `posix_openpty': posixmodule.c:(.text+0x47bc): undefined reference to `openpty' /opt/python/local/lib/libpython2.7.a(complexobject.o): In function `_Py_c_abs': /opt/python/Python-2.7.2/Objects/complexobject.c:210: undefined reference to `hypot' /opt/python/local/lib/libpython2.7.a(complexobject.o): In function `_Py_c_pow': /opt/python/Python-2.7.2/Objects/complexobject.c:139: undefined reference to `hypot' /opt/python/Python-2.7.2/Objects/complexobject.c:140: undefined reference to `pow' /opt/python/Python-2.7.2/Objects/complexobject.c:141: undefined reference to `atan2' /opt/python/Python-2.7.2/Objects/complexobject.c:145: undefined reference to `sincos' /opt/python/Python-2.7.2/Objects/complexobject.c:144: undefined reference to `exp' /opt/python/Python-2.7.2/Objects/complexobject.c:145: undefined reference to `log' /opt/python/local/lib/libpython2.7.a(complexobject.o): In function `complex_remainder': /opt/python/Python-2.7.2/Objects/complexobject.c:612: undefined reference to `floor' /opt/python/local/lib/libpython2.7.a(complexobject.o): In function `complex_divmod': /opt/python/Python-2.7.2/Objects/complexobject.c:638: undefined reference to `floor' collect2: ld returned 1 exit status from /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0: Test does not build: Traceback (most recent call last): File "/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/.waf-1.6.3-3c3129a3ec8fb4a5bbc7ba3161463b22/waflib/Tools/c_config.py", line 435, in run_c_code bld.compile() File "/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/.waf-1.6.3-3c3129a3ec8fb4a5bbc7ba3161463b22/waflib/Build.py", line 193, in compile raise Errors.BuildError(self.producer.error) BuildError: Build failed -> task failed (exit status 1): {task 161979468: cprogram test.c.0.o -> testprog} ['/usr/bin/gcc', 'test.c.0.o', '-o', '/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0/build_directory/.conf_check_4655f12356c24d5ecc2679a5b579be45/testbuild/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/opt/python/local/lib', '-lpython2.7', '-pthread'] Could not find the python development headers from /home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0: The configuration failed % env SSH_AGENT_PID=1903 fvwm_icon=/home/user/.fvwm/icons fvwm_actwallpaper=$fvwm_wallpapers/01332_lowangletulips_2560x1600.png SHELL=/bin/zsh FVWM_USERDIR=/home/user/.fvwm HOSTDISPLAY=host:0.0 GTK_MODULES=canberra-gtk-module USER=user SSH_AUTH_SOCK=/tmp/ssh-XDIjIV1883/agent.1883 fvwm_tmp=/home/user/.fvwm/images/iconified fvwm_script=/home/user/.fvwm/scripts PATH=/opt/perl/bin:/opt/java/jdk1.6.0_23/bin:/home/user/bin:/home/user/source/python/virtualenvs/pib/bin:/usr/local/bin:/usr/bin:/bin:/usr/games LOCALE=en_US PWD=/home/user/source/python/virtualenvs/pib/src/py2cairo-1.10.0 conf=/home/user/.fvwm/conf.d LANG=en_US.UTF-8 fvwm_img=/home/user/.fvwm/images HOME=/home/user SHLVL=3 LANGUAGE=en_US:en fvwm_wallpapers=/home/user/.fvwm/images/wallpaper LOGNAME=user DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-891NHRmj9z,guid=73d785ab94c028711d354ed9000001b5 fvwm_home=/home/user/.fvwm FVWM_MODULEDIR=/usr/lib/fvwm/2.5.30 WINDOWPATH=7 DISPLAY=:0.0 bindset=bindings_winkey WINDOWID=18880170 COLORFGBG=default;default COLORTERM=rxvt-xpm TERM=rxvt-unicode OLDPWD=/home/user/source/python/virtualenvs/pib/src LS_COLORS= LESS=-cx4Mi EDITOR=vi MAIL=/home/user/Mail/inbox PWSAFE_DATABASE=insti/pwsafe/user_neu.dat JAVA_HOME=/opt/java/jdk1.6.0_23 PERL_HOME=/opt/perl PERL5LIB=/opt/perl/share/perl/5.10.0:/opt/perl/lib/perl/5.10.0:/opt/perl/share/perl/5.10.1:/opt/perl/lib/perl/5.10.1 MAILCHECK=300 HISTSIZE=1000 HISTFILE=/home/user/.zsh_history SAVEHIST=500 DIRSTACKSIZE=20 VIRTUAL_ENV=/home/user/source/python/virtualenvs/pib PS1=%% _=/usr/bin/env LD_LIBRARY_PATH=/home/user/source/python/virtualenvs/pib/lib