This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

64-bit BFD compile on AIX 5.1


Hi,

Do you have any suggestions for compiling a 64-bit version of libbfd.a for AIX 
5.1?  I configured with "--enable-64-bit-bfd", but that didn't appear to 
modify the bfd_default_target_size value or add the "-maix64" flag.

I tried something along the lines of 'make CFLAGS="-maix64"' in the bfd 
directory, but I ran into a compile error:

...
gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DAIX_5_CORE 
-DAIX_CORE_DUMPX_CORE -DAIX_CORE -I. -I. -I./../include -I./../intl -I../intl 
-W -Wall -Wstrict-prototypes -Wmissing-prototypes -maix64 -c rs6000-core.c -o 
rs6000-core.o
rs6000-core.c:114: field `old' has incomplete type
rs6000-core.c:127: field `old' has incomplete type
rs6000-core.c: In function `read_hdr':
rs6000-core.c:266: dereferencing pointer to incomplete type
rs6000-core.c:266: dereferencing pointer to incomplete type
rs6000-core.c:275: dereferencing pointer to incomplete type
rs6000-core.c:275: dereferencing pointer to incomplete type
rs6000-core.c:276: dereferencing pointer to incomplete type
rs6000-core.c:276: dereferencing pointer to incomplete type
rs6000-core.c: At top level:
rs6000-core.c:281: warning: function declaration isn't a prototype
rs6000-core.c:308: warning: function declaration isn't a prototype
rs6000-core.c:637: warning: function declaration isn't a prototype
rs6000-core.c:715: warning: function declaration isn't a prototype
rs6000-core.c:729: warning: function declaration isn't a prototype
make[2]: *** [rs6000-core.lo] Error 1


As far as I can tell, the core_dump structure declaration referred to in 
rs6000-core.c is not included from core.h when compiling for 64-bit objects 
on AIX 5.1.

Thanks,

-Chris




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