Re: Error while compilation of apple gdb-309 on Linux
Re: Error while compilation of apple gdb-309 on Linux
- Subject: Re: Error while compilation of apple gdb-309 on Linux
- From: Terry Lambert <email@hidden>
- Date: Mon, 8 Aug 2005 18:12:26 -0700
You need to define either __LITTLE_ENDIAN__ or __BIG_ENDIAN__, as
appropriate for your platform before including OSByteOrder.h.
This is pretty obvious from the #error line in that header file that
neither is defined.
-- Terry
On Aug 8, 2005, at 7:07 AM, email@hidden wrote:
Yes that error is resolved, Thanks.
but am getting new error, not sure what exactly is an error
linux:/home/priti/gdb-309/src/gdb # make
gcc -c -I/usr/include/darwin -DTARGET_POWERPC -I./macosx -I. -I. -
I./config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H
-I./../include/opcode -I./../readline/.. -I../bfd -I./../bfd -
I./../include -I../intl -I./../intl -DMI_OUT=1 -Wimplicit -Wreturn-
type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -
Wuninitialized ./macosx/cached-symfile.c
cc1: warning: -Wuninitialized is not supported without -O
In file included from /usr/include/darwin/mach/i386/thread_status.h:
66,
from /usr/include/darwin/mach/machine/
thread_status.h:29,
from /usr/include/darwin/mach/thread_status.h:70,
from /usr/include/darwin/mach/exception_types.h:147,
from /usr/include/darwin/mach/mach_types.h:72,
from macosx/macosx-nat-mutils.h:4,
from macosx/macosx-nat-dyld.h:5,
from macosx/cached-symfile.c:44:
/usr/include/darwin/architecture/i386/frame.h:66:2: warning:
#import is obsolete, use an #ifndef wrapper in the header file
In file included from /usr/include/darwin/mach/ndr.h:93,
from /usr/include/darwin/mach/clock_priv.h:7,
from /usr/include/darwin/mach/mach_interface.h:37,
from /usr/include/darwin/mach/mach.h:62,
from /usr/include/darwin/mach-o/dyld_debug.h:26,
from macosx/macosx-nat-dyld.h:8,
from macosx/cached-symfile.c:44:
/usr/include/darwin/libkern/OSByteOrder.h:561:2: #error Unknown
endianess.
In file included from /usr/include/darwin/mach-o/loader.h:47,
from /usr/include/darwin/mach-o/dyld.h:37,
from /usr/include/darwin/mach-o/dyld_debug.h:28,
from macosx/macosx-nat-dyld.h:8,
from macosx/cached-symfile.c:44:
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapBigShortToHost':
/usr/include/darwin/architecture/byte_order.h:161: warning:
implicit declaration of function `OSSwapBigToHostInt16'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapBigIntToHost':
/usr/include/darwin/architecture/byte_order.h:170: warning:
implicit declaration of function `OSSwapBigToHostInt32'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapBigLongLongToHost':
/usr/include/darwin/architecture/byte_order.h:188: warning:
implicit declaration of function `OSSwapBigToHostInt64'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapHostShortToBig':
/usr/include/darwin/architecture/byte_order.h:215: warning:
implicit declaration of function `OSSwapHostToBigInt16'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapHostIntToBig':
/usr/include/darwin/architecture/byte_order.h:224: warning:
implicit declaration of function `OSSwapHostToBigInt32'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapHostLongLongToBig':
/usr/include/darwin/architecture/byte_order.h:242: warning:
implicit declaration of function `OSSwapHostToBigInt64'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapLittleShortToHost':
/usr/include/darwin/architecture/byte_order.h:269: warning:
implicit declaration of function `OSSwapLittleToHostInt16'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapLittleIntToHost':
/usr/include/darwin/architecture/byte_order.h:278: warning:
implicit declaration of function `OSSwapLittleToHostInt32'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapLittleLongLongToHost':
/usr/include/darwin/architecture/byte_order.h:296: warning:
implicit declaration of function `OSSwapLittleToHostInt64'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapHostShortToLittle':
/usr/include/darwin/architecture/byte_order.h:323: warning:
implicit declaration of function `OSSwapHostToLittleInt16'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapHostIntToLittle':
/usr/include/darwin/architecture/byte_order.h:332: warning:
implicit declaration of function `OSSwapHostToLittleInt32'
/usr/include/darwin/architecture/byte_order.h: In function
`NXSwapHostLongLongToLittle':
/usr/include/darwin/architecture/byte_order.h:350: warning:
implicit declaration of function `OSSwapHostToLittleInt64'
macosx/cached-symfile.c: In function `relocate':
macosx/cached-symfile.c:703: warning: comparison between pointer
and integer
make: *** [cached-symfile.o] Error 1
But all seems to be warnings ..you were saying to use cpu_to_le16
and other functions, how to use it?
Confidentiality Notice
The information contained in this electronic message and any
attachments to this message are intended
for the exclusive use of the addressee(s) and may contain
confidential or privileged information. If
you are not the intended recipient, please notify the sender at
Wipro or email@hidden immediately
and destroy all copies of this message and any attachments.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden