bug-gdb
[Top][All Lists]
Advanced

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

Build failed


From: Michael Reed
Subject: Build failed
Date: Wed, 28 Mar 2001 12:12:21 +0000

Trying to build gdb-4.18  with gcc-2.95.2 on AIX 4.3 which configured as 
"powerpc-ibm-aix4.3.3.0" gave the following error:

make[1]: Entering directory `/prod_data/epha/home/src/build/mmalloc'
gcc -c -g -O2 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_LIMITS_H=1 
-DHAVE_STDDEF_H=1  -I. -I../../gdb-4.18/mmalloc/../include 
../../gdb-4.18/mmalloc/mm.c
In file included from ../../gdb-4.18/mmalloc/mm.c:37:
../../gdb-4.18/mmalloc/sbrk-sup.c:27: conflicting types for `sbrk'
/usr/include/unistd.h:586: previous declaration of `sbrk'

Temporarily fixed this by changing line 27 of sbrk-sup.c from

extern PTR sbrk PARAMS ((int));

to

extern PTR sbrk PARAMS ((intptr_t));

This allowed gdb to build.  However, when I tried to use it to debug the 
following program

$ cat > s.c
int main() { return 0;}
$ gcc -ggdb3 -o s s.c
$ gdb s
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-ibm-aix4.3.3.0"...
(gdb) run
Starting program: /somewhere/s 
"/usr/lib/libcrypt.a": not in executable format: File format not recognized.
(gdb) 


Any help would be appreciated.

Mike.


*********************************************************************
* Please visit the web site of the Financial Times at:              *
*                         http://www.ft.com                         *
*                                                                   *
* For UK personal finance, please visit http://www.ftyourmoney.com  *
*                                                                   *
* This E-Mail is intended for the use of the addressee only and may *
* contain confidential information. If you are not the intended     *
* recipient, you are hereby notified that any use or dissemination  *
* of this communication is strictly prohibited.                     *
* If you receive this transmission in error, please notify us       *
* immediately then delete this E-Mail.                              *           
                         *
*                                                                   *
* address@hidden                                                 *
*********************************************************************



reply via email to

[Prev in Thread] Current Thread [Next in Thread]