[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
Wed Jan 30 19:25:07 CST 2008


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11884 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   11884
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-30-2008 19:18 CST
Last Modified:              01-30-2008 19:25 CST
====================================================================== 
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).
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-30-08 19:25  tzafrir        Description Updated                          
======================================================================




More information about the asterisk-bugs mailing list