fresh freebsd 8.1 system
CPU: Intel® Core™2 Quad CPU Q8400 @ 2.66GHz (2660.01-MHz 686-class CPU)
Origin = “GenuineIntel” Id = 0x1067a Family = 6 Model = 17 Stepping = 10
FreeBSD hostname 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
gcc -v
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070719 [FreeBSD]
#gmake -v
GNU Make 3.81
- #cat /etc/make.conf
added by use.perl 2010-11-04 14:22:12
PERL_VERSION=5.10.1
-
configuring asterisk
configure: Package configured for:
configure: OS type : freebsd8.1
configure: Host CPU : i386 -
/usr/src/asterisk-1.4.36]# gmake
stops at:
[AR] hash/hash.o hash/hash_bigkey.o hash/hash_buf.o hash/hash_func.o hash/hash_log2.o hash/hash_page.o hash/ndbm.o btree/bt_close.o btree/bt_conv.o btree/bt_debug.o btree/bt_delete.o btree/bt_get.o btree/bt_open.o btree/bt_overflow.o btree/bt_page.o btree/bt_put.o btree/bt_search.o btree/bt_seq.o btree/bt_split.o btree/bt_utils.o db/db.o mpool/mpool.o recno/rec_close.o recno/rec_delete.o recno/rec_get.o recno/rec_open.o recno/rec_put.o recno/rec_search.o recno/rec_seq.o recno/rec_utils.o -> libdb1.a
[LD] abstract_jb.o acl.o aescrypt.o aeskey.o aestab.o alaw.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o audiohook.o autoservice.o callerid.o cdr.o channel.o chanvars.o cli.o config.o cryptostub.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o file.o fixedjitterbuf.o frame.o fskmodem.o global_datastores.o http.o image.o indications.o io.o jitterbuf.o loader.o logger.o manager.o md5.o netsock.o pbx.o plc.o poll.o privacy.o rtp.o say.o sched.o sha1.o slinfactory.o srv.o stdtime/localtime.o strcompat.o tdd.o term.o test.o threadstorage.o translate.o udptl.o ulaw.o utils.o editline/libedit.a db1-ast/libdb1.a -> asterisk
astobj2.o(.text+0x15f): In function ao2_alloc': /usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to
__sync_fetch_and_add_4’
astobj2.o(.text+0x16c):/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to __sync_fetch_and_add_4' astobj2.o(.text+0x17a):/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to
__sync_fetch_and_add_4’
astobj2.o(.text+0x213): In function ao2_container_alloc': /usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to
__sync_fetch_and_add_4’
astobj2.o(.text+0x2e9): In function ao2_ref': /usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to
__sync_fetch_and_add_4’
astobj2.o(.text+0x2fe):/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: more undefined references to __sync_fetch_and_add_4' follow manager.o(.text+0x875): In function
process_events’:
/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1360: undefined reference to __sync_sub_and_fetch_4' manager.o(.text+0x20f6): In function
free_session’:
/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1360: undefined reference to __sync_sub_and_fetch_4' manager.o(.text+0x23b1): In function
accept_thread’:
/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to __sync_fetch_and_add_4' manager.o(.text+0x49a1): In function
action_waitevent’:
/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1360: undefined reference to __sync_sub_and_fetch_4' manager.o(.text+0x7b24): In function
generic_http_callback’:
/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to __sync_fetch_and_add_4' manager.o(.text+0x7b32):/usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to
__sync_fetch_and_add_4’
utils.o(.text+0xd6c): In function ast_atomic_dec_and_test': /usr/src/asterisk-1.4.36/include/asterisk/lock.h:1360: undefined reference to
__sync_sub_and_fetch_4’
utils.o(.text+0xd85): In function ast_atomic_fetchadd_int': /usr/src/asterisk-1.4.36/include/asterisk/lock.h:1314: undefined reference to
__sync_fetch_and_add_4’
gmake[1]: *** [asterisk] Error 1
gmake: *** [main] Error 2
i also tried change CPUTYPE to core2, pentium in make.conf than gmake dist and compile again but with no luck…
can you help?
thanks!