embedding on IRIX
thomas at xs4all.net
Wed Nov 8 11:04:03 CET 2000
On Tue, Nov 07, 2000 at 01:58:35PM +1300, Mike Morasky wrote:
> I'm attempting to embed python2.0 into a program on IRIX 6.5 and am getting
> the following errors:
> ld32: ERROR 33 : Unresolved text symbol "__eprintf" -- 1st referenced by
> ld32: ERROR 33 : Unresolved text symbol "pthread_detach" -- 1st referenced
> by /local1/usr/local/lib/libpython2.0.a(thread.o).
> ld32: ERROR 33 : Unresolved text symbol "dbopen" -- 1st referenced by
> Anyone know why?
You need to use the same linker flags as Python did, to build the 'python'
binary. From the looks of it, you need -ldb (or whatever bsddb is called on
your system) and -lpthread (or -lthread or something similar.) I'm not sure
where __eprintf() comes from, though. You might also want to think about
compiling the libraries as shared modules, rather than all into
libpython2.0.a -- that would remove the necessity for at least -ldb ;)
Thomas Wouters <thomas at xs4all.net>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
More information about the Python-list