Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jan 2013 09:15:39 +0100
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        Current FreeBSD <freebsd-current@freebsd.org>
Subject:   r245838: make world fails: /usr/src/usr.bin/dtc/dtc.cc:196:24: error: use of undeclared identifier 'optarg', string arg = string(optarg);
Message-ID:  <50FF9C2B.30403@zedat.fu-berlin.de>
In-Reply-To: <50FEB83D.1000806@zedat.fu-berlin.de>
References:  <50FEB409.9060907@zedat.fu-berlin.de> <50FEB83D.1000806@zedat.fu-berlin.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50FF9C2B.30403>