Bug#489086: asterisk: FTBFS: func_curl.c:186: undefined reference to `ast_custom_function_unregister'

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Jul 3 11:43:52 UTC 2008


On Thu, Jul 03, 2008 at 09:59:17AM +0200, Lucas Nussbaum wrote:
> Package: asterisk
> Version: 1:1.4.20~dfsg-1
> Severity: serious
> User: debian-qa at lists.debian.org
> Usertags: qa-ftbfs-20080702 qa-ftbfs
> Justification: FTBFS on i386
> 
> Hi,
> 
> During a rebuild of all packages in sid, your package failed to build on
> i386.
> 
> Relevant part:
> > i486-linux-gnu-gcc  -o func_curl.so -pthread  -shared -Xlinker -x func_curl.o  -lcurl -Wl,-z,defs
> > func_curl.o: In function `unload_module':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:186: undefined reference to `ast_custom_function_unregister'
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:188: undefined reference to `__ast_module_user_hangup_all'
> > func_curl.o: In function `load_module':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:204: undefined reference to `ast_custom_function_register'
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:200: undefined reference to `ast_log'
> > func_curl.o: In function `acf_curl_exec':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:144: undefined reference to `__ast_module_user_add'
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:146: undefined reference to `ast_app_separate_args'
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:149: undefined reference to `ast_autoservice_start'
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:165: undefined reference to `ast_autoservice_stop'
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:167: undefined reference to `__ast_module_user_remove'
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:140: undefined reference to `ast_log'
> > func_curl.o: In function `_ast_calloc':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/include/asterisk/utils.h:359: undefined reference to `ast_log'
> > func_curl.o: In function `acf_curl_exec':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:161: undefined reference to `ast_log'
> > func_curl.o: In function `_ast_malloc':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/include/asterisk/utils.h:336: undefined reference to `ast_log'
> > func_curl.o: In function `__unreg_module':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:209: undefined reference to `ast_module_unregister'
> > func_curl.o: In function `__reg_module':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:209: undefined reference to `ast_module_register'
> > func_curl.o: In function `__unregister_file_version':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:37: undefined reference to `ast_unregister_file_version'
> > func_curl.o: In function `__register_file_version':
> > /build/user-asterisk_1.4.20~dfsg-1-amd64-2LM2eq/asterisk-1.4.20~dfsg-1/funcs/func_curl.c:37: undefined reference to `ast_register_file_version'
> > collect2: ld returned 1 exit status

func_curl.so is a module that is dynamically-loaded by asterisk . All of
the missing exports above are provided by the asterisk binary .

I am still unable to reproduce this. Mark Purcell had this problem a few
days ago but he cannot reproduce it now either.

> 
> The full build log is available from:
>    http://people.debian.org/~lucas/logs/2008/07/02
> 
> A list of current common problems and possible solutions is available at 
> http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
> 
> About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
> of the Grid'5000 platform, using a clean chroot containing a sid i386
> environment.  Internet was not accessible from the build systems.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir





More information about the Pkg-voip-maintainers mailing list