Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: reallocarr.c compile errors
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 28.07.2015 16:06, scole_mail wrote:
> Hi,
>
> I started getting compilation errors cross-compiling macppc from
> linux a few days ago:
>
> cc -O -I. -I./include -I/home/scole/nbsd/src/tools/compat
> -I/home/scole/nbsd/src/tools/compat/sys -DHAVE_NBTOOL_CONFIG_H=1
> -D_FILE_OFFSET_BITS=64 -D__DBINTERFACE_PRIVATE -c -o
> reallocarr.lo.o
> /home/scole/nbsd/src/tools/compat/../../lib/libc/stdlib/reallocarr.c
>
>
/home/scole/nbsd/src/tools/compat/../../lib/libc/stdlib/reallocarr.c:33:
9:
error: expected declaration specifiers or '...' before string constant
> __RCSID("$NetBSD: reallocarr.c,v 1.2 2015/07/16 00:03:59 kamil Exp
> $"); ^
> /home/scole/nbsd/src/tools/compat/../../lib/libc/stdlib/reallocarr.c:4
3:12:
> error: expected declaration specifiers or '...' before numeric
> constant __CTASSERT(65535 < SIZE_MAX / 65535); ^ ***
> [reallocarr.lo] Error code 1
>
Please try to add:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
at the top of the file and let me know what happens.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBCAAGBQJVt49hAAoJEEuzCOmwLnZsoJ0P/03sRO2zdA/vYq5SDms/8gJy
pVgExJhb2s0q/dRDug/EMEZqcPP++efdORAVU/iNLXageTGSU5UIOOurvziU1pHD
Vuftam+AZr4bCc9FKBVJwNfDuScgOKkjPZde7oMaZqv++bl9Yw0F+1jK0TZpNQKX
vuVG0UfC1Q+1LLiNCjzgxFH8Iml5uWARIg40KxvHzHfODjCOGuweVj9GuMs14tb0
Ux0FJTTjYqF0k3bqPn2fnPEXioGmB7UppLYHyUk1wS06xE0CK7aF/WratNTdA42O
qblQkyJ7HSpOw+Z9UtFkJHNs49ua24zOnWB8V7f8bIcleXvdOuR1NP1cpSwOP2TW
liVU+Ej5FTy7FyWgHPDJpolIrBv/LfQsxmkI2kUy1W7cLaLjjnFvuV4xHbuWEaxK
dhIKd4z4RyWMhnf8bGm5F63/tsRhyta4flzMV61awiIbAe3hcFMHLAoFk/ZgYmTO
m2sNKPAHb/R/lPN/xKucs9yvIkE5yv+PlLaX2svx+K0EaAd8E6PKF4ilcCXGBsCC
5gSd/Q8vF1hflCbCvCFJyr3Q1dgIMLE40BkXowJ4WMT9Zuh4FDMY4r5qZql/Tb6g
D1M9CT+2ujOyd3StO5p3PqR3bYDwPN1xPLRy6t5vOFBKGlZtfU0sB07wWtkSZKfM
LQhNW/KYn1dsVkkWiIdj
=QyI8
-----END PGP SIGNATURE-----
Home |
Main Index |
Thread Index |
Old Index