Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149074 - sys-block/nbd build fails due to nbd.h from linux-headers-2.6.17-r1
Summary: sys-block/nbd build fails due to nbd.h from linux-headers-2.6.17-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 152627 152707 (view as bug list)
Depends on: 167091
Blocks:
  Show dependency tree
 
Reported: 2006-09-25 09:29 UTC by thomas langewouters
Modified: 2007-03-02 07:46 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,35.76 KB, text/plain)
2006-09-30 13:44 UTC, Donnie Berkholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description thomas langewouters 2006-09-25 09:29:28 UTC
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18 i686)
=================================================================
                        System Settings
=================================================================
System uname: 2.6.18 i686 Genuine Intel(R) CPU            1500  @ 2.00GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 24 Sep 2006 19:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="nl_BE@euro"
LC_ALL="nl_BE@euro"
LINGUAS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 alsa apm berkdb bitmap-fonts cairo cdr cli crypt cups dlloader dri elibc_glibc fam fortran gdbm gnome gpm gtk2 hal input_devices_keyboard input_devices_mouse ipv6 isdnlog kernel_linux libg++ mono ncurses nls nptl nptlonly nsplugin oggvorbis opengl pam pcre perl ppds pppd python readline reflection samba session spell spl ssl svg tcpd truetype-fonts type1-fonts udev unicode userland_GNU video_cards_i810 video_cards_vesa xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-25 09:40:14 UTC
Please, post some errors, we won't guess.
Comment 2 thomas langewouters 2006-09-25 11:40:54 UTC
(In reply to comment #1)
> Please, post some errors, we won't guess.
> 

checking for function prototypes... yes
checking whether setvbuf arguments are reversed... no
checking whether client should be built... yes
checking where to find a working nbd.h... configure: error: Could not find an nbd.h from 2.6 or above.

Sorry, I forgot, 
tia
Comment 3 SpanKY gentoo-dev 2006-09-25 21:44:25 UTC
linux/nbd.h needs to include linux/types.h
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-30 13:44:14 UTC
Created attachment 98469 [details]
config.log

Here's a config.log. I tried adding an #include <linux/types.h> just below the include of linux/mutex.h and that did not do anything.

configure:7769: i686-pc-linux-gnu-gcc -c -O2 -march=athlon-mp -g -pipe -w -idira
fter /var/tmp/portage/nbd-2.8.6/work/nbd-2.8.6/inc-after  conftest.c >&5
In file included from conftest.c:43:
/usr/include/linux/nbd.h:81: error: expected specifier-qualifier-list before '__
u32'
/usr/include/linux/nbd.h:97: error: expected specifier-qualifier-list before '__
u32'
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-30 13:46:02 UTC
Woops, didn't notice the ifdef __KERNEL__ there ... moving the include out worked.
Comment 6 SpanKY gentoo-dev 2006-10-08 17:12:40 UTC
fixed in 2.6.18
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-10-24 01:07:12 UTC
*** Bug 152627 has been marked as a duplicate of this bug. ***
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-10-24 15:06:42 UTC
*** Bug 152707 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-10-24 16:18:42 UTC
Sorry but fixing a bug valid for a *stable* ebuild in -* linux-headers which is completely unsupported by kernel folks plain doesn't help anyone.

Reopen.
Comment 10 SpanKY gentoo-dev 2006-10-24 16:21:51 UTC
here's an idea ... unless you're part of the development team, you dont get to say what is and isnt supported

linux-headers-2.6.18 is fully supported
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-10-24 16:42:07 UTC
(In reply to comment #10)
> linux-headers-2.6.18 is fully supported

By whom? Bug 151391 Comment #3 doesn't seem to suggest that kernel folks would be willing to support it.
Comment 12 SpanKY gentoo-dev 2006-10-24 16:47:12 UTC
why dont you read the metadata.xml
Comment 13 Alan Hourihane 2006-10-25 01:15:56 UTC
Given that gentoo-sources hasn't gone stable for 2.6.18 and therefore we're stuck on linux-headers-2.6.17-r1 - is there a solution for us here ??
Comment 14 SpanKY gentoo-dev 2006-10-25 01:21:58 UTC
linux-headers has nothing to do with kernel-sources

you can easily use say linux-headers-2.6.18 with a 2.6.10 kernel ... glibc takes care of all the lower details
Comment 15 Alan Hourihane 2006-10-25 01:36:15 UTC
o.k. but i've just resynced and even though I have linux-headers-2.6.17-r1 currently installed, emerge -puD doesn't show it wants to upgrade to linux-headers-2.6.18.

what do I need to do ?
Comment 16 SpanKY gentoo-dev 2006-10-25 01:41:57 UTC
2.6.18 headers arent ready for general consumption yet ... there are known bugs in some packages that should be fixed first
Comment 17 Alan Hourihane 2006-10-25 02:15:34 UTC
o.k. but sys-block/nbd is stable, so it used to work I guess. Is there no fix for 2.6.17 headers and bump it to -r2 ??
Comment 18 SpanKY gentoo-dev 2006-10-25 02:24:47 UTC
that's why the bug is re-opened ... i have to get up the courage to muck in the older stuff :p
Comment 19 Alan Hourihane 2006-10-25 03:03:06 UTC
Right, I think that's what Jakub was trying to say earlier in the comments. 2.6.18 headers aren't ready for general consumption as you say, but you closed the bug.

So, yes, I understand why it's been reopened.

I'll await the next installment. :-)
Comment 20 SpanKY gentoo-dev 2006-12-02 15:04:53 UTC
fixed in 2.6.17-r2