[asterisk-bugs] [Asterisk 0012050]: [patch] Compile fails with `IPTOS_MINCOST' undeclared

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Feb 25 02:41:34 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12050 
====================================================================== 
Reported By:                asgaroth
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12050
Category:                   Channels/chan_h323
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.4.18 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-22-2008 04:49 CST
Last Modified:              02-25-2008 02:41 CST
====================================================================== 
Summary:                    [patch] Compile fails with `IPTOS_MINCOST'
undeclared
Description: 
When compiling asterisk, then compilation fails when attempting to build
chan_h323. The error is as follows:

chan_h323.c: In function `reload_config':
chan_h323.c:2863: error: `IPTOS_MINCOST' undeclared (first use in this 
function)
chan_h323.c:2863: error: (Each undeclared identifier is reported only
once
chan_h323.c:2863: error: for each function it appears in.)
gmake[1]: *** [chan_h323.o] Error 1
gmake: *** [channels] Error 2
====================================================================== 

---------------------------------------------------------------------- 
 asgaroth - 02-25-08 02:41  
---------------------------------------------------------------------- 
A very strange thing happens after I apply this patch.

The process I followed was:

[1] extract source
[2] apply patch for bugid 0012022 (localtime), 0011885 (vis) and 0012050
(h323).
[3] export env variables as defined in "steps to reproduce" above.
[4] run configure
[5] run gmake

The gmake has the following errors:

--------------------------------------------------------------------------------
Generating input for menuselect ...
awk: syntax error near line 3
awk: bailing out near line 3
gmake[1]: *** [.chan_h323.moduleinfo] Error 2
awk: syntax error near line 3
awk: bailing out near line 3
gmake[1]: *** [.chan_h323.makeopts] Error 2
--------------------------------------------------------------------------------

However the process continue's on after this, attempting to build all the
channel types (even the ones found to not be supported (chan_alsa for
example)).

I then tried to run "gmake menuselect" to see if i could manually disable
the other channels, but, the channels option is not available in the
menuselection anymore, see below:

--------------------------------------------------------------------------------
                                        
**************************************************
    Asterisk Module and Build Option Selection                            
            **************************************************
                Press 'h' for help.

          ---> 1.  Applications
               2.  Call Detail Recording
               3.  Codec Translators
               4.  Format Interpreters
               5.  Dialplan Functions
               6.  PBX Modules
               7.  Resource Modules
               8.  Voicemail Build Options
               9.  Compiler Flags
               10. Module Embedding
               11. Core Sound Packages
               12. Music On Hold File Packages
               13. Extras Sound Packages
--------------------------------------------------------------------------------

If I perform the same steps above, without applying this patch (h323),
then there are now awk errors as shown above, and the channels menu option
is in the list. If I dont export the OpenH323/PWLib environment variables,
the above build process completes successfully without chan_h323.

Could it be possible that there needs to be an update to some of the
menuselect code to accomodate for this patch? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-25-08 02:41  asgaroth       Note Added: 0082841                          
======================================================================




More information about the asterisk-bugs mailing list