helllo list,
i am bootsraping hardened/uclibc, but failed on compiling on uclibc.
how do i correct these errors?
gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os
-fno-stack-protector-all -fstack-protector -fno-builtin -nostdinc
-D_LIBC -I../../../../include -I.
-I/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/include -DNDEBUG -fPIC
-c ssp.c -o ssp.o
In file included from ../../../../include/bits/socket.h:305,
from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/asm/socket.h:53:1: warning: "SOCK_STREAM" redefined
In file included from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/bits/socket.h:45:1: warning: this is the location
of the previous definition
In file included from ../../../../include/bits/socket.h:305,
from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/asm/socket.h:54:1: warning: "SOCK_DGRAM" redefined
In file included from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/bits/socket.h:48:1: warning: this is the location
of the previous definition
In file included from ../../../../include/bits/socket.h:305,
from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/asm/socket.h:55:1: warning: "SOCK_RAW" redefined
In file included from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/bits/socket.h:50:1: warning: this is the location
of the previous definition
In file included from ../../../../include/bits/socket.h:305,
from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/asm/socket.h:56:1: warning: "SOCK_RDM" redefined
In file included from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/bits/socket.h:52:1: warning: this is the location
of the previous definition
In file included from ../../../../include/bits/socket.h:305,
from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/asm/socket.h:57:1: warning: "SOCK_SEQPACKET" redefined
In file included from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/bits/socket.h:55:1: warning: this is the location
of the previous definition
In file included from ../../../../include/bits/socket.h:305,
from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/asm/socket.h:58:1: warning: "SOCK_PACKET" redefined
In file included from ../../../../include/sys/socket.h:35,
from ssp.c:29:
../../../../include/bits/socket.h:59:1: warning: this is the location
of the previous definition
In file included from ../../../../include/linux/list.h:5,
from ../../../../include/linux/sysctl.h:23,
from ../../../../include/sys/sysctl.h:28,
from ssp.c:33:
../../../../include/linux/prefetch.h: In function `prefetch_range':
../../../../include/linux/prefetch.h:63: warning: implicit declaration
of function `__cast__'
../../../../include/linux/prefetch.h:63: error: syntax error before "char"
../../../../include/linux/prefetch.h:65: error: syntax error before "char"
../../../../include/linux/prefetch.h:65: error: syntax error before ')' token
../../../../include/linux/prefetch.h:65: warning: statement with no effect
make[4]: *** [ssp.o] Error 1
make[4]: Leaving directory
`/var/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps/linux/common'
make[3]: *** [common] Error 2
make[3]: Leaving directory
`/var/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps/linux'
make[2]: *** [_dir_linux] Error 2
make[2]: Leaving directory
`/var/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc/sysdeps'
make[1]: *** [_dir_sysdeps] Error 2
make[1]: Leaving directory
`/var/tmp/portage/uclibc-0.9.26-r7/work/uClibc-0.9.26/libc'
make: *** [_dir_libc] Error 2
!!! ERROR: sys-libs/uclibc-0.9.26-r7 failed.
!!! Function src_compile, Line 207, Exitcode 2
!!! could not make
!!! If you need support, post the topmost build error, NOT this status message.
my emerge info is:
hardened-uclibc# emerge info
Portage 2.0.51-r15 (uclibc/x86/hardened, gcc-3.3.4, unavailable,
2.6.10-gentoo-r6-EDEL-SM-at-NOC i686)
=================================================================
System uname: 2.6.10-gentoo-r6-EDEL-SM-at-NOC i686 Pentium III (Katmai)
Gentoo Base System version 1.4.16
Python: [2.3.4 (#1, Oct 22 2004, 23:33:45)]
dev-lang/python: [Not Present]
sys-devel/autoconf: [Not Present]
sys-devel/automake: [Not Present]
sys-devel/binutils: 2.14.90.0.8-r1
sys-devel/libtool: [Not Present]
virtual/os-headers: 2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-Os -pipe"
CHOST="i386-pc-linux-uclibc"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nodoc noinfo noman
sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 berkdb hardened ncurses pic pie readline uclibc zlib"
Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
thanks.
--edel
--
[email protected] mailing list