[asterisk-bugs] [Zaptel 0012426]: zconfig.h:91:41: error: missing binary operator before token "(" when entering xpp/

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 14:00:04 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12426 
====================================================================== 
Reported By:                tzafrir
Assigned To:                tzafrir
====================================================================== 
Project:                    Zaptel
Issue ID:                   12426
Category:                   Astribank (xpp)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Zaptel Version:             1.4.10 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             04-11-2008 15:21 CDT
Last Modified:              06-07-2008 14:00 CDT
====================================================================== 
Summary:                    zconfig.h:91:41: error: missing binary operator
before token "(" when entering xpp/
Description: 
This error seems to be generated even when there's no real module
building:

An example build:

make -C /lib/modules/2.6.24-1-amd64/build
SUBDIRS=/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel
HOTPLUG_FIRMWARE=yes KBUILD_OBJ_M="pciradio.o tor2.o torisa.o wcfxo.o
wct1xxp.o wctdm.o wcte11xp.o wcusb.o zaptel.o ztd-eth.o ztd-loc.o ztdummy.o
ztdynamic.o zttranscode.o wct4xxp/ wctc4xxp/ wctdm24xxp/ xpp/" modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-1-amd64'
/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/zconfig.h:91:41:
error: missing binary operator before token "("
  Building modules, stage 2.
  MODPOST 17 modules

The error message always appears right after getting into the xpp
subdirectory. Here's a more verbose log snippet:

ake -f scripts/Makefile.build
obj=/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/xpp
/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/zconfig.h:91:41:
error: missing binary operator before token "("
echo '#define   XPP_VERSION     "trunk-r5566"' >
/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/xpp/xpp_version.h.tmp
if cmp -s
/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/xpp/xpp_version.h.tmp
/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/xpp/xpp_version.h
; then echo; else \
                mv
/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/xpp/xpp_version.h.tmp
/home/tzafrir/Proj/Asterisk/DigiumRW/zaptel/branches/1.4/kernel/xpp/xpp_version.h
; \
        fi

It does not fail the build thus it may be one of the test builds to check
dependencies?
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 14:00  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 4193

U   branches/1.4/kernel/xpp/Kbuild

------------------------------------------------------------------------
r4193 | tzafrir | 2008-06-07 14:00:03 -0500 (Sat, 07 Jun 2008) | 10 lines

A test for a specific #define in zconfig.h was done by invoking cpp .
Sadly the change of CFLAGS handling in kernel 2.6.24 meant that it is no
longer as easy to invoke cpp on our own. 

Impact: On kernel >= 2.6.24, xpd_bri never got built, even if the
bri_dchan patch was applied.

Fix: use a simpler grep instead. Hopefully noone passes it through other
means. This should hopfully fix issue http://bugs.digium.com/view.php?id=12426 .

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

http://svn.digium.com/view/dahdi?view=rev&revision=4193 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 14:00  svnbot         Note Added: 0088418                          
======================================================================




More information about the asterisk-bugs mailing list