[Home]

Summary:ASTERISK-13015: [patch] [Solaris] ./configure script can not use h323.h and compilation fails
Reporter:Andrey N. Oktyabrski (ano)Labels:
Date Opened:2008-11-04 15:23:33.000-0600Date Closed:2008-12-15 11:44:12.000-0600
Priority:BlockerRegression?No
Status:Closed/CompleteComponents:Channels/chan_h323
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) channel_h_opensolaris_timersub.patch
Description:checking /export/home/ano/pwlib/include/ptlib.h usability... no
checking /export/home/ano/pwlib/include/ptlib.h presence... no
checking for /export/home/ano/pwlib/include/ptlib.h... no
checking /usr/local/include/ptlib.h usability... yes
checking /usr/local/include/ptlib.h presence... yes
checking for /usr/local/include/ptlib.h... yes
checking for ptlib-config... /usr/local/bin/ptlib-config
checking if PWLib version 1.12.0 is compatible with chan_h323... yes
checking PWLib installation validity... yes
checking /usr/local/share/pwlib/../openh323/version.h usability... no
checking /usr/local/share/pwlib/../openh323/version.h presence... no
checking for /usr/local/share/pwlib/../openh323/version.h... no
checking /export/home/ano/openh323/include/h323.h usability... no
checking /export/home/ano/openh323/include/h323.h presence... no
checking for /export/home/ano/openh323/include/h323.h... no
checking /usr/local/include/openh323/h323.h usability... no
checking /usr/local/include/openh323/h323.h presence... yes
configure: WARNING: /usr/local/include/openh323/h323.h: present but cannot be compiled
configure: WARNING: /usr/local/include/openh323/h323.h:     check for missing prerequisite headers?
configure: WARNING: /usr/local/include/openh323/h323.h: see the Autoconf documentation
configure: WARNING: /usr/local/include/openh323/h323.h:     section "Present But Cannot Be Compiled"
configure: WARNING: /usr/local/include/openh323/h323.h: proceeding with the preprocessor's result
configure: WARNING: /usr/local/include/openh323/h323.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------- ##
configure: WARNING:     ## Report this to www.asterisk.org ##
configure: WARNING:     ## ------------------------------- ##
checking for /usr/local/include/openh323/h323.h... yes
checking if OpenH323 version 1.19.1 is compatible with chan_h323... yes
checking OpenH323 build option... opt
checking OpenH323 installation validity... no


****** ADDITIONAL INFORMATION ******

  [CC] pbx_ael.c -> pbx_ael.o
In file included from /export/home/ano/1/asterisk-1.4.22/include/asterisk/pbx.h:27,
                from pbx_ael.c:39:
/export/home/ano/1/asterisk-1.4.22/include/asterisk/channel.h:1295: error: syntax error before "do"

ano@buka:~/1/asterisk-1.4.22:$ uname -a
SunOS buka 5.11 snv_99 i86pc i386 i86pc Solaris

ano@buka:~/1/asterisk-1.4.22:$ gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds/sfwnv-99/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)

What more info can be usable?
Comments:By: Andrey N. Oktyabrski (ano) 2008-11-04 23:36:52.000-0600

The patch channel_h_opensolaris_timersub.patch resolves problem: asterisk compiled successfully



By: Paul Belanger (pabelanger) 2008-11-04 23:57:47.000-0600

Please attach any code to the issue, not in the comments.  You'll need to sign a waiver too, before anybody will use it.

By: Leif Madsen (lmadsen) 2008-12-15 11:08:52.000-0600

Assigning to Qwell for now to review this patch. Please reassign if necessary. Thanks!

By: Digium Subversion (svnbot) 2008-12-15 11:44:11.000-0600

Repository: asterisk
Revision: 164343

U   branches/1.4/configure
U   branches/1.4/configure.ac
U   branches/1.4/include/asterisk/autoconfig.h.in
U   branches/1.4/include/asterisk/channel.h

------------------------------------------------------------------------
r164343 | file | 2008-12-15 11:44:10 -0600 (Mon, 15 Dec 2008) | 4 lines

Use autoconf logic to determine whether the system has timersub or not. Do not blindly assume Solaris does not.
(closes issue ASTERISK-13015)
Reported by: ano

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

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