Bug 666 - mistaken compiler warnings:"objc_class_name" not defined
Summary: mistaken compiler warnings:"objc_class_name" not defined
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: objc (show other bugs)
Version: 2.95.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-20 23:06 UTC by pauljohn
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
gcc-objc.diff (1001 bytes, application/octet-stream)
2003-05-21 15:17 UTC, pauljohn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pauljohn 2000-10-20 23:06:00 UTC
I use the Swarm Toolkit (www.swarm.org) which depends on some gcc-2.95.2 features.  WHen I compile programs against swarm using gcc-2.95.2, I get these annoying warnings.  We have determined that these are just noise, there is nothing to worry about.

usr/bin/ld: warning: type and size of dynamic symbol 

`__objc_class_name_SwarmObject' are not defined 

/usr/bin/ld: warning: type and size of dynamic symbol 

`__objc_class_name_ZoomRaster' are not defined 

/usr/bin/ld: warning: type and size of dynamic symbol 

`__objc_class_name_CustomProbeMap' are not define 

/usr/bin/ld: warning: type and size of dynamic symbol 

`__objc_class_name_GUISwarm' are not defined 


I've attached a file called gcc-objc.diff that makes the problem go away.  I got it from someone who knows tons more about this than I do, I can't explain it.  His point was that there is something dubious about the current approach for objc, and his patch just clears up one misconception in a larger misconception.  I don't really care what you do, if you can make these erroneous warnings go away. They are distracting the user community.

Release:
gcc-2.95.2 (as well as egcs 1.1x and newer gcc)

Environment:
RedHat Linux

How-To-Repeat:
build Swarm against gcc-2.95.2 and the compile a swarm application, such as heatbugs.
Comment 1 pauljohn 2000-10-20 23:06:00 UTC
Fix:
apply the gcc-objc.diff, recompile gcc, problem vanishes.
Comment 2 Roger Sayle 2002-07-02 06:54:36 UTC
State-Changed-From-To: open->closed
State-Changed-Why: See Nicola Pero's post
    http://gcc.gnu.org/ml/gcc/2002-06/msg01712.html