This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/7] Import readlink
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 3 Dec 2014 14:48:12 +0400
- Subject: Re: [PATCH 1/7] Import readlink
- Authentication-results: sourceware.org; auth=none
- References: <1416980800-21408-1-git-send-email-yao at codesourcery dot com> <1416980800-21408-2-git-send-email-yao at codesourcery dot com>
> 2014-11-26 Yao Qi <yao@codesourcery.com>
>
> * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
> * gnulib/aclocal.m4: Re-generated.
> * gnulib/config.in: Likewise.
> * gnulib/configure: Likewise.
> * gnulib/import/Makefile.am: Likewise.
> * gnulib/import/Makefile.in: Likewise.
> * gnulib/import/m4/gnulib-cache.m4: Likewise.
> * gnulib/import/m4/gnulib-comp.m4: Likewise.
> * gnulib/import/dosname.h: New file
> * gnulib/import/m4/largefile.m4: New file.
> * gnulib/import/m4/readlink.m4: New file.
> * gnulib/import/m4/stat.m4: New file.
> * gnulib/import/readlink.c: New file.
> * gnulib/import/stat.c: New file.
FTR, I think this patch is reponsible for GDB failing to build
on 32bit Solaris systems (Sparc and x86), due to the introduction
of the following #define in gnulib's config.in:
> +/* Number of bits in a file offset, on hosts where this is settable. */
> +#undef _FILE_OFFSET_BITS
When defined to 64, it triggers an issue with procfs.h:
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
#error "Cannot use procfs in the large file compilation environment"
#endif
This is utterly familiar, but I just can't remember what the problem
was, at the time, nor what I did. I will research it next.
--
Joel