From owner-freebsd-current@FreeBSD.ORG Wed Jan 23 08:15:49 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D8E0ABA6 for ; Wed, 23 Jan 2013 08:15:49 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 7A8A195 for ; Wed, 23 Jan 2013 08:15:49 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) for freebsd-current@freebsd.org with esmtp (envelope-from ) id <1TxvUq-0007YJ-M3>; Wed, 23 Jan 2013 09:15:48 +0100 Received: from e178024073.adsl.alicedsl.de ([85.178.24.73] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) for freebsd-current@freebsd.org with esmtpsa (envelope-from ) id <1TxvUq-003zMt-H7>; Wed, 23 Jan 2013 09:15:48 +0100 Message-ID: <50FF9C2B.30403@zedat.fu-berlin.de> Date: Wed, 23 Jan 2013 09:15:39 +0100 From: "O. Hartmann" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Current FreeBSD Subject: r245838: make world fails: /usr/src/usr.bin/dtc/dtc.cc:196:24: error: use of undeclared identifier 'optarg', string arg = string(optarg); References: <50FEB409.9060907@zedat.fu-berlin.de> <50FEB83D.1000806@zedat.fu-berlin.de> In-Reply-To: <50FEB83D.1000806@zedat.fu-berlin.de> X-Enigmail-Version: 1.4.6 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig679809CE141FDB2E2E2DDF24" X-Originating-IP: 85.178.24.73 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 08:15:49 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig679809CE141FDB2E2E2DDF24 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Make world fails in /usr/src/usr.bin/dtc/dtc.cc with a lot of errors com[laining about an undeclared identifier: [...] =3D=3D=3D> usr.bin/dtc (obj,depend,all,install) /usr/obj/usr/src/tmp/usr/src/usr.bin/dtc created for /usr/src/usr.bin/dtc= rm -f .depend mkdep -f .depend -a -I/usr/obj/usr/src/tmp/legacy/usr/include -std=3Dc++11 -stdlib=3Dlibc++ /usr/src/usr.bin/dtc/dtc.cc /usr/src/usr.bin/dtc/input_buffer.cc /usr/src/usr.bin/dtc/string.cc /usr/src/usr.bin/dtc/dtb.cc /usr/src/usr.bin/dtc/fdt.cc /usr/src/usr.bin/dtc/checking.cc echo dtc: /usr/lib/libc.a /usr/obj/usr/src/tmp/legacy/usr/lib/libegacy.a >> .depend echo dtc: /usr/lib/libc++.a >> .depend c++ -O2 -pipe -O3 -I/usr/obj/usr/src/tmp/legacy/usr/include -stdlib=3Dlibc++ -std=3Dc++11 -c /usr/src/usr.bin/dtc/dtc.cc c++ -O2 -pipe -O3 -I/usr/obj/usr/src/tmp/legacy/usr/include -stdlib=3Dlibc++ -std=3Dc++11 -c /usr/src/usr.bin/dtc/input_buffer.cc /usr/src/usr.bin/dtc/input_buffer.cc:116:11: error: use of undeclared identifier 'strtoll' [...] 7 errors generated. *** [string.o] Error code 1 /usr/src/usr.bin/dtc/input_buffer.cc:218:10: error: use of undeclared identifier 'stderr' fprintf(stderr, "Current cursor: %d\n", cursor); ^ /usr/src/usr.bin/dtc/input_buffer.cc:219:42: error: use of undeclared identifier 'stderr' fwrite(&buffer[cursor], size-cursor, 1, stderr); ^ /usr/src/usr.bin/dtc/input_buffer.cc:227:3: error: use of undeclared identifier 'perror' perror("Failed to stat file"); ^ /usr/src/usr.bin/dtc/input_buffer.cc:234:3: error: use of undeclared identifier 'perror' perror("Failed to mmap file"); ^ /usr/src/usr.bin/dtc/input_buffer.cc:249:20: error: use of undeclared identifier 'stdin' while ((c =3D fgetc(stdin)) !=3D EOF) ^ /usr/src/usr.bin/dtc/input_buffer.cc:249:31: error: use of undeclared identifier 'EOF' while ((c =3D fgetc(stdin)) !=3D EOF) ^ 15 errors generated. *** [input_buffer.o] Error code 1 /usr/src/usr.bin/dtc/dtb.cc:87:2: error: use of undeclared identifier 'write' write(fd, buffer.data(), buffer.size()); ^ /usr/src/usr.bin/dtc/dtb.cc:125:2: error: use of undeclared identifier 'snprintf'; did you mean 'vswprintf'? snprintf(out, 3, "%.2hhx", b); ^~~~~~~~ vswprintf /usr/include/wchar.h:130:5: note: 'vswprintf' declared here int vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, ^ /usr/src/usr.bin/dtc/dtb.cc:125:11: error: cannot initialize a parameter of type 'wchar_t *' with an lvalue of type 'char [3]' snprintf(out, 3, "%.2hhx", b); ^~~ /usr/include/wchar.h:130:35: note: passing argument to parameter here int vswprintf(wchar_t * __restrict, size_t n, const wchar_t * __restrict, ^ /usr/src/usr.bin/dtc/dtb.cc:218:2: error: use of undeclared identifier 'write' write(fd, buffer.data(), buffer.size()); ^ /usr/src/usr.bin/dtc/dtb.cc:259:11: error: use of undeclared identifier 'stderr' fprintf(stderr, "Missing magic token in header. Got %" PRIx32 ^ 5 errors generated. *** [dtb.o] Error code 1 /usr/src/usr.bin/dtc/dtc.cc:102:15: error: use of undeclared identifier 'getopt' while ((ch =3D getopt(argc, argv, options)) !=3D -1) [...] --------------enig679809CE141FDB2E2E2DDF24 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.19 (FreeBSD) iQEcBAEBAgAGBQJQ/5w0AAoJEOgBcD7A/5N8HV4H/1DW8PV1BXzPtEsyqpRhcKXG M/YjmSfyQ4Xqe7m/OTAneXXzi+Cf+Tbp1gcHVOpPGqb13HWxUKXJ7KUtSKxWUwR4 IPG1M2qagdvYTuacZFwLry+IUonsAYaCsbD2RoNs5MvWidob2eIVZGUQ6ibeCe+1 jD+mbN5ux5BvDW5Ozp1cgQ/+5cdvTq4LfTnWuDcAr1IGhpeCo5m4JJ2M8ZOTHXTD gZAvNtRTkWQIYNnT2hi3kGNbrva9Q6bMv2QUvPwY2xFXZCD1Y7Am7a/0IlgBadNa VSWTtkJbfj9ZoyfJ+ox3sOhmdzUCnU4RvzgLpjci7cCppNIHbVP+4/lMAHNaUQc= =RrDe -----END PGP SIGNATURE----- --------------enig679809CE141FDB2E2E2DDF24--