linux-kernel-header has files with size 0

Bug #134222 reported by Ilja Pavkovic
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: linux-kernel-headers

I am currently running ubuntu feisty.t The packages linux-headers-2.6.20-16 and linux-headers-2.6.20-16-generic have many zero sized files:

xxx@pcvisor:/usr/src$ find linux-headers-2.6.20-16 -type f | wc -l
8193
xxx@pcvisor:/usr/src$ find linux-headers-2.6.20-16 -type f -size 0 | wc -l
399

xxx@pcvisor:/usr/src$ find linux-headers-2.6.20-16-generic -type f | wc -l
2817
xxx@pcvisor:/usr/src$ find linux-headers-2.6.20-16-generic -type f -size 0 | wc -l
2648

A small example:

xxx@pcvisor:/usr/src$ find linux-headers-2.6.20-16 -type f -size 0| xargs ls -l | grep 1394
-rw-r--r-- 1 root root 0 2007-06-07 19:47 linux-headers-2.6.20-16/include/config/ieee1394.h
-rw-r--r-- 1 root root 0 2007-06-07 19:47 linux-headers-2.6.20-16/include/config/ieee1394/ohci1394.h
-rw-r--r-- 1 root root 0 2007-06-07 19:47 linux-headers-2.6.20-16/include/config/ieee1394/rawio.h

the same executed on a vanilla 2.6.20 kernel from kernel.org:

xxx@pcvisor:/usr/src$ find linux-2.6.20 -type f -size 0 | wc -l
1

Is there any good reason for zero sizes header files?

Revision history for this message
Toby Haynes (thaynes) wrote :

Also seen in Ubuntu 8.04 (Hardy):

$ uname -a
Linux nexus 2.6.24-19-generic #1 SMP Wed Jun 4 15:10:52 UTC 2008 x86_64 GNU/Linux
$ find linux-headers-2.6.24-19-generic/ -type f | wc -l
2612
$ find linux-headers-2.6.24-19-generic/ -type f -size 0 | wc -l
2555

$ find linux-headers-2.6.24-19 -type f | wc -l
8264
$ find linux-headers-2.6.24-19 -type f -size 0 | wc -l
0

What's odder still is that files which are listed in the -generic kernel headers don't exist in the other tree. For instance

$ find /usr/src -iname iforce.h
/usr/src/linux-headers-2.6.24-17-generic/include/config/joystick/iforce.h
/usr/src/linux-headers-2.6.24-19-generic/include/config/joystick/iforce.h
$ ls
linux linux-headers-2.6.24-19
linux-headers-2.6.24-17 linux-headers-2.6.24-19-generic
linux-headers-2.6.24-17-generic rpm

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta or later?

Changed in linux-kernel-headers:
status: New → Incomplete
Revision history for this message
Philip Muškovac (yofel) wrote :

Hi, you reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.

Revision history for this message
Ilja Pavkovic (ipavkovic) wrote :

Hi,

I am currently running Ubuntu 9.04. I still see zero files:

ipavkovic@lapip:/usr/src/linux-headers-2.6.28-14-generic$ find . -type f -size 0 | wc -l
3443

They are all in the subdir include/config

Philip Muškovac (yofel)
Changed in linux-kernel-headers (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
jan (jan-ubuntu-h-i-s) wrote :

Not only are some files of zero length, also files are missing.
This results e.g in v4l not building on debian/ ubuntu systems, due to failure to compile the firedtv driver.
http://www.linuxtv.org/wiki/index.php/How_to_install_DVB_device_drivers
Several bugs in launchpad describe workarounds to disable this driver manually.
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/622397
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/439163/comments/57
https://bugs.launchpad.net/ubuntu/+source/me-tv/+bug/478379
https://bugs.launchpad.net/me-tv/+bug/478439/+viewstatus
https://bugs.launchpad.net/ubuntu/+source/lirc/+bug/454371
https://bugs.launchpad.net/bugs/459523

Specifically:
/usr/src/linux-headers-2.6.28-19-generic/include/config/ieee1394
contains:
-rw-r--r-- 1 root root 0 2010-09-16 18:25 dv1394.h
drwxr-xr-x 3 root root 4096 2010-06-15 20:12 eth1394
-rw-r--r-- 1 root root 0 2010-09-16 18:25 eth1394.h
-rw-r--r-- 1 root root 0 2010-09-16 18:25 ohci1394.h
-rw-r--r-- 1 root root 0 2010-09-16 18:25 pcilynx.h
-rw-r--r-- 1 root root 0 2010-09-16 18:25 rawio.h
-rw-r--r-- 1 root root 0 2010-09-16 18:25 sbp2.h
-rw-r--r-- 1 root root 0 2010-09-16 18:25 video1394.h
and similar results in other versions.

In this directory, at least the following files should be present:
/lib/modules/2.6.35+/source/drivers/ieee1394/dma.h
/lib/modules/2.6.35+/source/drivers/ieee1394/csr1212.h
/lib/modules/2.6.35+/source/drivers/ieee1394/highlevel.h

Revision history for this message
Stefan Richter (stefan-r-ubz) wrote :

WTH does anybody attempt to put drivers/ieee1394/* files into a linux-headers package?

These files are not exported headers.

Revision history for this message
Mei (ddouthitt) wrote :

Almost four years later, this bug is STILL unresolved. On Ubuntu 10.04.2 LTS:

/usr/src/linux-headers-2.6.32-28-generic-pae# find . -type f -size 0 | wc -l
3979
/usr/src/linux-headers-2.6.32-28-generic-pae# find include/config -type f -size 0 | wc -l
3979

Could some one resolve this?

affects: linux-kernel-headers (Ubuntu) → linux (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Sinisa Radalj (sinisa1hr) wrote :

***WARNING:*** File /lib/modules/3.0.0-14-generic/build/include/config/ieee1394/dma.h not present.
This problem is at least present on Ubuntu systems:
https://bugs.launchpad.net/ubuntu/+source/linux-kernel-headers/+bug/134222

Therefore disabling FIREDTV driver.
..........................................................................................................................................................................................
that is output from my terminal running ubuntu 11.10 with kernel 3.0.0-14.....after commanf make in proced to build kernel module...look like still same situation

Revision history for this message
Sinisa Radalj (sinisa1hr) wrote :

................................................................................................................................................................................................
***WARNING:*** File /lib/modules/3.0.0-14-generic/build/include/config/ieee1394/dma.h not present.
This problem is at least present on Ubuntu systems:
https://bugs.launchpad.net/ubuntu/+source/linux-kernel-headers/+bug/134222

Therefore disabling FIREDTV driver.
..............................................................................................................................................................................................

that is interesting part of output from my terminal running ubuntu 11.10 with kernel 3.0.0-14.....after command make in process to build kernel module(driver)...look like still same situation

Revision history for this message
Sinisa Radalj (sinisa1hr) wrote :

but wiki of linux tv says:
 The reason for this is because Ubuntu had a bug in their packaging of the kernel headers. This seems to be fixed on a fully updated systtem (5 July 2011) This was a long standing issue, and one of the most frequently reported on the mailing list.

my system is fully updated. Now is Dec 2011. ...and here i get status is..wont fix...

Revision history for this message
jan (jan-ubuntu-h-i-s) wrote :

Please file a new bug, and attach the output of
 ls -l /lib/modules/3.0.0-14-generic/build/include/config/ieee1394

This was requested in
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/134222/comments/8

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.