Summary: | ASTERISK-25329: Asterisk configure fails on 'cannot find ptlib-config', despite ptlib-config existing | ||||
Reporter: | Rusty Newton (rnewton) | Labels: | patch | ||
Date Opened: | 2015-08-18 14:02:22 | Date Closed: | 2018-01-09 05:39:26.000-0600 | ||
Priority: | Major | Regression? | Yes | ||
Status: | Closed/Complete | Components: | Core/BuildSystem | ||
Versions: | 13.5.0 13.7.0 | Frequency of Occurrence | |||
Related Issues: |
| ||||
Environment: | Debian 7.8, 32bit | Attachments: | ( 0) ptlib-config.patch | ||
Description: | When configuring Asterisk 13.5.0 I get
{noformat} checking for /usr/include/ptlib.h... yes checking for ptlib-config... no ./configure: line 27669: --ldflags: command not found Cannot find ptlib-config - please install and try again {noformat} apt-file search shows "libpt-dev: /usr/share/ptlib/make/ptlib-config" and apt-get shows "libpt-dev is already the newest version." configure doesn't seem to find it ptlib-config.. {noformat} root@debian1:/# find . -name "*ptlib*" ./usr/include/ptlib.h ./usr/include/openh323/ptlib_extras.h ./usr/include/ptlib ./usr/include/ptlib/unix/ptlib ./usr/include/ptlib/unix/ptlib/ptlib.inl ./usr/lib/pkgconfig/ptlib.pc ./usr/lib/ptlib-2.10.4 ./usr/share/ptlib ./usr/share/ptlib/make/ptlib-config ./usr/share/ptlib/make/ptlib.mak {noformat} workaround is to specify the location manually: {noformat} export PTLIB_CONFIG=/usr/share/ptlib/make/ptlib-config {noformat} Ran configure again and it was fine. | ||||
Comments: | By: Jonathan R. Rose (JonathanRose) 2016-05-10 11:08:31.304-0500 I'm also hitting this bug in 11.22... though I'm installing Asterisk on a docker container, so that might be confounding things a bit. By: Alexander Traud (traud) 2018-01-05 03:49:53.701-0600 Another workaround is to go for: {{sudo apt remove libpt-dev}} This issue happens in Ubuntu as well, since the year 2014 (or even longer). I attached a patch, although the issue is within the package itself. That tool should not be that hidden but work directly. Hopefully someone watching this issue here raises a bug report at Debian as well. By: Friendly Automation (friendly-automation) 2018-01-09 05:39:28.181-0600 Change 7811 merged by Jenkins2: BuildSystem: Find ptlib-config on Debian/Ubuntu. [https://gerrit.asterisk.org/7811|https://gerrit.asterisk.org/7811] By: Friendly Automation (friendly-automation) 2018-01-09 05:39:53.295-0600 Change 7812 merged by Jenkins2: BuildSystem: Find ptlib-config on Debian/Ubuntu. [https://gerrit.asterisk.org/7812|https://gerrit.asterisk.org/7812] By: Friendly Automation (friendly-automation) 2018-01-09 05:42:36.239-0600 Change 7809 merged by Joshua Colp: BuildSystem: Find ptlib-config on Debian/Ubuntu. [https://gerrit.asterisk.org/7809|https://gerrit.asterisk.org/7809] |