tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

__RCSID() in tools/libelf (Re: CVS commit: src)



> Module Name:  src
> Committed By: thorpej
> Date:         Mon Dec 21 18:21:18 UTC 2009
> 
> Modified Files:
>       src/external/bsd/libelf/dist: libelf.h
>       src/tools: Makefile Makefile.disklabel
> Added Files:
>       src/tools/libelf: Makefile libelf.inc
> 
> Log Message:
> Add support for building libelf in a host-tool environment.

build.sh tools on Cygwin 1.7.1 fails around __RCSID() in libelf sources:

---
#   compile  libelf/elf_begin.lo
cc -O  -I/usr/src/tools/libelf/../compat \
-I/usr/src/tools/libelf/../../external/bsd/libelf/dist \
-I/usr/src/obj.macppc/tooldir.CYGWIN_NT-5.1-1.7.1-i686/include/nbinclude \
-DLIBELF_TEST_HOOKS -DHAVE_NBTOOL_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 \
-I/usr/src/obj.macppc/tooldir.CYGWIN_NT-5.1-1.7.1-i686/include
-c -o elf_begin.lo.o    \
/usr/src/tools/libelf/../../external/bsd/libelf/dist/elf_begin.c
/usr/src/tools/libelf/../../external/bsd/libelf/dist/elf_begin.c:31: \
error: parse error before string constant
/usr/src/tools/libelf/../../external/bsd/libelf/dist/elf_begin.c:31: \
warning: data definition has no type or storage class

*** Failed target:  elf_begin.lo

---
29: #include <sys/cdefs.h>
30: /* __FBSDID("$FreeBSD: src/lib/libelf/elf_begin.c,v 1.1.10.1.2.1 2009/10/25 
01:10:29 kensmith Exp $"); */
31: __RCSID("$NetBSD: elf_begin.c,v 1.3 2009/12/20 23:23:46 thorpej Exp $");
32: 
---

It looks we should include "nbtool_config.h" before __RCSID()
(or disable it by #if defined(RCSID) etc.) but
I wonder what is the common way to handle this.
---
Izumi Tsutsui


Home | Main Index | Thread Index | Old Index