[Home]

Summary:ASTERISK-26546: mips64el and x32 - undefined reference to symbol 'dlopen@@GLIBC_2.2'
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2016-11-02 04:57:35Date Closed:2016-11-28 11:34:20.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem General
Versions:13.12.1 Frequency of
Occurrence
Related
Issues:
Environment:Debian platforms mips64el (MIPS 64bits) and x32 (x86 32 bits userspace on 64 bits kernel)Attachments:
Description:Originally reported for 13.1.0, fixed in Debian since, but still present in Upstream.

On mis64el:
{code}
> mips64el-linux-gnuabi64-g++  -o asterisk -Wl,--export-dynamic -Wl,--version-script,asterisk.exports -Wl,--dynamic-list,asterisk.dynamics  -fPIE -pie -Wl,-z,relro -Wl,-z,now    abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o astobj2_container.o astobj2_hash.o astobj2_rbtree.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge_after.o bridge_basic.o bridge_channel.o bridge_roles.o bucket.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o codec.o codec_builtin.o config.o config_options.o core_local.o core_unreal.o crypt.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o endpoints.o enum.o event.o features.o features_config.o file.o fixedjitterbuf.o format.o format_cache.o format_cap.o format_compatibility.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o json.o libasteriskssl.o loader.o lock.o logger.o manager.o manager_bridges.o manager_channels.o manager_endpoints.o manager_mwi.o manager_system.o md5.o media_index.o message.o mixmonitor.o named_acl.o netsock.o netsock2.o optional_api.o parking.o pbx.o pickup.o plc.o poll.o presencestate.o privacy.o rtp_engine.o say.o sched.o sdp_srtp.o security_events.o sem.o sha1.o sip_api.o slinfactory.o smoother.o sorcery.o sounds_index.o srv.o stasis.o stasis_bridges.o stasis_cache.o stasis_cache_pattern.o stasis_channels.o stasis_endpoints.o stasis_message.o stasis_message_router.o stasis_system.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadpool.o threadstorage.o timing.o translate.o udptl.o ulaw.o uri.o utils.o uuid.o version.o xml.o xmldoc.o    buildinfo.o -lc  -lxml2 -lxslt -lxml2 -lsqlite3  -lssl -lcrypto -ljansson   -luuid  -lcrypt  -ltermcap  -lm   -ledit
> /usr/bin/ld: loader.o: undefined reference to symbol 'dlopen@@GLIBC_2.2'
> //lib/mips64el-linux-gnuabi64/libdl.so.2: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[3]: *** [asterisk] Error 1
{code}
Log: http://mipsdebian.imgtec.com/debian/logs/a/asterisk/asterisk_13.1.0~dfsg-1_mips64el-20150305-2010.build.gz

On x32:
{code}
> x86_64-linux-gnux32-g++  -o asterisk -Wl,--export-dynamic -Wl,--version-script,asterisk.exports -Wl,--dynamic-list,asterisk.dynamics  -fPIE -pie -Wl,-z,relro -Wl,-z,now    abstract_jb.o acl.o adsi.o alaw.o aoc.o app.o ast_expr2.o ast_expr2f.o asterisk.o astfd.o astmm.o astobj2.o astobj2_container.o astobj2_hash.o astobj2_rbtree.o audiohook.o autochan.o autoservice.o backtrace.o bridge.o bridge_after.o bridge_basic.o bridge_channel.o bridge_roles.o bucket.o callerid.o ccss.o cdr.o cel.o channel.o channel_internal_api.o chanvars.o cli.o codec.o codec_builtin.o config.o config_options.o core_local.o core_unreal.o crypt.o data.o datastore.o db.o devicestate.o dial.o dns.o dnsmgr.o dsp.o endpoints.o enum.o event.o features.o features_config.o file.o fixedjitterbuf.o format.o format_cache.o format_cap.o format_compatibility.o frame.o framehook.o fskmodem.o global_datastores.o hashtab.o heap.o http.o image.o indications.o io.o jitterbuf.o json.o libasteriskssl.o loader.o lock.o logger.o manager.o manager_bridges.o manager_channels.o manager_endpoints.o manager_mwi.o manager_system.o md5.o media_index.o message.o mixmonitor.o named_acl.o netsock.o netsock2.o optional_api.o parking.o pbx.o pickup.o plc.o poll.o presencestate.o privacy.o rtp_engine.o say.o sched.o sdp_srtp.o security_events.o sem.o sha1.o sip_api.o slinfactory.o smoother.o sorcery.o sounds_index.o srv.o stasis.o stasis_bridges.o stasis_cache.o stasis_cache_pattern.o stasis_channels.o stasis_endpoints.o stasis_message.o stasis_message_router.o stasis_system.o stdtime/localtime.o strcompat.o strings.o stun.o syslog.o taskprocessor.o tcptls.o tdd.o term.o test.o threadpool.o threadstorage.o timing.o translate.o udptl.o ulaw.o uri.o utils.o uuid.o version.o xml.o xmldoc.o    buildinfo.o -lc  -lxml2 -lxslt -lxml2 -lsqlite3  -lssl -lcrypto -ljansson   -luuid  -lcrypt  -ltermcap  -lm   -ledit
> /usr/bin/ld: libasteriskssl.o: undefined reference to symbol 'dlsym@@GLIBC_2.16'
> //lib/x86_64-linux-gnux32/libdl.so.2: error adding symbols: DSO missing from command line
> collect2: error: ld returned 1 exit status
> make[3]: *** [asterisk] Error 1
{code}
Log: http://buildd.debian-ports.org/status/fetch.php?pkg=asterisk&arch=x32&ver=1%3A13.1.0~dfsg-1&stamp=1420085728
Comments:By: Asterisk Team (asteriskteam) 2016-11-02 04:57:37.004-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Tzafrir Cohen (tzafrir) 2016-11-02 04:58:48.486-0500

The issue seems to be that those systems are not detected as GNU systems by our build systems.

By: Friendly Automation (friendly-automation) 2016-11-02 05:12:54.305-0500

Change 4276 had a related patch set uploaded by Tzafrir Cohen:
autoconf: more variants for OSARCH linux-gnu

[https://gerrit.asterisk.org/4276|https://gerrit.asterisk.org/4276]

By: Friendly Automation (friendly-automation) 2016-11-28 11:34:20.911-0600

Change 4276 merged by Joshua Colp:
autoconf: more variants for OSARCH linux-gnu

[https://gerrit.asterisk.org/4276|https://gerrit.asterisk.org/4276]

By: Friendly Automation (friendly-automation) 2016-11-28 14:39:27.511-0600

Change 4500 merged by zuul:
autoconf: more variants for OSARCH linux-gnu

[https://gerrit.asterisk.org/4500|https://gerrit.asterisk.org/4500]

By: Friendly Automation (friendly-automation) 2016-11-28 14:40:13.124-0600

Change 4499 merged by George Joseph:
autoconf: more variants for OSARCH linux-gnu

[https://gerrit.asterisk.org/4499|https://gerrit.asterisk.org/4499]