[asterisk-bugs] [Zaptel 0011884]: Build fails on Debian 3.1/2.4.27-3-686: static struct member

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jun 7 13:50:31 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11884 
====================================================================== 
Reported By:                tzafrir
Assigned To:                tzafrir
====================================================================== 
Project:                    Zaptel
Issue ID:                   11884
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 3759 
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             01-30-2008 19:18 CST
Last Modified:              06-07-2008 13:50 CDT
====================================================================== 
Summary:                    Build fails on Debian 3.1/2.4.27-3-686: static
struct member
Description: 
On a Debian Sarge system with the package kernel-headers-3-686 installed,
current branches/1.4 SVN, I run:

  make KVERS=2.4.27-3-686

I get the error:

In file included from pciradio.c:57:
zaptel.h: At top level:
zaptel.h:1206: error: syntax error before "static"
zaptel.h:1206: warning: no semicolon at end of struct or union
make[1]: *** [pciradio.o] Error 1


This seems to be cause by the word "static" in the following lines:

struct zt_chardev {
        const char *name;
        __u8 minor;
#ifdef CONFIG_DEVFS_FS
        static devfs_handle_t devfs_handle;
#endif
};

Removing the word "static" makes things build again.

Then I get to:

zaptel-base.c: In function `zt_register_chardev':
zaptel-base.c:7339: error: `mode' undeclared (first use in this function)
zaptel-base.c:7339: error: (Each undeclared identifier is reported only
once
zaptel-base.c:7339: error: for each function it appears in.)
make[2]: *** [zaptel-base.o] Error 1


This code was added in r3635 (rework of transcode device file generation).
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 06-07-08 13:50  
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 3769

U   team/tzafrir/move/Makefile
A   team/tzafrir/move/kernel/GNUmakefile
A   team/tzafrir/move/kernel/sec-2.h
U   team/tzafrir/move/kernel/wct4xxp/Makefile
D   team/tzafrir/move/sec-2.h

------------------------------------------------------------------------
r3769 | tzafrir | 2008-06-07 13:50:29 -0500 (Sat, 07 Jun 2008) | 7 lines

Make 2.4 build: cut part of the main makefile into kernel/GNUmakefile .
GNUmakefile has precedense over 'Makefile' (that we must still keep use 
if we are to maintain compatibility iwth kernel 2.6.9).

This still won't build 2.4 - see http://bugs.digium.com/view.php?id=11884 for a
quick patch to make it
build.

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

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-07-08 13:50  svnbot         Checkin                                      
06-07-08 13:50  svnbot         Note Added: 0088376                          
======================================================================




More information about the asterisk-bugs mailing list