[asterisk-bugs] [Asterisk 0016712]: [patch] Build issues with FreeBSD 6/8
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Jul 27 13:21:12 CDT 2010
The following issue has been CLOSED
======================================================================
https://issues.asterisk.org/view.php?id=16712
======================================================================
Reported By: captainjez
Assigned To: qwell
======================================================================
Project: Asterisk
Issue ID: 16712
Category: Core/Portability
Reproducibility: always
Severity: major
Priority: normal
Status: closed
Asterisk Version: SVN
JIRA: SWP-813
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): 1.4
SVN Revision (number only!):
Request Review:
Resolution: no change required
Fixed in Version:
======================================================================
Date Submitted: 2010-01-27 03:41 CST
Last Modified: 2010-07-27 13:21 CDT
======================================================================
Summary: [patch] Build issues with FreeBSD 6/8
Description:
I'm trying to build Asterisk 1.4.25 and greater (including 1.4-SVN) however
I get to a point where I get errors relating to pthreads:
[CC] recno/rec_utils.c -> recno/rec_utils.o
[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
gmake[2]: Leaving directory `/build/asterisk/1.4-trunk/main/db1-ast'
[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 threadstorage.o translate.o
udptl.o ulaw.o utils.o editline/libedit.a db1-ast/libdb1.a -> asterisk
asterisk.o(.text+0x1f28): In function `listener':
/build/asterisk/1.4-trunk/main/asterisk.c:1003: undefined reference to
`pthread_attr_init'
asterisk.o(.text+0x1f3c):/build/asterisk/1.4-trunk/main/asterisk.c:1004:
undefined reference to `pthread_attr_setdetachstate'
asterisk.o(.text+0x1f89):/build/asterisk/1.4-trunk/main/asterisk.c:1011:
undefined reference to `pthread_testcancel'
asterisk.o(.text+0x2ff0): In function `quit_handler':
/build/asterisk/1.4-trunk/main/asterisk.c:1323: undefined reference to
`pthread_cancel'
asterisk.o(.text+0x3153):/build/asterisk/1.4-trunk/main/asterisk.c:1350:
undefined reference to `pthread_kill'
asterisk.o(.text+0x339e): In function `console_verboser':
/build/asterisk/1.4-trunk/main/asterisk.c:1420: undefined reference to
`pthread_kill'
asterisk.o(.text+0x8247): In function `main':
/build/asterisk/1.4-trunk/main/asterisk.c:3202: undefined reference to
`pthread_attr_init'
asterisk.o(.text+0x825b):/build/asterisk/1.4-trunk/main/asterisk.c:3203:
undefined reference to `pthread_attr_setdetachstate'
asterisk.o(.text+0x82a3):/build/asterisk/1.4-trunk/main/asterisk.c:3205:
undefined reference to `pthread_attr_destroy'
audiohook.o(.text+0x242b): In function `ast_cond_timedwait':
/build/asterisk/1.4-trunk/include/asterisk/lock.h:796: undefined reference
to `pthread_cond_timedwait'
autoservice.o(.text+0x79e): In function `ast_autoservice_start':
/build/asterisk/1.4-trunk/main/autoservice.c:248: undefined reference to
`pthread_kill'
autoservice.o(.text+0x8f0): In function `ast_autoservice_stop':
/build/asterisk/1.4-trunk/main/autoservice.c:287: undefined reference to
`pthread_kill'
cdr.o(.text+0x4083): In function `ast_cdr_submit_batch':
/build/asterisk/1.4-trunk/main/cdr.c:1207: undefined reference to
`pthread_attr_init'
cdr.o(.text+0x4094):/build/asterisk/1.4-trunk/main/cdr.c:1208: undefined
reference to `pthread_attr_setdetachstate'
cdr.o(.text+0x4136):/build/asterisk/1.4-trunk/main/cdr.c:1216: undefined
reference to `pthread_attr_destroy'
cdr.o(.text+0x455b): In function `ast_cond_timedwait':
/build/asterisk/1.4-trunk/include/asterisk/lock.h:796: undefined reference
to `pthread_cond_timedwait'
cdr.o(.text+0x4e3a): In function `do_reload':
/build/asterisk/1.4-trunk/main/cdr.c:1476: undefined reference to
`pthread_cancel'
cdr.o(.text+0x4e4d):/build/asterisk/1.4-trunk/main/cdr.c:1477: undefined
reference to `pthread_kill'
cdr.o(.text+0x4e60):/build/asterisk/1.4-trunk/main/cdr.c:1478: undefined
reference to `pthread_join'
channel.o(.text+0x2195): In function `__ast_queue_frame':
/build/asterisk/1.4-trunk/main/channel.c:984: undefined reference to
`pthread_kill'
channel.o(.text+0x329f): In function `ast_softhangup_nolock':
/build/asterisk/1.4-trunk/main/channel.c:1486: undefined reference to
`pthread_kill'
channel.o(.text+0xa9cb): In function `ast_do_masquerade':
/build/asterisk/1.4-trunk/main/channel.c:4094: undefined reference to
`pthread_kill'
dial.o(.text+0x1797): In function `ast_dial_join':
/build/asterisk/1.4-trunk/main/dial.c:668: undefined reference to
`pthread_kill'
dial.o(.text+0x17cb):/build/asterisk/1.4-trunk/main/dial.c:676: undefined
reference to `pthread_join'
dnsmgr.o(.text+0x6f3): In function `do_refresh':
/build/asterisk/1.4-trunk/main/dnsmgr.c:215: undefined reference to
`pthread_testcancel'
dnsmgr.o(.text+0x730):/build/asterisk/1.4-trunk/main/dnsmgr.c:217:
undefined reference to `pthread_testcancel'
dnsmgr.o(.text+0xe72): In function `do_reload':
/build/asterisk/1.4-trunk/main/dnsmgr.c:412: undefined reference to
`pthread_cancel'
dnsmgr.o(.text+0xe85):/build/asterisk/1.4-trunk/main/dnsmgr.c:413:
undefined reference to `pthread_kill'
dnsmgr.o(.text+0xe98):/build/asterisk/1.4-trunk/main/dnsmgr.c:414:
undefined reference to `pthread_join'
http.o(.text+0x14f2): In function `http_root':
/build/asterisk/1.4-trunk/main/http.c:552: undefined reference to
`pthread_attr_init'
http.o(.text+0x1503):/build/asterisk/1.4-trunk/main/http.c:553: undefined
reference to `pthread_attr_setdetachstate'
http.o(.text+0x15a2):/build/asterisk/1.4-trunk/main/http.c:560: undefined
reference to `pthread_attr_destroy'
http.o(.text+0x16d0): In function `http_server_start':
/build/asterisk/1.4-trunk/main/http.c:597: undefined reference to
`pthread_cancel'
http.o(.text+0x16e3):/build/asterisk/1.4-trunk/main/http.c:598: undefined
reference to `pthread_kill'
http.o(.text+0x16f6):/build/asterisk/1.4-trunk/main/http.c:599: undefined
reference to `pthread_join'
manager.o(.text+0x1375): In function `unuse_eventqent':
/build/asterisk/1.4-trunk/main/manager.c:780: undefined reference to
`pthread_kill'
manager.o(.text+0x336e): In function `action_waitevent':
/build/asterisk/1.4-trunk/main/manager.c:1337: undefined reference to
`pthread_kill'
manager.o(.text+0x5a49): In function `action_originate':
/build/asterisk/1.4-trunk/main/manager.c:2008: undefined reference to
`pthread_attr_init'
manager.o(.text+0x5a5d):/build/asterisk/1.4-trunk/main/manager.c:2009:
undefined reference to `pthread_attr_setdetachstate'
manager.o(.text+0x5ace):/build/asterisk/1.4-trunk/main/manager.c:2016:
undefined reference to `pthread_attr_destroy'
manager.o(.text+0x721d): In function `accept_thread':
/build/asterisk/1.4-trunk/main/manager.c:2460: undefined reference to
`pthread_attr_init'
manager.o(.text+0x722e):/build/asterisk/1.4-trunk/main/manager.c:2461:
undefined reference to `pthread_attr_setdetachstate'
manager.o(.text+0x78d5): In function `manager_event':
/build/asterisk/1.4-trunk/main/manager.c:2607: undefined reference to
`pthread_kill'
manager.o(.text+0x7a44): In function `ast_rwlock_timedwrlock':
/build/asterisk/1.4-trunk/include/asterisk/lock.h:1232: undefined
reference to `pthread_rwlock_timedwrlock'
manager.o(.text+0x890c): In function `generic_http_callback':
/build/asterisk/1.4-trunk/main/manager.c:2973: undefined reference to
`pthread_kill'
pbx.o(.text+0x52c1): In function `pbx_thread':
/build/asterisk/1.4-trunk/main/pbx.c:2624: undefined reference to
`pthread_exit'
pbx.o(.text+0x5327): In function `ast_pbx_start':
/build/asterisk/1.4-trunk/main/pbx.c:2643: undefined reference to
`pthread_attr_init'
pbx.o(.text+0x5338):/build/asterisk/1.4-trunk/main/pbx.c:2644: undefined
reference to `pthread_attr_setdetachstate'
pbx.o(.text+0x539d):/build/asterisk/1.4-trunk/main/pbx.c:2647: undefined
reference to `pthread_attr_destroy'
pbx.o(.text+0x53ba):/build/asterisk/1.4-trunk/main/pbx.c:2651: undefined
reference to `pthread_attr_destroy'
pbx.o(.text+0xa4b2): In function `ast_pbx_outgoing_exten':
/build/asterisk/1.4-trunk/main/pbx.c:5147: undefined reference to
`pthread_attr_init'
pbx.o(.text+0xa4c3):/build/asterisk/1.4-trunk/main/pbx.c:5148: undefined
reference to `pthread_attr_setdetachstate'
pbx.o(.text+0xa56b):/build/asterisk/1.4-trunk/main/pbx.c:5158: undefined
reference to `pthread_attr_destroy'
pbx.o(.text+0xa57c):/build/asterisk/1.4-trunk/main/pbx.c:5161: undefined
reference to `pthread_attr_destroy'
pbx.o(.text+0xa826): In function `ast_pbx_outgoing_app':
/build/asterisk/1.4-trunk/main/pbx.c:5234: undefined reference to
`pthread_attr_init'
pbx.o(.text+0xa837):/build/asterisk/1.4-trunk/main/pbx.c:5235: undefined
reference to `pthread_attr_setdetachstate'
pbx.o(.text+0xa923):/build/asterisk/1.4-trunk/main/pbx.c:5249: undefined
reference to `pthread_attr_destroy'
pbx.o(.text+0xaac8):/build/asterisk/1.4-trunk/main/pbx.c:5297: undefined
reference to `pthread_attr_init'
pbx.o(.text+0xaad9):/build/asterisk/1.4-trunk/main/pbx.c:5298: undefined
reference to `pthread_attr_setdetachstate'
pbx.o(.text+0xab90):/build/asterisk/1.4-trunk/main/pbx.c:5308: undefined
reference to `pthread_attr_destroy'
pbx.o(.text+0xabaf):/build/asterisk/1.4-trunk/main/pbx.c:5314: undefined
reference to `pthread_attr_destroy'
utils.o(.text+0xf37): In function `dummy_start':
/build/asterisk/1.4-trunk/main/utils.c:837: undefined reference to
`pthread_cleanup_push'
utils.o(.text+0xf55):/build/asterisk/1.4-trunk/main/utils.c:858: undefined
reference to `pthread_cleanup_pop'
utils.o(.text+0xf89): In function `ast_pthread_create_stack':
/build/asterisk/1.4-trunk/main/utils.c:875: undefined reference to
`pthread_attr_init'
utils.o(.text+0xfba):/build/asterisk/1.4-trunk/main/utils.c:893: undefined
reference to `pthread_attr_setstacksize'
utils.o(.text+0x10c6):/build/asterisk/1.4-trunk/main/utils.c:910:
undefined reference to `pthread_create'
gmake[1]: *** [asterisk] Error 1
gmake[1]: Leaving directory `/build/asterisk/1.4-trunk/main'
gmake: *** [main] Error 2
I've tried this on a fresh FreeBSD 6, 7 and 8 and I can't seem to get it
to build past this point. All the modules are building ok and my configure
I specify the paths to sqlite, etc (otherwise it complains it can't find it
when i build, even though the configure actually does find this).
Any thoughts/ideas?
======================================================================
----------------------------------------------------------------------
(0125129) lmadsen (administrator) - 2010-07-27 13:21
https://issues.asterisk.org/view.php?id=16712#c125129
----------------------------------------------------------------------
No response from reporter. Please reopen if you're able to move this issue
forward.
Issue History
Date Modified Username Field Change
======================================================================
2010-07-27 13:21 lmadsen Note Added: 0125129
2010-07-27 13:21 lmadsen Status assigned => closed
======================================================================
More information about the asterisk-bugs
mailing list