[asterisk-bugs] [Asterisk 0017314]: [patch] ./configure --with-pri=LIBPATH does not use libpri from LIBPRI_PATH

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Aug 12 16:45:01 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17314 
====================================================================== 
Reported By:                tzafrir
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   17314
Category:                   Core/BuildSystem
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Target Version:             1.4.36
Asterisk Version:           SVN 
JIRA:                       SWP-1442 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 268534 
Request Review:              
====================================================================== 
Date Submitted:             2010-05-10 12:58 CDT
Last Modified:              2010-08-12 16:45 CDT
====================================================================== 
Summary:                    [patch] ./configure --with-pri=LIBPATH does not use
libpri from LIBPRI_PATH
Description: 
I have svn branch 1.4 under /usr/src/svn/libpri
I added the required symlinks there so it could be used as if installed.

I try:

  ./configure --with-libpri=/usr/src/svn/libpri

In config.log I see:
configure:33176: checking for pri_connected_line_update in -lpri
configure:33211: gcc -o conftest -g -O2   conftest.c -lpri   -lm  >&5
/usr/bin/ld: cannot find -lpri
collect2: ld returned 1 exit status

Work around:

CFLAGS=-I/usr/src/svn/libpri LDFLAGS=-L/usr/src/svn/libpri ./configure

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017315 pri_cc_enable not in current libpri
====================================================================== 

---------------------------------------------------------------------- 
 (0125927) qwell (administrator) - 2010-08-12 16:45
 https://issues.asterisk.org/view.php?id=17314#c125927 
---------------------------------------------------------------------- 
I think this is all that would be required to make that work.  It sets
PRI_FOO_DIR to $PRI_DIR by default (there may be a second level of
indirection needed..not sure).

You'll have to run ./bootstrap.sh after applying the patch. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-12 16:45 qwell          Note Added: 0125927                          
======================================================================




More information about the asterisk-bugs mailing list