erlang doesn't build on 7.0?

Dale Hagglund dale.hagglund at gmail.com
Sat Jun 21 20:16:56 UTC 2008


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.


More information about the freebsd-ports mailing list