[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 19:05:56 CDT 2007


The following issue has been REOPENED. 
====================================================================== 
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:                     feedback
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:              
====================================================================== 
Date Submitted:             09-24-2007 01:47 CDT
Last Modified:              11-01-2007 19:05 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.
====================================================================== 

---------------------------------------------------------------------- 
 paravoid - 11-01-07 19:05  
---------------------------------------------------------------------- 
Well, I'm not currently able to provide a patch against trunk because of
lack of time.
But it *is* a bug and it is confirmed.
I don't understand why it should be closed without being fixed
(eventually). 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-01-07 19:05  paravoid       Status                   closed => feedback  
11-01-07 19:05  paravoid       Resolution               suspended => reopened
11-01-07 19:05  paravoid       Note Added: 0072945                          
======================================================================




More information about the asterisk-bugs mailing list