Build problems usingh asterisk 13

i try to build asterisk and have this error at build time that only happened in 64bit builds but not in 32bit builds:

[  241s] /usr/src/packages/BUILD/build_tools/make_linker_version_script app_voicemail_imapstorage "" "/usr/src/packages/BUILD"
[  241s] x86_64-linux-gnu-gcc  -o app_voicemail_imapstorage.so -pthread -fPIE -pie -Wl,-z,relro -Wl,-z,now       -shared -Wl,--version-script,app_voicemail_imapstorage.exports,--warn-common  app_voicemail_imapstorage.o  -lssl -lcrypto -lc-client  -lssl -lcrypto -lc-client 
[  241s] /usr/bin/ld: app_voicemail_imapstorage.o: relocation R_X86_64_PC32 against symbol `mm_log' can not be used when making a shared object; recompile with -fPIC
[  241s] /usr/bin/ld: final link failed: Bad value

You appear to be using a spec file to produce an RPM, have you tried building outside of that process to see if it’s fine? If it is then it may be that spec file and process itself.

i not using win-hat or rmp stupid derivate product i’m using a automated build… it’s nonsense make by hand a process every install… so script builds fine in all the environment but not in that 64 bit case!

seems there’s a static link agains shared lib but i dont now why it only hapened at 64bit… so a “quick response” as you are not valid…

due that i’ll paste here complete build script taht demostrate all are fine:

[  110s] PATH=$PATH:/usr/src/packages/BUILD/debian/dummyprogs ./configure			\
[  110s] 		CFLAGS="-fgnu89-inline -g -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2" LDFLAGS="-fPIE -pie -Wl,-z,relro -Wl,-z,now" \
[  110s] 		--host=x86_64-linux-gnu		\
[  110s] 		--build=x86_64-linux-gnu		\
[  110s] 		--prefix=/usr				\
[  110s] 		--mandir=\${prefix}/share/man		\
[  110s] 		--infodir=\${prefix}/share/info	\
[  110s] 		--disable-asteriskssl			\
[  110s] 		--with-gsm				\
[  110s] 		--with-imap=system			\
[  110s] 		--without-pwlib				\
[  110s] 		 \
[  110s] 		 || { cat config.log; exit 1; }
[  110s] checking build system type... x86_64-pc-linux-gnu
[  110s] checking host system type... x86_64-pc-linux-gnu
[  110s] checking for x86_64-linux-gnu-gcc... x86_64-linux-gnu-gcc
[  110s] checking whether the C compiler works... yes
[  110s] checking for C compiler default output file name... a.out
[  110s] checking for suffix of executables... 
[  110s] checking whether we are cross compiling... no
[  110s] checking for suffix of object files... o
[  110s] checking whether we are using the GNU C compiler... yes
[  110s] checking whether x86_64-linux-gnu-gcc accepts -g... yes
[  110s] checking for x86_64-linux-gnu-gcc option to accept ISO C89... none needed
[  110s] checking how to run the C preprocessor... x86_64-linux-gnu-gcc -E
[  110s] checking for grep that handles long lines and -e... /bin/grep
[  110s] checking for egrep... /bin/grep -E
... all yes here and next...
[  111s] checking minix/config.h usability... no
[  111s] checking minix/config.h presence... no
[  111s] checking for minix/config.h... no
[  111s] checking whether it is safe to define __EXTENSIONS__... yes
[  111s] checking whether char is unsigned... no
[  111s] checking for x86_64-linux-gnu-uname... no
[  111s] checking for uname... /bin/uname
[  111s] checking for x86_64-linux-gnu-g++... x86_64-linux-gnu-g++
[  112s] checking whether we are using the GNU C++ compiler... yes
[  112s] checking whether x86_64-linux-gnu-g++ accepts -g... yes
[  112s] checking how to run the C preprocessor... x86_64-linux-gnu-gcc -E
[  112s] checking how to run the C++ preprocessor... x86_64-linux-gnu-g++ -E
[  112s] checking for a sed that does not truncate output... /bin/sed
[  112s] checking for egrep... grep -E
[  112s] checking for ld used by x86_64-linux-gnu-gcc... /usr/bin/ld
[  112s] checking if the linker (/usr/bin/ld) is GNU ld... yes
[  112s] checking for gawk... gawk
[  112s] checking for a BSD-compatible install... /usr/bin/install -c
[  112s] checking whether ln -s works... yes
[  112s] checking for x86_64-linux-gnu-ranlib... no
[  112s] checking for ranlib... ranlib
[  112s] checking for GNU make... make
[  112s] checking for egrep... (cached) /bin/grep -E
[  112s] checking for x86_64-linux-gnu-strip... no
[  112s] checking for x86_64-linux-gnu-gstrip... no
[  112s] checking for strip... strip
[  112s] checking for x86_64-linux-gnu-ar... no
[  112s] checking for x86_64-linux-gnu-gar... no
[  112s] checking for ar... ar
[  112s] checking for bison... :
[  112s] checking for cmp... /usr/bin/cmp
[  112s] checking for cat... /bin/cat
[  112s] checking for flex... :
[  112s] checking for grep... (cached) /bin/grep
[  112s] checking for python... :
[  112s] checking for find... /usr/bin/find
[  112s] checking for compress... :
[  112s] checking for basename... /usr/bin/basename
[  112s] checking for dirname... /usr/bin/dirname
[  112s] checking for sh... /bin/bash
[  112s] checking for ln... /bin/ln
[  112s] checking for doxygen... :
[  112s] checking for dot... :
[  112s] checking for wget... :
[  112s] checking for curl... :
[  112s] checking for rubber... :
[  112s] checking for catdvi... :
[  112s] checking for kpsewhich... :
[  112s] checking for xmllint... :
[  112s] checking for xmlstarlet... :
[  112s] checking for bash... /bin/bash
[  112s] checking for git... :
[  112s] checking for alembic... :
[  112s] checking for bzip2... /bin/bzip2
[  112s] checking for tar... /bin/tar
[  112s] checking for patch... /usr/bin/patch
[  112s] checking for sed... (cached) /bin/sed
[  112s] checking for nm... /usr/bin/nm
[  112s] checking for fetch... /usr/src/packages/BUILD/debian/dummyprogs/fetch
[  112s] checking for ldconfig... :
[  112s] checking for sha1sum... /usr/bin/sha1sum
[  112s] checking for openssl... :
[  112s] checking for bison that supports parse-param... 
[  112s] checking for x86_64-linux-gnu-soxmix... no
[  112s] checking for soxmix... no
[  112s] checking for md5... no
[  112s] checking for md5sum... md5sum
[  112s] checking for a sed that does not truncate output... (cached) /bin/sed
[  112s] checking whether x86_64-linux-gnu-gcc is Clang... no
[  112s] checking whether pthreads work with -pthread... yes
[  112s] checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
[  112s] checking whether more special flags are required for pthreads... no
[  112s] checking for PTHREAD_PRIO_INHERIT... yes
[  112s] checking for RAII support... checking for gcc -fnested-functions... no
[  112s] checking for clang strsep/strcmp optimization... no
[  112s] checking for gawk... (cached) gawk
[  112s] checking for curl-config... /usr/bin/curl-config
[  112s] checking for the version of libcurl... 7.26.0
[  112s] checking for libcurl >= version 7.10.1... yes
[  112s] checking whether libcurl is usable... yes
[  112s] checking for curl_free... yes
[  113s] checking for size_t... yes
[  113s] checking for working alloca.h... yes
......... only yes yes yes....
[  114s] checking for strings.h... (cached) yes
[  114s] checking sys/event.h usability... no
[  114s] checking sys/event.h presence... no
[  114s] checking for sys/event.h... no
[  114s] checking sys/file.h usability... yes
[  114s] checking sys/file.h presence... yes
...more yes yes yes...
[  116s] checking uuid/uuid.h presence... yes
[  116s] checking for uuid/uuid.h... yes
[  116s] checking for uuid_generate_random in -le2fs-uuid... no
[  116s] checking for uuid_generate_random... no
[  116s] checking for json_dumps in -ljansson... yes
[  116s] checking jansson.h usability... yes
[  116s] checking jansson.h presence... yes
[  116s] checking for jansson.h... yes
[  116s] checking for clock_gettime in -lrt... yes
[  116s] checking for x86_64-linux-gnu-xml2-config... no
[  116s] checking for xml2-config... /usr/bin/xml2-config
[  116s] checking for uriParseUriA in -luriparser... yes
[  116s] checking uriparser/Uri.h usability... yes
[  116s] checking uriparser/Uri.h presence... yes
[  116s] checking for uriparser/Uri.h... yes
[  117s] checking for xsltLoadStylesheetPI in -lxslt... yes
[  117s] checking libxslt/xsltInternals.h usability... yes
[  117s] checking libxslt/xsltInternals.h presence... yes
[  117s] checking for libxslt/xsltInternals.h... yes
[  117s] checking for xsltCleanupGlobals in -lxslt... yes
[  117s] checking for libxslt/xsltInternals.h... (cached) yes
[  117s] checking xlocale.h usability... yes
[  117s] checking xlocale.h presence... yes
[  117s] checking for xlocale.h... yes
[  117s] checking winsock.h usability... no
[  117s] checking winsock.h presence... no
[  117s] checking for winsock.h... no
[  117s] checking winsock2.h usability... no
[  117s] checking winsock2.h presence... no
[  117s] checking for winsock2.h... no
[  117s] checking sys/poll.h usability... yes
[  117s] checking sys/poll.h presence... yes
[  117s] checking for sys/poll.h... yes
[  117s] checking for special C compiler options needed for large files... no
[  117s] checking for _FILE_OFFSET_BITS value needed for large files... no
[  117s] checking for stdbool.h that conforms to C99... yes
[  117s] checking for _Bool... yes
[  117s] checking for an ANSI C-conforming const... yes
[  118s] checking for uid_t in sys/types.h... yes
[  118s] checking for inline... inline
[  118s] checking for long double with more range or precision than double... yes
[  118s] checking for mode_t... yes
[  118s] checking for off_t... yes
[  118s] checking for pid_t... yes
[  118s] checking for size_t... (cached) yes
[  118s] checking for struct stat.st_blksize... yes
[  118s] checking for struct ucred.uid... yes
[  118s] checking for struct ucred.cr_uid... no
[  118s] checking for struct sockpeercred.uid... no
[  118s] checking for struct ifreq.ifr_ifru.ifru_hwaddr... yes
[  118s] checking whether time.h and sys/time.h may both be included... yes
[  118s] checking whether struct tm is in sys/time.h or time.h... time.h
[  118s] checking for working volatile... yes
[  118s] checking for ptrdiff_t... yes
[  119s] checking for struct stat.st_mtim... yes
[  119s] checking for struct stat.st_mtimensec... no
[  119s] checking for struct stat.st_mtimespec... no
[  119s] checking for unistd.h... (cached) yes
[  119s] checking for working chown... yes
[  119s] checking whether closedir returns void... no
[  119s] checking for error_at_line... yes
[  119s] checking vfork.h usability... no
[  119s] checking vfork.h presence... no
[  119s] checking for vfork.h... no
[  119s] checking for fork... yes
[  119s] checking for vfork... yes
[  119s] checking for working fork... yes
[  119s] checking for working vfork... (cached) yes
[  119s] checking for _LARGEFILE_SOURCE value needed for large files... no
[  119s] checking whether x86_64-linux-gnu-gcc needs -traditional... no
[  120s] checking for working memcmp... yes
[  120s] checking for stdlib.h... (cached) yes
[  120s] checking for unistd.h... (cached) yes
[  120s] checking for sys/param.h... (cached) yes
[  120s] checking for utime.h... (cached) yes
[  120s] checking for getpagesize... yes
[  120s] checking for working mmap... yes
[  120s] checking sys/select.h usability... yes
[  120s] checking sys/select.h presence... yes
[  120s] checking for sys/select.h... yes
[  120s] checking for sys/socket.h... (cached) yes
[  120s] checking types of arguments for select... int,fd_set *,struct timeval *
[  120s] checking whether lstat correctly handles trailing slash... yes
[  120s] checking whether stat accepts an empty string... no
[  120s] checking for working strcoll... yes
[  120s] checking for strftime... yes
[  120s] checking for working strnlen... yes
[  120s] checking for working strtod... yes
[  121s] checking whether utime accepts a null argument... yes
[  121s] checking for vprintf... yes
[  121s] checking for _doprnt... no
[  121s] checking for asprintf... yes
[  121s] checking for atexit... yes
[  121s] checking for closefrom... no
[  121s] checking for dup2... yes
[  121s] checking for eaccess... yes
[  121s] checking for endpwent... yes
[  121s] checking for euidaccess... yes
[  121s] checking for ffsll... yes
.... 
[  121s] checking for ftruncate... yes
[  125s] checking for utime... yes
[  125s] checking for vasprintf... yes
[  125s] checking for getpeereid... no
[  125s] checking for sysctl... yes
[  125s] checking for swapctl... no
[  125s] checking for htonll... no
[  125s] checking for ntohll... no
[  125s] checking for sqrt in -lm... yes
[  125s] checking for exp2... yes
[  125s] checking for log2... yes
[  125s] checking for exp10... yes
[  126s] checking for log10... yes
.......... only yes yes yes .. here and so....
[  129s] checking for floorl... yes
[  129s] checking for ceill... yes
[  129s] checking for LLONG_MAX in limits.h... yes
[  129s] checking for timersub in time.h... yes
[  129s] checking for a version of GNU ld that supports the --dynamic-list flag... yes
[  129s] checking for sys/poll.h... (cached) yes
[  129s] checking for funopen... no
[  129s] checking for fopencookie... yes
[  129s] checking for inet_aton... yes
[  129s] checking for IP_PKTINFO... yes
[  129s] checking for library containing gethostbyname_r... none required
[  129s] checking for gethostbyname_r with 6 arguments... yes
[  129s] checking for gethostbyname_r with 5 arguments... no
[  129s] checking byteswap.h usability... yes
[  129s] checking byteswap.h presence... yes
[  129s] checking for byteswap.h... yes
[  130s] checking for __swap16 variant of <sys/endian.h> byteswapping macros... no
[  130s] checking for bswap16 variant of <sys/endian.h> byteswapping macros... no
[  130s] checking for locale_t in locale.h... yes
[  130s] checking for O_EVTONLY in fcntl.h... no
[  130s] checking for O_SYMLINK in fcntl.h... no
[  130s] checking for PTHREAD_RWLOCK_INITIALIZER in pthread.h... yes
[  130s] checking for PTHREAD_RWLOCK_PREFER_WRITER_NP in pthread.h... yes
[  130s] checking for PTHREAD_MUTEX_RECURSIVE_NP in pthread.h... yes
[  130s] checking for PTHREAD_MUTEX_ADAPTIVE_NP in pthread.h... yes
[  130s] checking for pthread_spinlock_t in pthread.h... yes
[  130s] checking for pthread_rwlock_timedwrlock() in pthread.h... yes
[  130s] checking for working unnamed semaphores... yes
[  130s] checking if PTHREAD_ONCE_INIT needs braces... no
[  130s] checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP in pthread.h... yes
[  130s] checking whether we can compare a mutex to its initial value... no
[  130s] checking sys/thr.h usability... no
[  130s] checking sys/thr.h presence... no
[  130s] checking for sys/thr.h... no
[  130s] checking for compiler atomic operations... yes
[  131s] checking if your system printf is NULL-safe.... (null)yes
[  131s] checking if we can increase the maximum select-able file descriptor... no
[  131s] checking for compiler 'attribute pure' support... yes
[  131s] checking for compiler 'attribute malloc' support... yes
...more "yes",,,....
[  131s] checking for compiler 'attribute destructor' support... yes
[  131s] checking for compiler 'attribute noreturn' support... yes
[  131s] checking for -fsanitize=address support... no
[  131s] checking for -fsanitize=thread support... no
[  131s] checking for -fsanitize=leak support... no
[  131s] checking for -fsanitize=undefined support... no
[  131s] checking for -ffunction-sections support... yes
[  131s] checking for --gc-sections support... yes
[  131s] checking for -Wdeclaration-after-statement support... yes
[  131s] checking for -Wtrampolines support... yes
[  131s] checking for _FORTIFY_SOURCE support... yes
[  131s] checking for -fno-strict-overflow... yes
[  131s] checking for -Wshadow... yes
[  131s] checking for -march=native support... yes
[  131s] checking whether to use rpath... not needed
[  131s] checking for sysinfo... yes
[  132s] checking for library containing res_9_ninit... no
[  132s] checking for res_ninit... yes
[  132s] checking for library containing res_9_ndestroy... no
[  132s] checking for res_ndestroy... no
[  132s] checking for library containing res_9_close... no
[  132s] checking for res_close... no
[  132s] checking for GLOB_NOMAGIC in glob.h... yes
[  132s] checking for GLOB_BRACE in glob.h... yes
[  132s] checking for RTLD_NOLOAD in dlfcn.h... yes
[  132s] checking for IP_MTU_DISCOVER in netinet/in.h... yes
[  132s] checking libkern/OSAtomic.h usability... no
[  132s] checking libkern/OSAtomic.h presence... no
[  132s] checking for libkern/OSAtomic.h... no
[  132s] checking size of int... 4
[  133s] checking size of long... 8
[  133s] checking size of long long... 8
[  133s] checking size of char *... 8
[  133s] checking size of long... (cached) 8
[  133s] checking size of long long... (cached) 8
[  133s] checking size of fd_set.fds_bits... (cached) 8
[  133s] checking for dladdr in dlfcn.h... yes
[  133s] checking for x86_64-linux-gnu-pkg-config... no
[  133s] checking for pkg-config... /usr/bin/pkg-config
[  133s] checking pkg-config is at least version 0.9.0... yes
[  133s] checking for snd_spcm_init in -lasound... yes
[  133s] checking alsa/asoundlib.h usability... yes
[  133s] checking alsa/asoundlib.h presence... yes
[  133s] checking for alsa/asoundlib.h... yes
[  133s] checking for bfd_openr in -lbfd... yes
[  133s] checking bfd.h usability... yes
[  133s] checking bfd.h presence... yes
[  133s] checking for bfd.h... yes
[  133s] checking for cap_from_text in -lcap... yes
[  133s] checking sys/capability.h usability... yes
[  133s] checking sys/capability.h presence... yes
[  133s] checking for sys/capability.h... yes
[  133s] checking for DAHDI_RESET_COUNTERS in dahdi/user.h... yes
[  134s] checking for DAHDI_POLICY_HALF_FULL in dahdi/user.h... yes
[  134s] checking for enhanced dahdi vmwi support... yes
[  134s] checking if "int foo = DAHDI_ECHOCANCEL_FAX_MODE" compiles using dahdi/user.h... yes
[  134s] checking for getifaddrs() support... yes
[  134s] checking for timerfd support... yes
[  134s] checking for gsm_create in -lgsm... yes
[  134s] checking gsm.h usability... yes
[  134s] checking gsm.h presence... yes
[  134s] checking for gsm.h... yes
[  134s] checking gsm/gsm.h usability... yes
[  134s] checking gsm/gsm.h presence... yes
[  134s] checking for gsm/gsm.h... yes
[  134s] checking for ILBC... no
[  134s] checking for LIBEDIT... yes
[  134s] checking for Testing for libedit unicode support... no
[  134s] checking for iconv_open in -liconv... no
[  134s] checking for libiconv_open in -liconv... no
[  134s] checking for iconv_close in -lc... yes
[  134s] checking iconv.h usability... yes
[  134s] checking iconv.h presence... yes
[  134s] checking for iconv.h... yes
[  134s] checking for icaltimezone_get_utc_timezone in -lical... yes
[  134s] checking libical/ical.h usability... yes
[  134s] checking libical/ical.h presence... yes
[  134s] checking for libical/ical.h... yes
[  135s] checking for iks_start_sasl in -liksemel... yes
[  135s] checking iksemel.h usability... yes
[  135s] checking iksemel.h presence... yes
[  135s] checking for iksemel.h... yes
[  135s] checking for system c-client library...... yes
[  135s] checking for SQLConnect in -liodbc... no
[  135s] checking for inotify_init in -lc... yes
[  135s] checking sys/inotify.h usability... yes
[  135s] checking sys/inotify.h presence... yes
[  135s] checking for sys/inotify.h... yes
[  135s] checking for jack_activate in -ljack... yes
[  135s] checking jack/jack.h usability... yes
[  135s] checking jack/jack.h presence... yes
[  135s] checking for jack/jack.h... yes
[  135s] checking for kqueue in -lc... no
[  135s] checking for kevent64... no
[  136s] checking for lt_dlinit in -lltdl... yes
[  136s] checking ltdl.h usability... yes
[  136s] checking ltdl.h presence... yes
[  136s] checking for ltdl.h... yes
[  136s] checking for ldap_initialize in -lldap... yes
[  136s] checking ldap.h usability... yes
[  136s] checking ldap.h presence... yes
[  136s] checking for ldap.h... yes
[  136s] checking for mISDN_open in -lmISDN... no
[  136s] checking for x86_64-linux-gnu-mysql_config... no
[  136s] checking for mysql_config... /usr/bin/mysql_config
[  136s] checking for nbs_connect in -lnbs... no
[  136s] checking for x86_64-linux-gnu-neon-config... no
[  136s] checking for neon-config... /usr/bin/neon-config
[  136s] checking for x86_64-linux-gnu-neon-config... no
[  136s] checking for neon-config... /usr/bin/neon-config
[  136s] checking for x86_64-linux-gnu-net-snmp-config... no
[  136s] checking for net-snmp-config... no
[  136s] checking for newtBell in -lnewt... yes
[  136s] checking newt.h usability... yes
[  136s] checking newt.h presence... yes
[  136s] checking for newt.h... yes
[  136s] checking for SQLConnect in -lodbc... yes
[  136s] checking sql.h usability... yes
[  136s] checking sql.h presence... yes
[  136s] checking for sql.h... yes
[  137s] checking for ogg_sync_init in -logg... yes
[  137s] checking for backtrace in -lexecinfo... no
[  137s] checking for backtrace in -lc... yes
[  137s] checking execinfo.h usability... yes
[  137s] checking execinfo.h presence... yes
[  137s] checking for execinfo.h... yes
[  137s] checking for ba2str in -lbluetooth... yes
[  137s] checking bluetooth/bluetooth.h usability... yes
[  137s] checking bluetooth/bluetooth.h presence... yes
[  137s] checking for bluetooth/bluetooth.h... yes
[  137s] checking linux/soundcard.h usability... yes
[  137s] checking linux/soundcard.h presence... yes
[  137s] checking for linux/soundcard.h... yes
[  137s] checking for x86_64-linux-gnu-pg_config... no
[  137s] checking for pg_config... /usr/bin/pg_config
[  137s] checking for PQescapeStringConn in -lpq... yes
[  137s] checking for pg_encoding_to_char within Postgres headers... yes
[  137s] checking for PJPROJECT... yes
[  138s] checking for pjsip_dlg_create_uas_and_inc_lock in -lpjsip... no
[  138s] checking for pjsip_tsx_create_uac2 in -lpjsip... yes
[  138s] checking pjsip.h usability... yes
[  138s] checking pjsip.h presence... yes
[  138s] checking for pjsip.h... yes
[  138s] checking if "pjmedia_mod_offer_flag flag = PJMEDIA_SDP_NEG_ALLOW_MEDIA_CHANGE" compiles using pjmedia.h... yes
[  138s] checking for pjsip_get_dest_info in -lpjsip... yes
[  138s] checking for pjsip.h... (cached) yes
[  139s] checking for pj_ssl_cert_load_from_files2 in -lpj... yes
[  139s] checking pjlib.h usability... yes
[  139s] checking pjlib.h presence... yes
[  139s] checking for pjlib.h... yes
[  139s] checking for pjsip_endpt_set_ext_resolver in -lpjsip... yes
[  139s] checking for pjsip.h... (cached) yes
[  139s] checking if "struct pjsip_tls_setting setting; int proto; proto = setting.proto;" compiles using pjsip.h... yes
[  139s] checking for pjsip_evsub_add_ref in -lpjsip... no
[  140s] checking for pjsip_inv_add_ref in -lpjsip... no
[  140s] checking for pjsip_auth_clt_deinit in -lpjsip... no
[  140s] checking for PYTHONDEV... no
[  140s] checking for poptStrerror in -lpopt... yes
[  140s] checking popt.h usability... yes
[  140s] checking popt.h presence... yes
[  140s] checking for popt.h... yes
[  140s] checking for Pa_GetDeviceCount in -lportaudio... yes
[  140s] checking portaudio.h usability... yes
[  140s] checking portaudio.h presence... yes
[  140s] checking for portaudio.h... yes
[  140s] checking for pri_connected_line_update in -lpri... yes
[  140s] checking libpri.h usability... yes
[  140s] checking libpri.h presence... yes
[  140s] checking for libpri.h... yes
[  140s] checking for pri_setup_ack in -lpri... no
[  140s] checking for pri_persistent_layer2_option in -lpri... no
[  140s] checking for pri_date_time_send_option in -lpri... yes
[  140s] checking for libpri.h... (cached) yes
[  141s] checking for pri_mwi_indicate_v2 in -lpri... yes
[  141s] checking for libpri.h... (cached) yes
[  141s] checking for pri_display_text in -lpri... yes
........
[  142s] checking for resample_open in -lresample... yes
[  142s] checking libresample.h usability... yes
[  142s] checking libresample.h presence... yes
[  142s] checking for libresample.h... yes
[  142s] checking for minimum version of SpanDSP... yes
[  142s] checking for span_set_message_handler in -lspandsp... yes
[  142s] checking spandsp.h usability... yes
[  142s] checking spandsp.h presence... yes
[  142s] checking for spandsp.h... yes
[  142s] checking for t38_terminal_init in -lspandsp... yes
[  142s] checking for spandsp.h... (cached) yes
[  142s] checking for ss7_set_isup_timer in -lss7... no
[  142s] checking for openr2_chan_new in -lopenr2... yes
[  142s] checking openr2.h usability... yes
[  142s] checking openr2.h presence... yes
[  142s] checking for openr2.h... yes
[  142s] checking for opus_encoder_create in -lopus... yes
[  142s] checking opus/opus.h usability... yes
[  143s] checking opus/opus.h presence... yes
[  143s] checking for opus/opus.h... yes
[  143s] checking for luaL_newstate in -llua5.2... no
[  143s] checking for luaL_newstate in -llua5.1... yes
[  143s] checking lua5.1/lua.h usability... yes
[  143s] checking lua5.1/lua.h presence... yes
[  143s] checking for lua5.1/lua.h... yes
[  143s] checking for rc_read_config in -lfreeradius-client... no
[  143s] checking for rc_read_config in -lradiusclient-ng... no
[  143s] checking for cpg_join in -lcpg... no
[  143s] checking for corosync_cfg_state_track in -lcfg... no
[  143s] checking for speex_encode in -lspeex... yes
[  143s] checking speex/speex.h usability... yes
[  143s] checking speex/speex.h presence... yes
[  143s] checking for speex/speex.h... yes
[  143s] checking for speex_preprocess_ctl in -lspeex... no
[  143s] checking for speex_preprocess_ctl in -lspeexdsp... yes
[  143s] checking for speex/speex.h... (cached) yes
.......
[  144s] checking for crypt.h... yes
[  144s] checking for crypt... no
[  144s] checking for crypt_r in -lcrypt... yes
[  144s] checking for AES_encrypt in -lcrypto... yes
[  144s] checking openssl/aes.h usability... yes
[  144s] checking openssl/aes.h presence... yes
[  144s] checking for openssl/aes.h... yes
[  144s] checking for SSL_connect in -lssl... yes
[  144s] checking openssl/ssl.h usability... yes
[  144s] checking openssl/ssl.h presence... yes
[  144s] checking for openssl/ssl.h... yes
[  144s] checking osp/osp.h usability... no
[  144s] checking osp/osp.h presence... no
[  144s] checking for osp/osp.h... no
[  145s] checking for SSL_CTX_set_tlsext_use_srtp in -lssl... yes
[  145s] checking for openssl/ssl.h... (cached) yes
[  145s] checking for EC_KEY_new_by_curve_name in -lssl... yes
[  145s] checking openssl/ec.h usability... yes
[  145s] checking openssl/ec.h presence... yes
[  145s] checking for openssl/ec.h... yes
[  145s] checking for SSL_OP_NO_TLSv1_1 in openssl/ssl.h... yes
[  145s] checking for SSL_OP_NO_TLSv1_2 in openssl/ssl.h... yes
[  145s] checking for srtp_init in -lsrtp... yes
[  145s] checking srtp/srtp.h usability... yes
[  145s] checking srtp/srtp.h presence... yes
[  145s] checking for srtp/srtp.h... yes
[  145s] checking for the ability of -lsrtp to be linked in a shared object... yes
[  145s] checking for srtp_shutdown in -lsrtp... yes
[  145s] checking for srtp/srtp.h... (cached) yes
[  145s] checking for GMIME... no
[  145s] checking for GMIME... no
[  145s] checking for GMIME... no
[  145s] checking for GMIME... yes
[  145s] checking for malloc in -lhoard... no
[  145s] checking for dbinit in -lsybdb... yes
[  145s] checking sybdb.h usability... yes
[  146s] checking sybdb.h presence... yes
[  146s] checking for sybdb.h... yes
[  146s] checking for tone_zone_find_by_num in -ltonezone... yes
[  146s] checking for tone_zone_find in -ltonezone... yes
[  146s] checking dahdi/tonezone.h usability... yes
[  146s] checking dahdi/tonezone.h presence... yes
[  146s] checking for dahdi/tonezone.h... yes
[  146s] checking for vorbis_info_init in -lvorbis... yes
[  146s] checking vorbis/codec.h usability... yes
[  146s] checking vorbis/codec.h presence... yes
[  146s] checking for vorbis/codec.h... yes
[  146s] checking for OV_CALLBACKS_NOCLOSE declared in vorbis/vorbisfile.h... yes
[  146s] checking for vpb_open in -lvpb... yes
[  146s] checking for compress in -lz... yes
[  146s] checking zlib.h usability... yes
[  146s] checking zlib.h presence... yes
[  146s] checking for zlib.h... yes
[  146s] checking whether ODBC has support for Unicode types... yes
[  146s] checking linux/compiler.h usability... no
[  146s] checking linux/compiler.h presence... no
[  147s] checking for linux/compiler.h... no
[  147s] checking for linux/ixjuser.h... yes
[  147s] checking for MSG_NOSIGNAL in sys/socket.h... yes
[  147s] checking for SO_NOSIGPIPE in sys/socket.h... no
[  147s] checking for x86_64-linux-gnu-sdl-config... no
[  147s] checking for sdl-config... /usr/bin/sdl-config
[  147s] checking for IMG_Load in -lSDL_image... yes
[  147s] checking SDL_image.h usability... yes
[  147s] checking SDL_image.h presence... yes
[  147s] checking for SDL_image.h... yes
[  147s] checking for sws_getContext in -lavcodec... no
[  147s] checking linux/videodev.h usability... no
[  147s] checking linux/videodev.h presence... no
[  147s] checking for linux/videodev.h... no
[  147s] checking for XOpenDisplay in -lX11... yes
[  147s] checking X11/Xlib.h usability... yes
[  147s] checking X11/Xlib.h presence... yes
[  147s] checking for X11/Xlib.h... yes
[  147s] checking for /sbin/launchd... no
[  147s] checking for GTK2... no
[  147s] checking for SYSTEMD... no
[  147s] checking for LOG_AUTH in syslog.h... yes
[  147s] checking for LOG_AUTHPRIV in syslog.h... yes
......
[  148s] checking for LOG_NEWS in syslog.h... yes
[  148s] checking for LOG_SYSLOG in syslog.h... yes
[  148s] checking for LOG_UUCP in syslog.h... yes
[  148s] checking for mandatory modules:  GSM IMAP_TK... ok
[  148s] configure: creating ./config.status
[  148s] config.status: creating build_tools/menuselect-deps
[  148s] config.status: creating makeopts
[  148s] config.status: creating include/asterisk/autoconfig.h
[  148s] checking build system type... x86_64-unknown-linux-gnu
[  148s] checking host system type... x86_64-unknown-linux-gnu
[  148s] checking for gcc... gcc
[  148s] checking whether the C compiler works... yes
[  148s] checking for C compiler default output file name... a.out
[  148s] checking for suffix of executables... 
[  148s] checking whether we are cross compiling... no
[  148s] checking for suffix of object files... o
[  149s] checking whether we are using the GNU C compiler... yes
[  149s] checking whether gcc accepts -g... yes
[  149s] checking for gcc option to accept ISO C89... none needed
[  149s] checking for GNU make... make
[  149s] checking for compiler 'attribute weakref' support... yes
[  149s] checking how to run the C preprocessor... gcc -E
[  149s] checking for grep that handles long lines and -e... /bin/grep
[  149s] checking for egrep... /bin/grep -E
[  149s] checking for ANSI C header files... yes
........
[  151s] checking for curses.h... (cached) yes
[  151s] checking for a sed that does not truncate output... /bin/sed
[  151s] checking for xml2-config... /usr/bin/xml2-config
[  151s] checking for pkg-config... /usr/bin/pkg-config
[  151s] checking pkg-config is at least version 0.9.0... yes
[  151s] checking for GTK2... no
[  151s] configure: creating ./config.status
[  151s] config.status: creating makeopts
[  151s] config.status: creating autoconfig.h
[  151s] configure: Menuselect build configuration successfully completed
[  151s] 
[  151s]                .$$$$$$$$$$$$$$$=..      
[  151s]             .$7$7..          .7$$7:.    
[  151s]           .$$:.                 ,$7.7   
[  151s]         .$7.     7$$$$           .$$77  
[  151s]      ..$$.       $$$$$            .$$$7 
[  151s]     ..7$   .?.   $$$$$   .?.       7$$$.
[  151s]    $.$.   .$$$7. $$$$7 .7$$$.      .$$$.
[  151s]  .777.   .$$$$$$77$$$77$$$$$7.      $$$,
[  151s]  $$$~      .7$$$$$$$$$$$$$7.       .$$$.
[  151s] .$$7          .7$$$$$$$7:          ?$$$.
[  151s] $$$          ?7$$$$$$$$$$I        .$$$7 
[  151s] $$$       .7$$$$$$$$$$$$$$$$      :$$$. 
[  151s] $$$       $$$$$$7$$$$$$$$$$$$    .$$$.  
[  151s] $$$        $$$   7$$$7  .$$$    .$$$.   
[  151s] $$$$             $$$$7         .$$$.    
[  151s] 7$$$7            7$$$$        7$$$      
[  151s]  $$$$$                        $$$       
[  151s]   $$$$7.                       $$  (TM)     
[  151s]    $$$$$$$.           .7$$$$$$  $$      
[  151s]      $$$$$$$$$$$$7$$$$$$$$$.$$$$$$      
[  151s]        $$$$$$$$$$$$$$$$.                
[  151s] 
[  151s] configure: Package configured for: 
[  151s] configure: OS type  : linux-gnu
[  151s] configure: Host CPU : x86_64
[  151s] configure: build-cpu:vendor:os: x86_64 : pc : linux-gnu :
[  151s] configure: host-cpu:vendor:os: x86_64 : pc : linux-gnu :

Okay, what patches are being applied? For example Asterisk doesn’t build app_voicemail_imapstorage or currently allow building the 3 backends in separate modules. It’s possible that patch needs to be updated/changed or something.

quite strange… i compiled “multiple-app-voicemail” patch in x86 witout problem and others compiled yet,

seems debian also copiled the patch into wheeze jessie wituout problems… alpine builds seems ¿compile so i desestimate your suggestion that thew patches are the problem… about the app-voicemail" so paste here:

very ugly hack on upstream's Makefiles to allow building
 multiple variants of app_voicemail. Three variants are created:
  * app_voicemail.so: plain old filesystem storage that doesn't break
    existing setups
  * app_voicemail_imapstorage.so: IMAP storage
  * app_voicemail_odbcstorage.so: ODBC storage
 
NOTE: each shared lib are changeable due conflicts agains the other!
Author: Faidon Liambotis <paravoid@debian.org>
Bug: http://issues.asterisk.org/view.php?id=13822
Last-Update: 2016-03-19

--- a/apps/Makefile
+++ b/apps/Makefile
@@ -15,6 +15,8 @@
 MENUSELECT_CATEGORY=APPS
 MENUSELECT_DESCRIPTION=Applications
 
+MODS_C_ADDITIONAL=app_voicemail_imapstorage app_voicemail_odbcstorage
+
 MENUSELECT_OPTS_app_directory:=$(MENUSELECT_OPTS_app_voicemail)
 ifneq ($(findstring ODBC_STORAGE,$(MENUSELECT_OPTS_app_voicemail)),)
   MENUSELECT_DEPENDS_app_voicemail+=$(MENUSELECT_DEPENDS_ODBC_STORAGE)
@@ -25,6 +27,25 @@
 
 all: _all
 
+add_depends_cmd = sed -i -e '/^\/\*\*\* MODULEINFO/a\\t<depend>$(1)<\/depend>'
+app_voicemail_imapstorage.c: app_voicemail.c
+	cp $< $@
+	$(call add_depends_cmd,imap_tk) $@
+	$(call add_depends_cmd,openssl) $@
+	cp app_voicemail.exports.in app_voicemail_imapstorage.exports.in
+app_voicemail_odbcstorage.c: app_voicemail.c
+	cp $< $@
+	$(call add_depends_cmd,unixodbc) $@
+	$(call add_depends_cmd,ltdl) $@
+	cp app_voicemail.exports.in app_voicemail_odbcstorage.exports.in
+
+dist-clean::
+	rm -f app_voicemail_*.c
+	rm -f app_voicemail_*.exports.in
+
+app_voicemail_imapstorage.o: _ASTCFLAGS+=-DIMAP_STORAGE
+app_voicemail_odbcstorage.o: _ASTCFLAGS+=-DODBC_STORAGE
+
 include $(ASTTOPDIR)/Makefile.moddir_rules
 
 clean::
--- a/Makefile.moddir_rules
+++ b/Makefile.moddir_rules
@@ -37,7 +37,7 @@
 # Use MODULE_EXCLUDE to specify additional modules to exclude.
 
 ifneq ($(MODULE_PREFIX),)
-    ALL_C_MODS:=
+    ALL_C_MODS:=$(MODS_C_ADDITIONAL)
     ALL_CC_MODS:=
     ALL_C_MODS+=$(foreach p,$(MODULE_PREFIX),$(patsubst %.c,%,$(wildcard $(p)_*.c)))
     ALL_CC_MODS+=$(foreach p,$(MODULE_PREFIX),$(patsubst %.cc,%,$(wildcard $(p)_*.cc)))

Nothing stands out in the change, but Makefiles are not something I know well.

as i said! @jcolp the patch are nothig related with the problem!

anybody has a hint? i try to open a bug in bugtraker but does not allow to register to me! what a crap!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.