[asterisk-bugs] [Asterisk 0010813]: Should be able to dynamically link against libc-client for IMAP storage

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Nov 1 21:59:33 CDT 2007


The following issue has been CLOSED 
====================================================================== 
http://bugs.digium.com/view.php?id=10813 
====================================================================== 
Reported By:                paravoid
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   10813
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 suspended
Fixed in Version:           
====================================================================== 
Date Submitted:             09-24-2007 01:47 CDT
Last Modified:              11-01-2007 21:59 CDT
====================================================================== 
Summary:                    Should be able to dynamically link against
libc-client for IMAP storage
Description: 
Currently, "configure" allows you only to link against libc-client (for
IMAP storage) statically.

On Debian, we have the libc-client2006j2 package which only provides a
shared object for us to link against.
That's the correct behavior for the obvious benefits that dynamic linking
has.

Attached is a simple patch that we have in our tree for "configure.ac"
(it's for "configure" too, so that we don't have to run autoconf and
diverge too much from upstream sources) that switches to -lc-client.

The linker will dynamically link if a .so is found or will switch to
static linking if only .a is found.
I can see no reason why your scripts were looking c-client.a under
${IMAP_TK_DIR}/c-client/ but if there's a good reason, you should probably
add -L${IMAP_TK_DIR}/c-client to the link options to keep old behavior.
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 11-01-07 21:59  
---------------------------------------------------------------------- 
Well, it's not a bug, specifically (have a crash?), but it is interesting,
but there hasn't been an update in over a month, so it's being suspended.

As I said before, reopen WHEN you have a patch for trunk, not reopen
because you think it needs it needs to be open for you to think about ever
providing an updated patch (especially since that didn't work over the past
month). 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-01-07 21:59  Corydon76      Note Added: 0072948                          
11-01-07 21:59  Corydon76      Status                   feedback => closed  
11-01-07 21:59  Corydon76      Resolution               reopened => suspended
======================================================================




More information about the asterisk-bugs mailing list