[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 Feb 2 21:40:16 CST 2008


The following issue has been ASSIGNED. 
====================================================================== 
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:                     assigned
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:              
====================================================================== 
Date Submitted:             01-30-2008 19:18 CST
Last Modified:              02-02-2008 21:40 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).
====================================================================== 

---------------------------------------------------------------------- 
 svnbot - 02-02-08 21:40  
---------------------------------------------------------------------- 
Repository: zaptel
Revision: 3785

U   branches/1.4/zaptel-base.c
U   branches/1.4/zaptel.h

------------------------------------------------------------------------
r3785 | tzafrir | 2008-02-02 21:40:15 -0600 (Sat, 02 Feb 2008) | 3 lines

Fix building in 2.4 w/devfs. Closes issue
http://bugs.digium.com/view.php?id=11884 
(There's still the msleep warning).

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

http://svn.digium.com/view/zaptel?view=rev&revision=3785 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-02-08 21:40  svnbot         Note Added: 0081607                          
02-02-08 21:40  svnbot         Status                   new => assigned     
02-02-08 21:40  svnbot         Assigned To               => tzafrir         
======================================================================




More information about the asterisk-bugs mailing list