Summary:ASTERISK-19079: Asterisk will not build under Freebsd with GCC 4.6 installed
Reporter:Eugene (varnav)Labels:
Date Opened:2011-12-19 17:02:06.000-0600Date Closed:2013-11-02 11:00:24
Versions: 10.0.0 10.3.0 Frequency of
Environment:FreeBSD 8.2+ GCC 4.6.2+Attachments:
Description:Asterisk will fail to build under FreeBSD if newer GCC is installed according to handbook instructions:

The error will be:
creating makelist
creating config.h
  [LD] ../res/res_adsi.o abstract_jb.o acl.o alaw.o aoc.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 ccss.o cdr.o cel.o channel.o chanvars.o cli.o config.o data.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 format.o format_cap.o format_pref.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o loader.o lock.o logger.o manager.o md5.o message.o netsock.o netsock2.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 test.o threadstorage.o timing.o translate.o udptl.o ulaw.o utils.o version.o xml.o xmldoc.o editline/libedit.a  -> asterisk
/usr/local/bin/ld: asterisk: local symbol `__progname' in /usr/lib/crt1.o is referenced by DSO
/usr/local/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
Comments:By: Eugene (varnav) 2012-04-08 11:54:41.453-0500

Patch proposed:


By: Eugene (varnav) 2012-11-17 08:59:05.149-0600

AFAIK this is fixed in FreeBSD port already. Can anyone confirm?

By: Eugene (varnav) 2013-11-02 10:59:48.190-0500

FreeBSD 9.0-RELEASE-p7
GCC 4.8.3
Asterisk 11.5.1 from port

Builds ok