[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:56 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: 4237

_U  be/branches/C.1/
U   be/branches/C.1/Makefile
U   be/branches/C.1/kernel/xpp/.version
U   be/branches/C.1/kernel/xpp/Kbuild
U   be/branches/C.1/kernel/xpp/utils/zconf/Zaptel/Config/Defaults.pm

------------------------------------------------------------------------
r4237 | qwell | 2008-06-07 14:00:55 -0500 (Sat, 07 Jun 2008) | 38 lines

Merged revisions 4165,4167,4187,4193 via svnmerge from 
https://origsvn.digium.com/svn/zaptel/branches/1.4

........
r4165 | tzafrir | 2008-04-10 11:15:23 -0500 (Thu, 10 Apr 2008) | 5 lines

Officially bumping xpp version (xpp/.version) to 5566 .

Merged revisions 4164 via svnmerge from 
http://svn.digium.com/svn/zaptel/branches/1.2

........
r4167 | sruffell | 2008-04-10 16:01:59 -0500 (Thu, 10 Apr 2008) | 2 lines

Fixed typo in makefile which was preventing make from installing the udev
rules.

........
r4187 | tzafrir | 2008-04-21 16:27:59 -0500 (Mon, 21 Apr 2008) | 4 lines

Zaptel::Config::Default - don't die if no config file.

(Accidentally left out of the merge from 1.2)

........
r4193 | tzafrir | 2008-04-23 14:20:53 -0500 (Wed, 23 Apr 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=4237 

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




More information about the asterisk-bugs mailing list