[Home]

Summary:ASTERISK-15276: Build fails on OpenBSD4.2 in utils.o
Reporter:John Todd (jtodd)Labels:
Date Opened:2009-12-04 14:13:50.000-0600Date Closed:2009-12-04 16:14:17.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/Portability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:OpenBSD 4.2 i386 system.

A completely new checkout and "fresh" build using all defaults results in:
....
    [CC] recno/rec_seq.c -> recno/rec_seq.o
  [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
  [LD] abstract_jb.o acl.o adsistub.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 autochan.o autoservice.o bridging.o callerid.o cdr.o cel.o channel.o chanvars.o cli.o config.o cryptostub.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o enum.o event.o features.o file.o fixedjitterbuf.o frame.o fskmodem.o global_datastores.o hashtab.o heap.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_engine.o say.o sched.o security_events.o sha1.o slinfactory.o srv.o ssl.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a db1-ast/libdb1.a  -> asterisk
utils.o(.text+0xc5d): In function `__ast_string_field_ptr_build_va':
/local/builds/asterisk-trunk/main/utils.c:1718: warning: vsprintf() is often misused, please use vsnprintf()
app.o(.text+0x10b9): In function `ast_app_group_set_channel':
/local/builds/asterisk-trunk/main/app.c:1058: warning: strcpy() is almost always misused, please use strlcpy()
ast_expr2.o(.text+0x30cc): In function `op_eq':
/local/builds/asterisk-trunk/main/ast_expr2.y:635: warning: sprintf() is often misused, please use snprintf()
app.o(.text+0xa83): In function `ast_control_streamfile':
/local/builds/asterisk-trunk/main/app.c:548: warning: strcat() is almost always misused, please use strlcat()
translate.o(.text+0x3a): In function `ast_translator_build_path':
/local/builds/asterisk-trunk/main/translate.c:75: undefined reference to `__builtin_ffsll'
translate.o(.text+0x58):/local/builds/asterisk-trunk/main/translate.c:75: undefined reference to `__builtin_ffsll'
translate.o(.text+0x6af): In function `__ast_register_translator':
/local/builds/asterisk-trunk/main/translate.c:75: undefined reference to `__builtin_ffsll'
translate.o(.text+0x6de):/local/builds/asterisk-trunk/main/translate.c:75: undefined reference to `__builtin_ffsll'
translate.o(.text+0x7a1):/local/builds/asterisk-trunk/main/translate.c:75: undefined reference to `__builtin_ffsll'
translate.o(.text+0x10da):/local/builds/asterisk-trunk/main/translate.c:75: more undefined references to `__builtin_ffsll' follow
collect2: ld returned 1 exit status
gmake[1]: *** [asterisk] Error 1
gmake: *** [main] Error 2
bash-3.2#
Comments:By: Michiel van Baak (mvanbaak) 2009-12-04 14:56:06.000-0600

in my opinion this is not minor.
It breaks on all my production machines.

Without this change asterisk compiled on:
OpenBSD amd64,i368 and sparc64
Debian amd64, i386 and sparc64
FreeBSD amd64 and i386

This change breaks it on half of those.

By: Digium Subversion (svnbot) 2009-12-04 15:18:58.000-0600

Repository: asterisk
Revision: 233239

U   trunk/main/translate.c

------------------------------------------------------------------------
r233239 | tilghman | 2009-12-04 15:06:22 -0600 (Fri, 04 Dec 2009) | 4 lines

Using the builtin function breaks OpenBSD 4.2
(closes issue ASTERISK-15276)
Reported by: jtodd

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=233239

By: John Todd (jtodd) 2009-12-04 16:14:17.000-0600

Hooray for successful compile!