sa_family_t definition expected to be in linux/socket.h but in sys/socket.h

Bug #291307 reported by Pedro Francisco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-ports (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: linux-libc-dev

In file linux/netlink.h:
--snip--
#include <linux/socket.h> /* for sa_family_t */
--snip--

However the definition of sa_family_t is in file sys/socket.h (actually it is in bits/sockaddr.h but that file is included when including sys/socket.h)

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ LC_ALL=C apt-cache policy linux-libc-dev
linux-libc-dev:
  Installed: 2.6.27-7.14
  Candidate: 2.6.27-7.14
  Version table:
 *** 2.6.27-7.14 0
        500 http://ubuntu.dcc.fc.up.pt intrepid/main Packages
        100 /var/lib/dpkg/status

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Pedro,

I think I'm missing something here. I don't know where you're seeing a sys/socket.h file and additionally I don't even see a sockaddr.h file existing in the Intrepid kernel.

ogasawara@yoji:~/ubuntu-intrepid$ find -name "sockaddr.h"
ogasawara@yoji:~/ubuntu-intrepid$

Additionally when I examine linux/socket.h in the Intrepid kernel I see on line 32:

typedef unsigned short sa_family_t;

http://kernel.ubuntu.com/git?p=ubuntu/ubuntu-intrepid.git;a=blob;f=include/linux/socket.h;h=dc5086fe7736c10f40bfbab0996b7d589ccf5bbe;hb=HEAD

Did you mean to assign this to the kernel package? I'm guessing it should be against something else like glibc?

Changed in linux:
status: New → Incomplete
Revision history for this message
Pedro Francisco (pedrogfrancisco) wrote :

My mistake, look at "Binary package hint: linux-libc-dev": that's the right package; I must have selected linux package by mistake.

All files mentioned in the report are in /usr/include:
$ apt-file search /usr/include/linux/netlink.h
linux-libc-dev: /usr/include/linux/netlink.h

How do I find out to which package (in the bug tracker) does it belong?

Changed in linux:
status: Incomplete → New
Revision history for this message
Matthias Klose (doko) wrote :

Leann, what is wrong with libc6-dev?

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.