This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the EGCS project.


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

Re: What causes the 'type and size of dynamic symbol ... not defined'warning?


On Fri, 23 Jul 1999 09:47:42 +0200, Ronald.Pijnacker@best.ms.philips.com wrote:
> >
> > Since I got RedHat-6, I have been getting warning messages like -
> >
> > /usr/bin/ld: warning: type and size of dynamic symbol
> > `__objc_class_name_NSObject' are not defined
> >
> > Whenever I build an objective-c program.
> >
> > The compiler version is -
> > gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> >
> > Can anyone enlighten me as to what exactly is causing these warnings, and
> > how they can be fixed?
> >
> > Presumably this is a bug in either egcs or ld - my guess being that it is
> > an egcs bug, but perhaps a long-standing one that has been exposed by a
> > change in ld?
> >
>
> I got the same warning when I switched from ld v 2.8.1 to v 2.9, using
> the same object files as before (generated with gcc 2.8.1). So it
> would seem to be a problem of ld.

Well - thanks for the information - but I don't accept your conclusion.
We can say that the message comes from ld, and that older versions of ld
did not generate it - but I don't think that tells us whether gcc
is, and has been, generating incorrect symbol information, or whether the
message is being incorrectly genrated by ld.

I still suspect that gcc is at fault - and we need to get it changed so that
ld won't complain.
Hopefully someone can give an authoritative answer.


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