erlgtk config + new erl_interface = pthread-related errors?

Chris Pressey <>
Mon Aug 25 21:54:16 CEST 2003


Hi all,

I've successfully installed the erlang-r9c0,1 port on FreeBSD -STABLE,
and I'm trying to re-install erlgtk-0.9.6 on top of it.

But I'm seeing a new error in the configure stage that seems to have
something to do with the changes in erl_interface w.r.t. pthreads.  The
relevant output of 'make configure' follows:

checking fun erl_interface...
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_create':
ei_pthreads.o(.text+0x2e): undefined reference to `pthread_mutex_init'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_destroy':
ei_pthreads.o(.text+0x59): undefined reference to
`pthread_mutex_destroy'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_lock':
ei_pthreads.o(.text+0x8e): undefined reference to `pthread_mutex_lock'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_trylock':
ei_pthreads.o(.text+0xb2): undefined reference to
`pthread_mutex_trylock'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_unlock':
ei_pthreads.o(.text+0xd6): undefined reference to `pthread_mutex_unlock'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `erl_errno_key_alloc':
ei_pthreads.o(.text+0x129): undefined reference to `pthread_key_create'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `__erl_errno_place':
ei_pthreads.o(.text+0x15a): undefined reference to `pthread_once'
ei_pthreads.o(.text+0x17a): undefined reference to `pthread_getspecific'
ei_pthreads.o(.text+0x19e): undefined reference to `pthread_setspecific'
ei_pthreads.o(.text+0x1b3): undefined reference to `pthread_getspecific'
exec: ./eiconf: not found

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()
no false
{"init terminating in
do_boot",{badarg,[{erlang,port_close,[#Port<0.27>]},{eiconf,fun_ext,0},
{init,start_it,1},{init,start_em,1}]}}
checking erlang:fun_info(Fun,arity)...
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_create':
ei_pthreads.o(.text+0x2e): undefined reference to `pthread_mutex_init'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_destroy':
ei_pthreads.o(.text+0x59): undefined reference to
`pthread_mutex_destroy'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_lock':
ei_pthreads.o(.text+0x8e): undefined reference to `pthread_mutex_lock'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_trylock':
ei_pthreads.o(.text+0xb2): undefined reference to
`pthread_mutex_trylock'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `ei_m_unlock':
ei_pthreads.o(.text+0xd6): undefined reference to `pthread_mutex_unlock'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `erl_errno_key_alloc':
ei_pthreads.o(.text+0x129): undefined reference to `pthread_key_create'
/usr/local/lib/erlang/lib/erl_interface-3.4/lib/libei.a(ei_pthreads.o):
In function `__erl_errno_place':
ei_pthreads.o(.text+0x15a): undefined reference to `pthread_once'
ei_pthreads.o(.text+0x17a): undefined reference to `pthread_getspecific'
ei_pthreads.o(.text+0x19e): undefined reference to `pthread_setspecific'
ei_pthreads.o(.text+0x1b3): undefined reference to `pthread_getspecific'
yes

Any idea what could be causing this?  My hunch is it's something either
in the port or in my local configuration, rather than in the R9C dist
itself, but I guess it could be just about anything.  The pth-2.0.0 port
is installed, even though the erlang port doesn't seem to mention it
as a dependency.

TIA for any insight,
-Chris



More information about the erlang-questions mailing list