Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Jun 2008 13:48:22 -0600
From:      Dale Hagglund <dale.hagglund@gmail.com>
To:        ports@freebsd.org
Cc:        olgeni@freebsd.org
Subject:   erlang doesn't build on 7.0?
Message-ID:  <863an6muwp.fsf@ponoka.ab.hsia.telus.net>

next in thread | raw e-mail | index | archive | help
I just tried to install the lang/erlang port on my freebsd 7.0 box.  It
failed with a linker error while building the "beam" binary.

cc -o path/to/beam \
        -L/usr/local/lib  -Wl,-export-dynamic \
        ... lots of .o files ... \
        -lethread -lpthread -lerts_internal_r
/usr/lib/libpthread.a(thr_sig.o)(.text+0x1c0): In function `_sigaction':
: multiple definition of `_sigaction'
obj/i386-unknown-freebsd7.0/opt/plain/hipe_x86_signal.o(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `_sigaction' changed from 155 in obj/i386-unknown-freebsd7.0/opt/plain/hipe_x86_signal.o to 55 in /usr/lib/libpthread.a(thr_sig.o)

So, hipe_x86_signal.c is redefining sigaction().  I looked briefly at
this file, and it *appears* that this should only happen for glibc-based
compiles or solaris builds, but the ifdef nest is somewhat complicated,
so I'm by no means sure.

After figuring out how to add --disable-hipe to the configure arguments,
"make build" completes successfully.

Am I missing something obvious here?  Should I have been able to build
with the hipe extensions or is this an error in the port makefiles?

Dale.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863an6muwp.fsf>