Re: cannot build python bindings on suse 10.2
Brandon Long <[email protected]>
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Organization | Fiction L Networks |
| Message-ID | <20070830064917.GA3624@bl1> |
*sigh*
Ok, so this is caused by incompatibilities between how the clearsilver
libraries are built, and how python was originally built.
On 08/29/07 mandy_roemer uttered the following other thing:
> hi there,
> i have downloaded clearsilver 0.10.5 and installed them. every thing
> is fine when ich configure and install it on my machine. but if i
> change after sucessfully install to the python dir an do a "python
> setup.px install" i get the following error message:
I think you need to do a make install in the python directory, otherwise
not everything gets passed to setup that you need.
> ---
> poldi:/usr/local/src/clearsilver-0.10.5/python # python setup.py
> install
> adding lib_path $(LIB_DIR)
> adding lib z
> Overriding setup's CC from gcc -pthread to gcc
I didn't even know that -pthread was used on linux.
> running install
> running build
> running build_ext
> building 'neo_cgi' extension
> gcc build/temp.linux-i686-2.5/neo_cgi.o build/temp.linux-i686-2.5/
> neo_cs.o build/temp.linux-i686-2.5/neo_util.o -L../libs/ -L../libs -L/
> usr/lib/python2.5/config -lz -lneo_cgi -lneo_cs -lneo_utl -lpython2.5
> -o build/lib.linux-i686-2.5/neo_cgi.so
> /usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
> `posix_tmpnam':
> (.text+0x820): warning: the use of `tmpnam_r' is dangerous, better
> use `mkstemp'
> /usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
> `posix_tempnam':
> (.text+0x934): warning: the use of `tempnam' is dangerous, better use
> `mkstemp'
> /usr/lib/gcc/i586-suse-linux/4.1.2/../../../crt1.o: In function
> `_start':
> (.text+0x18): undefined reference to `main'
I'm not sure what's causing this error, there is no main... hmm, where
is the -shared there?
> /usr/lib/python2.5/config/libpython2.5.a(longobject.o): In function
> `PyLong_FromString':
> (.text+0x258a): undefined reference to `log'
> /usr/lib/python2.5/config/libpython2.5.a(longobject.o): In function
> `PyLong_FromString':
> (.text+0x25a1): undefined reference to `log'
Apparently it needs to have -lm
> /usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In
> function `_PyImport_GetDynLoadFunc':
> (.text+0x12e): undefined reference to `dlsym'
> /usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In
> function `_PyImport_GetDynLoadFunc':
> (.text+0x195): undefined reference to `dlopen'
> /usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In
> function `_PyImport_GetDynLoadFunc':
> (.text+0x1c3): undefined reference to `dlsym'
> /usr/lib/python2.5/config/libpython2.5.a(dynload_shlib.o): In
> function `_PyImport_GetDynLoadFunc':
> (.text+0x232): undefined reference to `dlerror'
and -ldl
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_set_stacksize':
> (.text+0xb6): undefined reference to `pthread_attr_setstacksize'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_release_lock':
> (.text+0xf9): undefined reference to `sem_post'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_acquire_lock':
> (.text+0x177): undefined reference to `sem_wait'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_acquire_lock':
> (.text+0x192): undefined reference to `sem_trywait'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_free_lock':
> (.text+0x2a2): undefined reference to `sem_destroy'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_allocate_lock':
> (.text+0x317): undefined reference to `sem_init'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_start_new_thread':
> (.text+0x619): undefined reference to `pthread_attr_setstacksize'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_start_new_thread':
> (.text+0x64a): undefined reference to `pthread_create'
> /usr/lib/python2.5/config/libpython2.5.a(thread.o): In function
> `PyThread_start_new_thread':
> (.text+0x677): undefined reference to `pthread_detach'
And this is all from the lack of -pthread.
> /usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
> `posix_forkpty':
> (.text+0x3519): undefined reference to `forkpty'
> /usr/lib/python2.5/config/libpython2.5.a(posixmodule.o): In function
> `posix_openpty':
> (.text+0x35a8): undefined reference to `openpty'
These I don't even know.
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `complex_abs':
> (.text+0x58d): undefined reference to `hypot'
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `_Py_c_pow':
> (.text+0x2418): undefined reference to `hypot'
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `_Py_c_pow':
> (.text+0x242a): undefined reference to `pow'
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `_Py_c_pow':
> (.text+0x243f): undefined reference to `atan2'
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `_Py_c_pow':
> (.text+0x2470): undefined reference to `cos'
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `_Py_c_pow':
> (.text+0x2483): undefined reference to `sin'
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `_Py_c_pow':
> (.text+0x24f6): undefined reference to `exp'
> /usr/lib/python2.5/config/libpython2.5.a(complexobject.o): In
> function `_Py_c_pow':
> (.text+0x2507): undefined reference to `log'
> /usr/lib/python2.5/config/libpython2.5.a(floatobject.o): In function
> `float_rem':
> (.text+0x1df8): undefined reference to `fmod'
> /usr/lib/python2.5/config/libpython2.5.a(floatobject.o): In function
> `float_divmod':
> (.text+0x2be8): undefined reference to `fmod'
> /usr/lib/python2.5/config/libpython2.5.a(floatobject.o): In function
> `float_pow':
> (.text+0x2faf): undefined reference to `pow'
> /usr/lib/python2.5/config/libpython2.5.a(floatobject.o): In function
> `float_pow':
> (.text+0x3043): undefined reference to `fmod'
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
more -lm.
> can you please help me, because i need the bindings for my
> apache2,subversion,trac installation.
Maybe a more generic setup.py would work...
Like I said, try just a 'make install'
Brandon
--
"Umm, the American desire to be individual clashes with the American
desire to conform and the resulting stress creates the American
desire to shoot people." -- Graham, the Happy Scum
http://www.fiction.net/blong/