Skip to content

Instantly share code, notes, and snippets.

@0x6e6562
Last active March 16, 2016 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0x6e6562/1afb379410accfdcd123 to your computer and use it in GitHub Desktop.
Save 0x6e6562/1afb379410accfdcd123 to your computer and use it in GitHub Desktop.
Solaris Freeswitch build issue
$ CFLAGS="-m64" CXXFLAGS="-m64" ./configure
$ gmake
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: WARNING: 'apr-config.in' seems to ignore the --datarootdir setting
config.status: creating apr.pc
config.status: creating test/Makefile
config.status: creating test/internal/Makefile
config.status: creating include/arch/unix/apr_private.h
config.status: executing libtool commands
rm: libtoolT: No such file or directory
config.status: executing default commands
config.status: include/apr.h is unchanged
config.status: include/arch/unix/apr_private.h is unchanged
gmake[1]: Entering directory `/opt/freeswitch/libs/apr'
gmake[2]: Entering directory `/opt/freeswitch/libs/apr'
gmake[2]: Nothing to be done for `local-all'.
gmake[2]: Leaving directory `/opt/freeswitch/libs/apr'
gmake[1]: Leaving directory `/opt/freeswitch/libs/apr'
gmake[1]: Entering directory `/opt/freeswitch/libs/apr-util'
Making all in xml/expat
gmake[2]: Entering directory `/opt/freeswitch/libs/apr-util/xml/expat'
gmake[3]: Entering directory `/opt/freeswitch/libs/apr-util/xml/expat/lib'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"' -DVERSION='"expat_1.95.2"' -I. -I.. -I/opt/freeswitch/libs/apr-util/xml/expat/lib -m64 -c xmlparse.c
libtool: compile: gcc -DHAVE_CONFIG_H "-DPACKAGE=\"expat\"" "-DVERSION=\"expat_1.95.2\"" -I. -I.. -I/opt/freeswitch/libs/apr-util/xml/expat/lib -m64 -c xmlparse.c -fPIC -DPIC -o xmlparse.o
/bin/sh ../libtool --mode=link gcc -version-info 1:0:1 -m64 -o libexpat.la -rpath /usr/local/freeswitch/lib xmlparse.lo xmltok.lo xmlrole.lo
libtool: link: rm -fr .libs/libexpat.a .libs/libexpat.la .libs/libexpat.lai
libtool: link: ar cru .libs/libexpat.a xmlparse.o xmltok.o xmlrole.o
libtool: link: ranlib .libs/libexpat.a
libtool: link: ( cd ".libs" && rm -f "libexpat.la" && ln -s "../libexpat.la" "libexpat.la" )
gmake[3]: Leaving directory `/opt/freeswitch/libs/apr-util/xml/expat/lib'
gmake[2]: Leaving directory `/opt/freeswitch/libs/apr-util/xml/expat'
gmake[2]: Entering directory `/opt/freeswitch/libs/apr-util'
gmake[2]: Nothing to be done for `local-all'.
gmake[2]: Leaving directory `/opt/freeswitch/libs/apr-util'
gmake[1]: Leaving directory `/opt/freeswitch/libs/apr-util'
touch /opt/freeswitch/src/include/switch.h
gmake[1]: Entering directory `/opt/freeswitch/libs/srtp'
gmake[1]: Leaving directory `/opt/freeswitch/libs/srtp'
gmake all-recursive
gmake[1]: Entering directory `/opt/freeswitch'
CC libfreeswitch_la-switch_apr.lo
CC libfreeswitch_la-switch_buffer.lo
CC libfreeswitch_la-switch_caller.lo
CC libfreeswitch_la-switch_channel.lo
CC libfreeswitch_la-switch_console.lo
CC libfreeswitch_la-switch_mprintf.lo
CC libfreeswitch_la-switch_core_media_bug.lo
CC libfreeswitch_la-switch_core_timer.lo
CC libfreeswitch_la-switch_core_asr.lo
CC libfreeswitch_la-switch_core_event_hook.lo
CC libfreeswitch_la-switch_core_speech.lo
CC libfreeswitch_la-switch_core_memory.lo
CC libfreeswitch_la-switch_core_codec.lo
CC libfreeswitch_la-switch_core_file.lo
CC libfreeswitch_la-switch_core_cert.lo
CC libfreeswitch_la-switch_core_hash.lo
CC libfreeswitch_la-switch_core_sqldb.lo
CC libfreeswitch_la-switch_core_session.lo
CC libfreeswitch_la-switch_core_directory.lo
CC libfreeswitch_la-switch_core_state_machine.lo
CC libfreeswitch_la-switch_core_io.lo
CC libfreeswitch_la-switch_core_rwlock.lo
CC libfreeswitch_la-switch_core_port_allocator.lo
CC libfreeswitch_la-switch_core.lo
CC libfreeswitch_la-switch_version.lo
CC libfreeswitch_la-switch_core_media.lo
CC libfreeswitch_la-switch_core_video.lo
CC libfreeswitch_la-switch_sdp.lo
CC libfreeswitch_la-switch_scheduler.lo
CC libfreeswitch_la-switch_core_db.lo
CC libfreeswitch_la-switch_dso.lo
CC libfreeswitch_la-switch_loadable_module.lo
CC libfreeswitch_la-switch_utils.lo
CC libfreeswitch_la-switch_event.lo
CC libfreeswitch_la-switch_resample.lo
CC libfreeswitch_la-switch_regex.lo
CC libfreeswitch_la-switch_rtp.lo
CC libfreeswitch_la-switch_jitterbuffer.lo
CC libfreeswitch_la-switch_ivr_bridge.lo
CC libfreeswitch_la-switch_ivr_originate.lo
CC libfreeswitch_la-switch_ivr_async.lo
CC libfreeswitch_la-switch_ivr_play_say.lo
CC libfreeswitch_la-switch_ivr_say.lo
CC libfreeswitch_la-switch_ivr_menu.lo
CC libfreeswitch_la-switch_ivr.lo
CC libfreeswitch_la-switch_stun.lo
CC libfreeswitch_la-switch_nat.lo
CC libfreeswitch_la-switch_log.lo
CC libfreeswitch_la-switch_xml.lo
CC libfreeswitch_la-switch_xml_config.lo
CC libfreeswitch_la-switch_config.lo
CC libfreeswitch_la-switch_time.lo
CC libfreeswitch_la-switch_odbc.lo
CC libfreeswitch_la-switch_pgsql.lo
CC libfreeswitch_la-switch_limit.lo
CC libfreeswitch_la-switch_pcm.lo
CC libfreeswitch_la-switch_speex.lo
CC libfreeswitch_la-switch_profile.lo
CC libfreeswitch_la-switch_json.lo
CC libfreeswitch_la-switch_curl.lo
CC libfreeswitch_la-switch_hashtable.lo
CC libfreeswitch_la-switch_utf8.lo
CC libfreeswitch_la-switch_vpx.lo
CXX switch_cpp.lo
CXXLD libfreeswitch.la
*** Warning: Linking the shared library libfreeswitch.la against the
*** static library libs/libvpx/libvpx.a is not portable!
ld: warning: file libs/libvpx/libvpx.a(vpx_decoder.c.o): wrong ELF class: ELFCLASS32
Making all in .
gmake[2]: Entering directory `/opt/freeswitch'
CC freeswitch-switch.o
CCLD freeswitch
Undefined first referenced
symbol in file
vpx_codec_decode ./.libs/libfreeswitch.so
vpx_codec_encode ./.libs/libfreeswitch.so
vpx_codec_destroy ./.libs/libfreeswitch.so
vpx_img_alloc ./.libs/libfreeswitch.so
vpx_codec_vp9_dx ./.libs/libfreeswitch.so
vpx_codec_vp9_cx ./.libs/libfreeswitch.so
vpx_codec_vp8_dx ./.libs/libfreeswitch.so
vpx_codec_vp8_cx ./.libs/libfreeswitch.so
vpx_img_wrap ./.libs/libfreeswitch.so
vpx_img_flip ./.libs/libfreeswitch.so
vpx_img_free ./.libs/libfreeswitch.so
vpx_codec_dec_init_ver ./.libs/libfreeswitch.so
vpx_codec_enc_init_ver ./.libs/libfreeswitch.so
vpx_codec_error_detail ./.libs/libfreeswitch.so
vpx_codec_iface_name ./.libs/libfreeswitch.so
vpx_codec_error ./.libs/libfreeswitch.so
vpx_codec_control_ ./.libs/libfreeswitch.so
vpx_codec_version_str ./.libs/libfreeswitch.so
vpx_img_set_rect ./.libs/libfreeswitch.so
vpx_codec_enc_config_set ./.libs/libfreeswitch.so
vpx_codec_enc_config_default ./.libs/libfreeswitch.so
vpx_codec_get_cx_data ./.libs/libfreeswitch.so
vpx_codec_get_frame ./.libs/libfreeswitch.so
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
gmake[2]: *** [freeswitch] Error 1
gmake[2]: Leaving directory `/opt/freeswitch'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/opt/freeswitch'
gmake: *** [all] Error 2
$ elffile libs/libvpx/libvpx.a
libs/libvpx/libvpx.a: current ar archive, 32-bit symbol table, ELF 32-bit LSB relocatable 80386 Version 1
applications/mod_commands
applications/mod_conference
applications/mod_db
applications/mod_dptools
applications/mod_esf
applications/mod_expr
applications/mod_hash
dialplans/mod_dialplan_xml
endpoints/mod_loopback
endpoints/mod_sofia
event_handlers/mod_cdr_csv
event_handlers/mod_event_socket
formats/mod_native_file
formats/mod_sndfile
loggers/mod_console
loggers/mod_logfile
xml_int/mod_xml_rpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment