build/2490: make[2]: *** [solib-pa64.o] Error 1
dave.anglin@nrc-cnrc.gc.ca
dave.anglin@nrc-cnrc.gc.ca
Sun Aug 3 22:58:00 GMT 2008
>Number: 2490
>Category: build
>Synopsis: make[2]: *** [solib-pa64.o] Error 1
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Aug 03 22:58:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Dave Anglin
>Release: gdb-6.8
>Organization:
>Environment:
hppa2.0w-hp-hpux11.11
>Description:
Building 32-bit version of gdb for hppa2.0w-hp-hpux11.11
fails:
gcc -c -g -O2 -I. -I../../src/gdb -I../../src/gdb/config -DLOCALEDIR="\"/opt/g
nu/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src
/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -
I../libdecnumber -I../../src/gdb/../libdecnumber -DMI_OUT=1 -DTUI=1 -Wall -Wd
eclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign
-Wno-unused -Wno-switch -Wno-char-subscripts -Werror ../../src/gdb/solib-pa64.c
cc1: warnings being treated as errors
../../src/gdb/solib-pa64.c: In function 'read_dld_descriptor':
../../src/gdb/solib-pa64.c:170: warning: passing argument 4 of 'dlgetmodinfo' fr
om incompatible pointer type
../../src/gdb/solib-pa64.c: In function 'pa64_current_sos':
../../src/gdb/solib-pa64.c:472: warning: passing argument 4 of 'dlgetmodinfo' fr
om incompatible pointer type
../../src/gdb/solib-pa64.c:479: warning: passing argument 3 of 'dlgetname' from
incompatible pointer type
../../src/gdb/solib-pa64.c: In function 'pa64_open_symbol_file_object':
../../src/gdb/solib-pa64.c:539: warning: passing argument 4 of 'dlgetmodinfo' fr
om incompatible pointer type
../../src/gdb/solib-pa64.c:545: warning: passing argument 3 of 'dlgetname' from
incompatible pointer type
make[2]: *** [solib-pa64.o] Error 1
This appears to have been introduced by the following
change:
2007-10-24 Ulrich Weigand <uweigand@de.ibm.com>
* configure.tgt: Remove hppa*64*-*-hpux11* special case.
* config/pa/hppa64.mt: Delete file.
* config/pa/hppahpux.mt (MT_CFLAGS): Remove.
(TDEPFILES): Move somread.o to ...
* config/pa/hpux.mh (NATDEPFILES): ... here.
* configure.ac: Add check for elf_hp.h header.
Search libdl and libxpdl for dlgetmodinfo.
* config.in, configure: Regenerate.
* solib-pa64.c: Conditionalize compilation on #ifdef HAVE_ELF_HP_H
instead of #ifndef PA_SOM_ONLY. Include "solib.h".
(pa64_solib_select): Take gdbarch instead of tdep argument. Call
set_solib_ops instead of modifying current_target_so_ops.
* solib-pa64.h (pa64_solib_select): Update prototype.
* solib-som.c: Remove include of "som.h". Include "solib.h".
(som_solib_select): Take gdbarch instead of tdep argument. Call
set_solib_ops instead of modifying current_target_so_ops.
* solib-som.h (som_solib_select): Update prototype.
* hppa-hpux-tdep.c (hppa_hpux_som_init_abi): Pass gdbarch instead
of tdep to som_solib_select call.
(hppa_hpux_elf_init_abi): Pass gdbarch instead of tdep to
* Makefile.in: Update dependencies.
The change to using HAVE_ELF_HP_H doesn't work as it
is also defined when doing a native 32-bit SOM build.
As I understand it, PA_SOM_ONLY was only defined when
doing a native SOM build.
Possibly, the errors can be fixed.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gdb-prs
mailing list