Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@enix.org>
To: uclibc@uclibc.org
Cc: linux-mips@linux-mips.org
Subject: [buildroot] Compilation failure on MIPS with 2.6.9.1 kernel headers
Date: Tue, 26 Oct 2004 11:22:15 +0200	[thread overview]
Message-ID: <417E1747.9020603@enix.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2021 bytes --]

Hello,

The compilation fails on MIPS with the new 2.6.9.1 kernel headers :

================================================================
In file included from ../../../include/bits/socket.h:305,
                  from ../../../include/netinet/in.h:212,
                  from ../../../include/netdb.h:28,
                  from __h_errno_location.c:3:
../../../include/asm/socket.h:86: error: conflicting types for 'SOCK_DGRAM'
../../../include/bits/socket.h:43: error: previous definition of 
'SOCK_DGRAM' was here
../../../include/asm/socket.h:87: error: conflicting types for 'SOCK_STREAM'
../../../include/bits/socket.h:46: error: previous definition of 
'SOCK_STREAM' was here
../../../include/asm/socket.h:88: error: conflicting types for 'SOCK_RAW'
../../../include/bits/socket.h:49: error: previous definition of 
'SOCK_RAW' was here
../../../include/asm/socket.h:89: error: conflicting types for 'SOCK_RDM'
../../../include/bits/socket.h:51: error: previous definition of 
'SOCK_RDM' was here
../../../include/asm/socket.h:90: error: conflicting types for 
'SOCK_SEQPACKET'
../../../include/bits/socket.h:53: error: previous definition of 
'SOCK_SEQPACKET' was here
../../../include/asm/socket.h:91: error: conflicting types for 'SOCK_PACKET'
../../../include/bits/socket.h:60: error: previous definition of 
'SOCK_PACKET' was here
================================================================

I think this issue has been discussed (and fixed) in the Linux MIPS CVS, 
see :
  http://www.linux-mips.org/archives/linux-mips/2004-10/msg00286.html
  http://www.linux-mips.org/archives/linux-cvs/2004-10/msg00120.html

As I understand it, #ifdef __KERNEL__ conditionnal is missing, leading 
to SOCK_* being visible to the userspace, and conflicting with libc 
definitions.

Thomas
-- 
PETAZZONI Thomas - thomas.petazzoni@enix.org
http://thomas.enix.org - Jabber: kos_tom@sourcecode.de
KOS: http://kos.enix.org/ - Lolut: http://lolut.utbm.info
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

             reply	other threads:[~2004-10-26  9:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-26  9:22 Thomas Petazzoni [this message]
2004-10-27  3:41 ` [buildroot] Compilation failure on MIPS with 2.6.9.1 kernel headers Ralf Baechle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=417E1747.9020603@enix.org \
    --to=thomas.petazzoni@enix.org \
    --cc=linux-mips@linux-mips.org \
    --cc=uclibc@uclibc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox