swarm-support
[Top][All Lists]
Advanced

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

Re: installing 1.4.1 on SuSE Linux 6.1 (help re objc?)


From: maylward
Subject: Re: installing 1.4.1 on SuSE Linux 6.1 (help re objc?)
Date: Mon, 21 Jun 1999 22:09:15 +0800

Jan Kreft wrote:

> Dear Catherine and Matt,
>
> I have Swarm running on SuSE 6.1, using the egcs provided. Recompilation
> is not necessary, but it might help with the linker that spews out
> warnings about multiple commons and undefined dynamic symbols. I have
> chosen to ignore these warnings rather than install a new linker, as
> getting on with my work is more important.
>
> I simply installed everything SuSE had re egcs, gcc, objc. Maybe you
> didn't select the objc stuff gobjc in the d1 package. Go through the html
> help with the list of all packages and search for objc, then find the
> stuff in yast and select it.
>
> Re. other packages, the gdb provided is useless, I overwrote it with the
> precompiled version from santafe. Also, SuSE offers to install new and old
> Tcl/Tk by default, which is a bad idea as they are installed in the same
> directory. So I deinstalled the new version and compiled from source and
> installed in /usr/local where I've also put everything else that was
> missing.
>
> If you configure with --enable-shared, you will get those known warnings
>
> ld: type and size of dynamic symbol foo are not defined
>
> which you can safely ignore.
>
> Hope that helps, Jan.

Thanks jan,
I agree regarding tcl/tk, having both versions is a pain. In the past i have 
done
the same as you - that is remove them all, then recompile them from source into
/usr/local. Then do the same for blt. I think i might take that path again.

Catherine,
I am beginning to think that SuSE is trying to cover too many bases with the
gcc/egcs setup, as they do by having both tcltk 7.4.xx and 8.0.
I checked out the the directory structure on SuSE.6.1.
With the `gnobjc' and `gobjc' RPMs installed :
/usr/lib/gcc-lib/i486-linux/egcs-2.91.66 contains :

cc1obj        f771          libg++.a      libg2c.a      libstdc++.a
cc1plus       include/       libg++.so     libobjc.a     libstdc++.so

the /usr/lib/gcc-lib/i486-linux/egcs-2.91.66/include dir has a subdir objc/
containing :

NXConstStr.h   encoding.h     objc-list.h    thr.h
Object.h       hash.h         objc.h         typedstream.h
Protocol.h     objc-api.h     sarray.h

I have just left the c++ stuff as the egcs compile replaces everything else.

Now, using
./configure --with-bltdir=/usr/X11R6 --with-pngdir=/usr/X11R6 --host=i586-linux
the Swarm compile errors are: --- OH DEAR --

Making all in tclobjc
make[3]: Entering directory `/opt2/swarm/swarm-1.4.1/src/tclobjc'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I./../misc
-I/usr/X11R6/include  -I/usr/local/include  -D_GNU_SOURCE -DList=TclObjcList
-DTCL_LIBRARY=\"/usr/lib/tcl7.6\" -DTK_LIBRARY=\"/usr/X11R6/lib/tk4.2\"   -g -O2
-Wall -Wno-import -Wno-protocol -Werror -I/usr/X11R6/include -Wno-implicit-int 
-c
tclObjc.m
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I./../misc -I/usr/X11R6/include
-I/usr/local/include -D_GNU_SOURCE -DList=TclObjcList
-DTCL_LIBRARY=\"/usr/lib/tcl7.6\" -DTK_LIBRARY=\"/usr/X11R6/lib/tk4.2\" -g -O2 
-Wall
-Wno-import -Wno-protocol -Werror -I/usr/X11R6/include -Wno-implicit-int -c 
-fPIC
-DPIC tclObjc.m
In file included from tclObjc.m:87:
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/include/objc/objc-api.h:381:
`objc_malloc' redeclared as different kind of symbol
objc-malloc.h:28: previous declaration of `objc_malloc'
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/include/objc/objc-api.h:384:
`objc_atomic_malloc' redeclared as different kind of symbol
objc-malloc.h:29: previous declaration of `objc_atomic_malloc'
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/include/objc/objc-api.h:390:
`objc_realloc' redeclared as different kind of symbol
objc-malloc.h:30: previous declaration of `objc_realloc'
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/include/objc/objc-api.h:393:
`objc_calloc' redeclared as different kind of symbol
objc-malloc.h:31: previous declaration of `objc_calloc'
/usr/local/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/include/objc/objc-api.h:396:
`objc_free' redeclared as different kind of symbol
objc-malloc.h:32: previous declaration of `objc_free'
make[3]: *** [tclObjc.lo] Error 1
make[3]: Leaving directory `/opt2/swarm/swarm-1.4.1/src/tclobjc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt2/swarm/swarm-1.4.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/opt2/swarm/swarm-1.4.1'
make: *** [all-recursive-am] Error 2

I give up

Cheers,
Matt




                  ==================================
   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]