From owner-freebsd-stable@FreeBSD.ORG Sat Feb 14 13:33:27 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AAE2D106564A; Sat, 14 Feb 2009 13:33:27 +0000 (UTC) (envelope-from rehsack@web.de) Received: from fmmailgate02.web.de (fmmailgate02.web.de [217.72.192.227]) by mx1.freebsd.org (Postfix) with ESMTP id 37E558FC1F; Sat, 14 Feb 2009 13:33:27 +0000 (UTC) (envelope-from rehsack@web.de) Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id CA64FFA68D86; Sat, 14 Feb 2009 14:10:05 +0100 (CET) Received: from [87.149.224.150] (helo=waldorf.muppets.liwing.de) by smtp05.web.de with esmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #277) id 1LYKHV-0002tc-00; Sat, 14 Feb 2009 14:10:05 +0100 Message-ID: <4996C16D.8050909@web.de> Date: Sat, 14 Feb 2009 13:04:45 +0000 From: Jens Rehsack User-Agent: Thunderbird 2.0.0.19 (X11/20090114) MIME-Version: 1.0 To: John Baldwin X-Enigmail-Version: 0.95.7 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA5DEDAE572FAE7669411584A" Sender: rehsack@web.de X-Sender: rehsack@web.de X-Provags-ID: V01U2FsdGVkX1/+cNVuH/HDdVn8CXIGmWGJ3ZJXPfQTg2fFhrWo Vh0PGcB+62yNm0nAq0xte7qofeljL0WrhCdaSk3i6hqsC9HN+r XUA21D2EA= Cc: freebsd-stable@freebsd.org Subject: Error compiling FreeBSD-Stable with MFC'ed iconv locking X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2009 13:33:28 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA5DEDAE572FAE7669411584A Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi John, after I updated my system (-STABLE) I received following compilation erro= r while building the kernel (having ICONV built in): cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=3Dnocona -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototype= s -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -inclu= de opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growth= =3D100 --param large-function-growth=3D1000 -fno-omit-frame-pointer -mcmodel=3D= kernel -mno-red-zone -mfpmath=3D387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/libkern/iconv.c /usr/src/sys/libkern/iconv.c: In function 'iconv_mod_unload': /usr/src/sys/libkern/iconv.c:92: error: 'curthread' undeclared (first use= in this function) /usr/src/sys/libkern/iconv.c:92: error: (Each undeclared identifier is reported only once /usr/src/sys/libkern/iconv.c:92: error: for each function it appears in.)= /usr/src/sys/libkern/iconv.c: In function 'iconv_sysctl_add': /usr/src/sys/libkern/iconv.c:401: error: 'curthread' undeclared (first us= e in this function) /usr/src/sys/libkern/iconv.c: In function 'iconv_converter_handler': /usr/src/sys/libkern/iconv.c:452: error: 'curthread' undeclared (first us= e in this function) I applied following patch - and it works: --- sys/sys/sx.h.orig 2009-02-14 12:56:11.000000000 +0000 +++ sys/sys/sx.h 2009-02-14 12:57:33.000000000 +0000 @@ -35,6 +35,7 @@ #include #include #include +#include #ifdef _KERNEL #include Google didn't find anything so I thought I mail this quickly. Best regards, Jens --------------enigA5DEDAE572FAE7669411584A Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQIcBAEBAgAGBQJJlsF0AAoJEIc3wDcpRJzFBkwP/0h3ifjg5FUatHlyiWM/ZqQs xkHSDkq3zn2NacHyGFwqF+Bd9bV+yLKlQvCQAm7bKByhHZMyqB3PV7kKpMEFjZ9n 5tuVKbG6ikctP8eLdnfbckZFm+bbgWJQ2IUkcG/q8/WKC6pCODvjipYoWdpKx0iT PYUUNxeu8mIDZ4U6WkOjXbxRvJG/yrPAmqal9XfhydrDyhqLQ2BzaaFLVzEzbqmn jZdinwmiSssoARw2+h4Krz3YoR5TCJ1k27C8PNPE7w4uSoYXIL8RQE3Ou+6P2TRR ejpm38QK+QeePjBv+TAUIaCho+KG5FW1pgNwut54OdQ/wXUXiKRtyVacd6e8XkeM HY/yQVMwX3VakCwMreNRtGw0r3sgASF5lvloMSsaPPmta8YCvk4YogFGz8kzkg5q aWjMf2Id/tl1A38FR98NqEcmW5JsHXipvyES+gM+OOdA2bOVjI9ac1fBUvn0YaMO GHHtIY5L2LTZNCkWG+to5newy8TUy6gHv/w/mS1PiYtR9Yi29z0UXHn02xPi/3lK lKx3/L2yE4S4puGBp/QA4borqaQaZqJijEdM72BbKK0sIxC1XCqvcX5/8hAmA13x PBHTn//npWwgZ4kAmAa6BJQ80p/oClMO1MLICOiOhFOcm2GdwKNDfN6mTKQlyssx 37HKmanth4bBgOj0nfJF =e2/z -----END PGP SIGNATURE----- --------------enigA5DEDAE572FAE7669411584A--