This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 1/7] Import readlink


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]