[buildroot 0000557]: syslogd-1.4.1 patch

bugs at busybox.net bugs at busybox.net
Wed Nov 30 12:04:04 UTC 2005


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=557 
====================================================================== 
Reported By:                frank sabella
Assigned To:                uClibc
====================================================================== 
Project:                    buildroot
Issue ID:                   557
Category:                   Architecture Specific
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             11-23-2005 10:02 PST
Last Modified:              11-30-2005 04:04 PST
====================================================================== 
Summary:                    syslogd-1.4.1 patch
Description: 
Compiling syslogd-1.4.1 either with the buildroot environment or against
uClibc results in the build failing with the following error:

In file included from ksym_mod.c:97:
/router/apps/buildroot/build_i686/staging_dir/i686-linux-uclibc/sys-include/linux/module.h:41:
error: field `at
tr' has incomplete type
/router/apps/buildroot/build_i686/staging_dir/i686-linux-uclibc/sys-include/linux/module.h:49:
error: field `ko
bj' has incomplete type
ksym_mod.c:99: warning: `struct kernel_sym' declared inside parameter
list
ksym_mod.c:99: warning: its scope is only this definition or declaration,
which is probably not what you want
ksym_mod.c:139: error: field `module' has incomplete type
ksym_mod.c:141: error: field `module_info' has incomplete type
ksym_mod.c: In function `InitMsyms':
ksym_mod.c:210: warning: passing arg 1 of `get_kernel_syms' from
incompatible pointer type
ksym_mod.c:224: error: invalid application of `sizeof' to an incomplete
type
ksym_mod.c:232: warning: passing arg 1 of `get_kernel_syms' from
incompatible pointer type
ksym_mod.c:248: error: dereferencing pointer to incomplete type
ksym_mod.c:248: error: dereferencing pointer to incomplete type
ksym_mod.c:255: error: increment of pointer to unknown structure
ksym_mod.c:255: error: arithmetic on pointer to an incomplete type
ksym_mod.c: In function `AddModule':
ksym_mod.c:413: error: invalid application of `sizeof' to an incomplete
type
make[1]: *** [ksym_mod.o] Error 1
make[1]: Leaving directory
`/router/apps/buildroot/build_i686/sysklogd-1.4.1'
make: *** [/router/apps/buildroot/build_i686/sysklogd-1.4.1/klogd] Error
2


====================================================================== 

---------------------------------------------------------------------- 
 lord_apollyon - 11-30-05 04:04  
---------------------------------------------------------------------- 
Whoops, my apologies.  I thought my comment would be enclosed with the
patch.

I also didn't mean to subvert someone else's bug report.

To reiterate:

The first patch does not gate the replacement code for non-2.6 kernels,
which from my experience, is what breaks the sysklogd build.  My patch
uses substantially the same patch as the first, but also adds some gating
to the code in the .c file to use it only for kernels >= 2.5.0.

If the maintainers would prefer a different bug report be filed thusly,
I'm happy to oblige.  Feel free to undo what I've done here if that's the
case.

Cheers!
=Apollyon= 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-23-05 10:02  frank sabella  New Issue                                    
11-23-05 10:02  frank sabella  Status                   new => assigned     
11-23-05 10:02  frank sabella  Assigned To               => uClibc          
11-23-05 10:02  frank sabella  File Added: sysklogd-1.4.1-kernel_headers-1.patch
                   
11-30-05 04:00  lord_apollyon  File Added: sysklogd26fix.patch                  
 
11-30-05 04:04  lord_apollyon  Note Added: 0000715                          
======================================================================




More information about the uClibc-cvs mailing list