Something wrong with compiling

Hi guys!

I have a problem with compilation on my FreeBSD 8.1-RELEASE-p2:

The compiling stops with this message:

[code] astobj2.o(.text+0x759): In function internal_ao2_ref': /usr/ports/asterisk-1.8.0/include/asterisk/lock.h:589: undefined reference to_sync_fetch and_add_4’
astobj2.o(.text+0xb36): In function internal_ao2_iterator_next': /usr/ports/asterisk-1.8.0/include/asterisk/lock.h:589: undefined reference to_sync_fetch and_add_4’
astobj2.o(.text+0xb8a):/usr/ports/asterisk-1.8.0/include/asterisk/lock.h:589: undefined refe rence to __sync_fetch_and_add_4' astobj2.o(.text+0xd3d): In functioninternal_ao2_link’:
/usr/ports/asterisk-1.8.0/include/asterisk/lock.h:589: undefined reference to __sync_fetch_ and_add_4' astobj2.o(.text+0xd63):/usr/ports/asterisk-1.8.0/include/asterisk/lock.h:589: undefined refe rence to__sync_fetch_and_add_4’
astobj2.o(.text+0x172c):/usr/ports/asterisk-1.8.0/include/asterisk/lock.h:589: more undefine d references to __sync_fetch_and_add_4' follow utils.o(.text+0x1310): In functionast_atomic_dec_and_test’:
/usr/ports/asterisk-1.8.0/include/asterisk/lock.h:635: undefined reference to __sync_sub_an d_fetch_4' utils.o(.text+0x1329): In functionast_atomic_fetchadd_int’:
/usr/ports/asterisk-1.8.0/include/asterisk/lock.h:589: undefined reference to `_sync_fetch and_add_4’
gmake[1]: *** [asterisk] Error 1
gmake: *** [main] Error 2
*** Error code 2

Stop in /usr/ports/asterisk-1.8.0.
[/code]

I need some advice. Can anyone help me,please?

:unamused:

The problem is resolved, when I download version 1.8.2-rc1.