[Home]

Summary:ASTERISK-16075: [patch] ./configure --with-pri=LIBPATH does not use libpri from LIBPRI_PATH
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2010-05-10 12:58:14Date Closed:2010-10-07 15:59:38
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 0001-Allow-forcing-CFLAGS-and-LDFLAGS-for-configure.patch
( 1) 17314-withdeps.diff
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
Comments:By: Tzafrir Cohen (tzafrir) 2010-05-12 09:16:26

Specifically:

# This one works well:
AST_EXT_LIB_CHECK([PRI], [pri], [pri_connected_line_update], [libpri.h])

# This one fails to use PRI_INCLUDE and PRI_LIBS as set by the previous test.
AST_EXT_LIB_CHECK([PRI_CCSS], [pri], [pri_cc_enable], [libpri.h])

By: Tzafrir Cohen (tzafrir) 2010-05-12 12:22:29

A patch to live_ast to automate the workaround. Not a fix for the issue.

By: Tzafrir Cohen (tzafrir) 2010-06-06 13:59:46

Updated patch. Building trunk with libpri 1.4.11.1 fails, but works with libpri of SVN 1.4 (rev 1807).

With 1.4.11.1 it fails finding:
* PRI_MCID
* PRI_CALL_WAITING
* PRI_AOC_EVENTS
* PRI_TRANSFER
* PRI_CCSS

It does find libpri.

By: Jason Parker (jparker) 2010-08-12 16:45:01

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.

By: Digium Subversion (svnbot) 2010-10-07 15:56:05

Repository: asterisk
Revision: 290750

U   branches/1.4/autoconf/ast_ext_lib.m4
U   branches/1.4/configure
U   branches/1.4/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r290750 | qwell | 2010-10-07 15:56:05 -0500 (Thu, 07 Oct 2010) | 9 lines

Allow PRI to build properly when using --with-pri.

Use the directories found for the parent when using lib dependencies.

(closes issue ASTERISK-16075)
Reported by: tzafrir
Patches:
     17314-withdeps.diff uploaded by qwell (license 4)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=290750

By: Digium Subversion (svnbot) 2010-10-07 15:57:15

Repository: asterisk
Revision: 290751

_U  branches/1.6.2/
U   branches/1.6.2/autoconf/ast_ext_lib.m4
U   branches/1.6.2/configure
U   branches/1.6.2/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r290751 | qwell | 2010-10-07 15:57:15 -0500 (Thu, 07 Oct 2010) | 16 lines

Merged revisions 290750 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
 r290750 | qwell | 2010-10-07 15:56:04 -0500 (Thu, 07 Oct 2010) | 9 lines
 
 Allow PRI to build properly when using --with-pri.
 
 Use the directories found for the parent when using lib dependencies.
 
 (closes issue ASTERISK-16075)
 Reported by: tzafrir
 Patches:
       17314-withdeps.diff uploaded by qwell (license 4)
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=290751

By: Digium Subversion (svnbot) 2010-10-07 15:58:48

Repository: asterisk
Revision: 290752

_U  branches/1.8/
U   branches/1.8/autoconf/ast_ext_lib.m4
U   branches/1.8/configure
U   branches/1.8/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r290752 | qwell | 2010-10-07 15:58:48 -0500 (Thu, 07 Oct 2010) | 23 lines

Merged revisions 290751 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.6.2

................
 r290751 | qwell | 2010-10-07 15:57:14 -0500 (Thu, 07 Oct 2010) | 16 lines
 
 Merged revisions 290750 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.4
 
 ........
   r290750 | qwell | 2010-10-07 15:56:04 -0500 (Thu, 07 Oct 2010) | 9 lines
   
   Allow PRI to build properly when using --with-pri.
   
   Use the directories found for the parent when using lib dependencies.
   
   (closes issue ASTERISK-16075)
   Reported by: tzafrir
   Patches:
         17314-withdeps.diff uploaded by qwell (license 4)
 ........
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=290752

By: Digium Subversion (svnbot) 2010-10-07 15:59:38

Repository: asterisk
Revision: 290753

_U  trunk/
U   trunk/autoconf/ast_ext_lib.m4
U   trunk/configure
U   trunk/include/asterisk/autoconfig.h.in

------------------------------------------------------------------------
r290753 | qwell | 2010-10-07 15:59:38 -0500 (Thu, 07 Oct 2010) | 30 lines

Merged revisions 290752 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
 r290752 | qwell | 2010-10-07 15:58:47 -0500 (Thu, 07 Oct 2010) | 23 lines
 
 Merged revisions 290751 via svnmerge from
 https://origsvn.digium.com/svn/asterisk/branches/1.6.2
 
 ................
   r290751 | qwell | 2010-10-07 15:57:14 -0500 (Thu, 07 Oct 2010) | 16 lines
   
   Merged revisions 290750 via svnmerge from
   https://origsvn.digium.com/svn/asterisk/branches/1.4
   
   ........
     r290750 | qwell | 2010-10-07 15:56:04 -0500 (Thu, 07 Oct 2010) | 9 lines
     
     Allow PRI to build properly when using --with-pri.
     
     Use the directories found for the parent when using lib dependencies.
     
     (closes issue ASTERISK-16075)
     Reported by: tzafrir
     Patches:
           17314-withdeps.diff uploaded by qwell (license 4)
   ........
 ................
................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=290753