>>> Source unpacked. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking whether Large File Support should be enabled... yes checking whether syslog logging is requested... yes checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether warnings should be enabled... yes checking whether byte ordering is bigendian... no checking for inline... inline checking for an ANSI C-conforming const... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for unsigned short int... yes checking size of unsigned short int... 2 checking for unsigned int... yes checking size of unsigned int... 4 checking for unsigned long int... yes checking size of unsigned long int... 4 checking for unsigned long long int... yes checking size of unsigned long long int... 8 checking for llseek... yes checking for alarm... yes checking for gethostbyname... yes checking for inet_ntoa... yes checking for memset... yes checking for socket... yes checking for strerror... yes checking for strstr... yes checking for pid_t... yes checking for unistd.h... (cached) yes checking vfork.h usability... no checking vfork.h presence... no checking for vfork.h... no checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for function prototypes... yes checking whether setvbuf arguments are reversed... no checking whether client should be built... yes checking whether there is a local nbd.h... no checking for linux/nbd.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking netdb.h usability... yes checking netdb.h presence... yes checking for netdb.h... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking sys/mount.h usability... yes checking sys/mount.h presence... yes checking for sys/mount.h... yes checking sys/socket.h usability... yes checking sys/socket.h presence... yes checking for sys/socket.h... yes checking syslog.h usability... yes checking syslog.h presence... yes checking for syslog.h... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for off_t... yes checking for pid_t... (cached) yes configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands make all-am make[1]: Entering directory `/var/tmp/portage/nbd-2.7.1/work/nbd-2.7.1' if gcc -DHAVE_CONFIG_H -I. -I. -I. -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -MT nbd-server.o -MD -MP -MF ".deps/nbd-server.Tpo" \ -c -o nbd-server.o `test -f 'nbd-server.c' || echo './'`nbd-server.c; \ then mv -f ".deps/nbd-server.Tpo" ".deps/nbd-server.Po"; \ else rm -f ".deps/nbd-server.Tpo"; exit 1; \ fi if gcc -DHAVE_CONFIG_H -I. -I. -I. -O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe -MT nbd-client.o -MD -MP -MF ".deps/nbd-client.Tpo" \ -c -o nbd-client.o `test -f 'nbd-client.c' || echo './'`nbd-client.c; \ then mv -f ".deps/nbd-client.Tpo" ".deps/nbd-client.Po"; \ else rm -f ".deps/nbd-client.Tpo"; exit 1; \ fi nbd-server.c: In function `mainloop': nbd-server.c:674: error: `NBD_CMD_DISC' undeclared (first use in this function) nbd-server.c:674: error: (Each undeclared identifier is reported only once nbd-server.c:674: error: for each function it appears in.) make[1]: *** [nbd-server.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/nbd-2.7.1/work/nbd-2.7.1' make: *** [all] Error 2 !!! ERROR: sys-apps/nbd-2.7.1 failed. !!! Function src_compile, Line 29, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
ooppppsss forgot emerge --info Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r6) ================================================================= System uname: 2.6.7-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz Gentoo Base System version 1.5.1 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://10.131.251.46/mirrors/gentoo/source/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://www1.nfdb.co.za/gentoo-portage" USE="X aalib alsa apm arts avi berkdb cdr crypt cups directfb encode esd fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"
update your kernel headers
This machine is fully updated. emerge -Du world
NBD_CMD_DISC is only in linux-2.6 headers
How do I stop this ? emerge -Dup world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild UD] sys-kernel/linux-headers-2.4.22 [2.6.7-r1] [ebuild U ] sys-apps/nbd-2.7.1 [2.6.0] uname -a Linux insync-tm 2.6.7-gentoo-r6 #1 Sat Jun 26 07:58:55 SAST 2004 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GenuineIntel GNU/Linux
added a hack to work around this in portage