[Home]

Summary:ASTERISK-21125: Asterisk 11 needs libuuid in configure script due to pjproject
Reporter:Private Name (falves11)Labels:
Date Opened:2013-02-16 06:17:19.000-0600Date Closed:2013-06-10 16:31:02
Priority:MinorRegression?
Status:Closed/CompleteComponents:Core/BuildSystem
Versions:11.2.1 Frequency of
Occurrence
Related
Issues:
causesASTERISK-22091 Can't build res_rtp_asterisk - libuuid not found after applying patches from 11.5.0
Environment:red hat 6.3Attachments:( 0) ASTERISK-21125-11.diff
Description:when downloaded from svn, the compilation fails
ar: creating ../lib/libpjlib-util-x86_64-unknown-linux-gnu.a
a - output/pjlib-util-x86_64-unknown-linux-gnu/base64.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/crc32.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/errno.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/dns.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/dns_dump.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/dns_server.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/getopt.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/hmac_md5.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/hmac_sha1.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/http_client.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/md5.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/pcap.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/resolver.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/scanner.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/sha1.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/srv_resolver.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/string.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/stun_simple.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/stun_simple_client.o
a - output/pjlib-util-x86_64-unknown-linux-gnu/xml.o
../src/pj/guid_uuid.c: In function \u2018pj_generate_unique_string\u2019:
../src/pj/guid_uuid.c:39: error: \u2018uuid_t\u2019 undeclared (first use in this function)
../src/pj/guid_uuid.c:39: error: (Each undeclared identifier is reported only once
../src/pj/guid_uuid.c:39: error: for each function it appears in.)
../src/pj/guid_uuid.c:39: error: expected \u2018;\u2019 before \u2018uuid\u2019
../src/pj/guid_uuid.c:45: warning: implicit declaration of function \u2018uuid_generate\u2019
../src/pj/guid_uuid.c:45: error: \u2018uuid\u2019 undeclared (first use in this function)
../src/pj/guid_uuid.c:46: warning: implicit declaration of function \u2018uuid_unparse\u2019
make[3]: *** [output/pjlib-x86_64-unknown-linux-gnu/guid_uuid.o] Error 1
make[2]: *** [../lib/libpj-x86_64-unknown-linux-gnu.a] Error 2
make[1]: *** [/usr/src/asterisk/res/pjproject/pjlib/lib/libpj-x86_64-unknown-linux-gnu.a] Error 2
make: *** [res] Error 2
[root@r900 asterisk]# cat /etc/issue
Red Hat Enterprise Linux Server release 6.3 (Santiago)
Comments:By: Private Name (falves11) 2013-02-16 06:18:42.763-0600

On the same machine, version 1.8 SVN compiles fine.

By: Matt Jordan (mjordan) 2013-02-16 11:05:59.021-0600

pjproject requires libuuid. Do you have that installed on your system?

By: Private Name (falves11) 2013-02-16 11:15:30.467-0600

If don't have it installed, I guess the ./configure has a bug because it did not pick it up. It failed later in "make".

By: Private Name (falves11) 2013-02-16 11:21:05.892-0600

In fact, I did not have libuuid-devel installed. The ./configure script did not warn me.I am trying again.

By: Private Name (falves11) 2013-02-16 11:37:55.220-0600

It does compile when the library libuuid-devel is installed. I guess we need to adjust the ./configure script.

By: Matt Jordan (mjordan) 2013-02-18 22:06:42.431-0600

This patch modifies the configure script so that it checks for libuuid. To test it, you'll need to re-generate the configure file for your system:
# Apply the patch
# Run {{./bootstrap.sh}} in the base directory of Asterisk
# {{./configure}}

If you can, please test to make sure that it detects {{libuuid}} on your system, and that it properly detects when {{libuuid}} is not on your system.

By: Private Name (falves11) 2013-02-18 23:19:43.689-0600

I cannot reproduce it in a new system, without the package. How can I trigger the compilation of pjproject? Please help.

By: Matt Jordan (mjordan) 2013-02-19 06:15:31.074-0600

pjproject is built whenever you build Asterisk 11. There isn't any specific triggering that needs to be done in order for it to be built when you build Asterisk 11.