Problem building asterisk package > 1.6.1.8

Tzafrir Cohen tzafrir.cohen at xorcom.com
Mon Dec 7 08:02:22 UTC 2009


On Sun, Dec 06, 2009 at 09:51:41PM +0100, Marcin J. Kowalczyk wrote:
> Hi,
>
> Since Digium released Asterisk 1.6.1.8 I can't build debian package  
> (tried 1.6.2.0-rc7 and 1.6.1.11 as well).
> While compiling straight on system everything is OK, but while I try to  
> build package I get:
>
> /usr/bin/ld: chan_bridge.o: in function  
> __register_file_version:chan_bridge.c:30: error: undefined reference to  
> 'ast_register_file_version'
> /usr/bin/ld: chan_bridge.o: in function  
> __unregister_file_version:chan_bridge.c:30: error: undefined reference  
> to 'ast_unregister_file_version'
> /usr/bin/ld: chan_bridge.o: in function bridge_read:chan_bridge.c:87:  
> error: undefined reference to 'ast_null_frame'
> /usr/bin/ld: chan_bridge.o: in function bridge_write:chan_bridge.c:110:  
> error: undefined reference to 'ast_queue_frame'
> /usr/bin/ld: chan_bridge.o: in function bridge_call:chan_bridge.c:130:  
> error: undefined reference to 'ast_bridge_impart'
> /usr/bin/ld: chan_bridge.o: in function  
> bridge_queue_hangup:chan_bridge.c:150: error: undefined reference to  
> 'ast_queue_hangup'
> /usr/bin/ld: chan_bridge.o: in function  
> bridge_request:chan_bridge.c:198: error: undefined reference to  
> '_ast_calloc'
> /usr/bin/ld: chan_bridge.o: in function  
> bridge_request:chan_bridge.c:203: error: undefined reference to  
> '__ast_channel_alloc'
> /usr/bin/ld: chan_bridge.o: in function  
> bridge_request:chan_bridge.c:207: error: undefined reference to  
> '__ast_channel_alloc'
> /usr/bin/ld: chan_bridge.o: in function  
> bridge_request:chan_bridge.c:208: error: undefined reference to  
> 'ast_channel_free'
> /usr/bin/ld: chan_bridge.o: in function load_module:chan_bridge.c:232:  
> error: undefined reference to 'ast_channel_register'
> /usr/bin/ld: chan_bridge.o: in function load_module:chan_bridge.c:233:  
> error: undefined reference to 'ast_log'
> /usr/bin/ld: chan_bridge.o: in function unload_module:chan_bridge.c:242:  
> error: undefined reference to 'ast_channel_unregister'
> /usr/bin/ld: chan_bridge.o: in function __reg_module:chan_bridge.c:246:  
> error: undefined reference to 'ast_module_register'
> /usr/bin/ld: chan_bridge.o: in function  
> __unreg_module:chan_bridge.c:246: error: undefined reference to  
> 'ast_module_unregister'
>
>
> I tried to use binutils-gold_2.20-1_i386.deb as ld but no luck.

Have you also tried the original (non-gold) binutils?

>
> Any ideas what can be wrong?

What is the exact trace?

The Debian packaging has the following in debian/rules to make sure the
full build commands are printed:

# show full gcc arguments instead of [CC] and [LD]
BUILDFLAGS += NOISY_BUILD=yes

The modules you try to link here are loaded at run-time by Asterisk. The
missing symbols (functions) should all come from the main Asterisk
binary.

>
> For some reasons I can't use pre-prepaired package and I need to build  
> my own.

Can you provide them?

-- 
               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