This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
Re: build/2536: Undefined symbols: elfcore_write_prpsinfo, elfcore_write_prstatus
- From: Pedro Alves <pedro at codesourcery dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 15 Oct 2008 11:28:01 -0000
- Subject: Re: build/2536: Undefined symbols: elfcore_write_prpsinfo, elfcore_write_prstatus
- Reply-to: Pedro Alves <pedro at codesourcery dot com>
The following reply was made to PR build/2536; it has been noted by GNATS.
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-prs@sourceware.org,
selsky@columbia.edu
Cc: gdb-gnats@sources.redhat.com
Subject: Re: build/2536: Undefined symbols: elfcore_write_prpsinfo, elfcore_write_prstatus
Date: Wed, 15 Oct 2008 12:26:23 +0100
This seems to be related to a recend bfd change. From here:
http://sourceware.org/ml/gdb-patches/2008-10/msg00283.html
I wrote:
"Something (seems to have) changed in the bfd side, maybe related to the recent libtool update,
which triggers this while configuring bfd:
configure:18672: checking sys/procfs.h usability
configure:18684: gcc -c -g -O2 conftest.c >&5
In file included from /usr/include/sys/procfs.h:50,
from conftest.c:104:
/usr/include/sys/old_procfs.h:57:2: #error "Cannot use procfs in the large file compilation environment"
With the end result being that HAVE_PRPSINFO_T and HAVE_PSINFO_T
end up undefined in bfd's config.h, thus skipping including
elfcore_write_prpsinfo and elfcore_write_prstatus in libbfd.a (from bfd/elf.c).
bfd's configure is tripping on this in /usr/include/sys/old_procfs.h:
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
#error "Cannot use procfs in the large file compilation environment"
#endif
Because bfd's configure is now noticing that _FILE_OFFSET_BITS is 64,
while it didn't a few weeks ago.
target/host/build: i386-pc-solaris2.11-gcc
$uname -a
SunOS opensolaris 5.11 snv_86 i86pc i386 i86pc Solaris
$gcc -v
Reading specs from /usr/sfw/lib/gcc/i386-pc-solaris2.11/3.4.3/specs
Configured with: /builds/sfwnv-86/usr/src/cmd/gcc/gcc-3.4.3/configure --prefix=/usr/sfw --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++,f77,objc --enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-20050802)"