swarm-support
[Top][All Lists]
Advanced

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

Re: Oh heck. Glibc 2.1 (was Re: Problem with tutorial for swarm-1.4.1


From: Paul E. Johnson
Subject: Re: Oh heck. Glibc 2.1 (was Re: Problem with tutorial for swarm-1.4.1
Date: Fri, 30 Apr 1999 00:08:15 -0500

Off the list, one person whose initials are KC wrote me and said:
> I just wanted to point out that `strchr' doesn't seem to be
> need anywhere in the source except `defobj/Customize.m'.
> You might (as a temporary hack) try commenting-out line 115
> in tclObjc.m and see how it goes.

Just for fun, I did that, and got the following.  

/bin/sh ../../libtool --mode=compile egcs -DHAVE_CONFIG_H -I. -I.
-I../.. -I./../collections -I./../defobj -I./../objectbase -I.. -I./..
-I./../gui -I./../misc -I./../activity -I./../tclobjc      
-D_GNU_SOURCE  -g -O2 -Wall -Wno-import -Wno-protocol -Werror
-I/usr/X11R6/include -Wno-implicit-int -c LinkItem.m
egcs -DHAVE_CONFIG_H -I. -I. -I../.. -I./../collections -I./../defobj
-I./../objectbase -I.. -I./.. -I./../gui -I./../misc -I./../activity
-I./../tclobjc -D_GNU_SOURCE -g -O2 -Wall -Wno-import -Wno-protocol
-Werror -I/usr/X11R6/include -Wno-implicit-int -c -fPIC -DPIC LinkItem.m
LinkItem.m:46: macro `strdup' used with too many (6) args
LinkItem.m:51: macro `strdup' used with too many (6) args
make[4]: *** [LinkItem.lo] Error 1

I've seen this one before, and luckily Marcus had shown me how to fix
it.

This error was found in LinkItem.m (twice) once in common.m, once in a
file called OvalNode (full name?).   The trouble-causing lines all have
a format like this

    something = strdup([[globalTkInterp eval: "lots of complicated
crap"]] result]);

And the error  goes away if you rewrite it as

     id A;
      A=[globalTkInterp eval: "lots of complicated crap"]];
      something= strdup([A result]);

After that, Swarm compiled and I installed it in an out of the way
place,  /home/pauljohn/swarm-1.4.1.  

After compiling, I got an app that DID RUN but there was still a bunch
of compiler warnings like this:
egcs -g -O2 -L/home/pauljohn/swarm-1.4.1/lib -L/usr/lib -L/usr/X11R6/lib
-L/usr/lib -L/usr/lib -L/usr/lib -L/usr/X11R6/lib -o recruiter Point.o
MultiDimSpace.o WhiteRaster.o ObserverSwarm.o PolicyPoint.o Outfiler.o
Citizen.o Recruiter.o main.o ModelSwarm.o Obj2DSubclass.o -lspace
-lspace -lanalysis -lsimtools -lsimtoolsgui -ltkobjc -ltclobjc
-lactivity -lrandom -lobjectbase -lcollections -ldefobj -lmisc -lBLT
-ltk8.0 -ltcl8.0 -lXpm -lpng -lhdf5 -lz -lffi -lX11 -lm -lobjc -lpthread
-ldl -Wl,--rpath -Wl,/home/pauljohn/swarm-1.4.1/lib -Wl,--rpath
-Wl,/usr/lib -Wl,--rpath -Wl,/usr/X11R6/lib -Wl,--rpath -Wl,/usr/lib
-Wl,--rpath -Wl,/usr/lib
/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_GUISwarm' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_EmptyProbeMap' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_AppendFile' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_NormalDist' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_EZGraph' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Grid2d' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Object2dDisplay' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_UniformDoubleDist' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Swarm' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_PSWBgen' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_NSelect' are not defined
/usr/bin/ld: warning: type and size of dynamic symbol
`__objc_class_name_Colormap' are not defined

But it does run, and I'm patting my own back for remembering the strdup
trick, but I'm afraid I'm out of my league on this objc_class_name_ not
defined warning.

-- 
Paul E. Johnson                         email: address@hidden
Dept. of Political Science              http://lark.cc.ukans.edu/~pauljohn
University of Kansas                    Office: (785) 864-9086
Lawrence, Kansas 66045                  FAX: (785) 864-5700

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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