[comp.windows.x] Xtank for C-programming competition on Sun-4's

punch@pleiades.cps.msu.edu (Bill Punch) (07/06/90)

After some very nice notes from a number of people, it became clear that
xtank might be a nice environment for people to do some "competition"
program writing using C. So I have downloaded and tried to build xtank,
but the problem seems to be that there are no implementations for the
"thread" parts for the sun4 in the distribution stuff. 

So I am asking, has anyone successfully built xtank on a Sparc-1, unix
4.0.3, X11R4? If so, I would appreciate a note and any hints you might
have. Thanks, if this works out in class I'll drop a note and let
everyone know how it goes.

						>>>bill punch<<<
						punch@cpswh.cps.msu.edu

mcross@pennies.sw.stratus.com (Matt Cross) (07/07/90)

Which version of xtank are you using?  On 'gatekeeper.dec.com', I found version
1.2 - it can be setup to use the 'sun lwp' stuff for the threads...  I have it
working (mostly) on a sun3, but I am having a slight problem dynamically
loading in the robot programs - I get the following error from the linker:

ld: /lib/libX11.a(__.SYMDEF): rd_shsb: can't read struct dynamic for
shared library /lib/libX11.a

But, here's the command line that xtank passed to ld:

/bin/ld -x -N -A ~mcross/xwins/xtank/xtank.exe -T (some address) -o
/tmp/xtank.output ~mcross/xwins/xtank/Programs/DJCmove.o -lm -lc >
/tmp/xtank.error 2>&1

It doesn't include xtank in the libraries!  Might it have something to
do with the -A option - xtank.exe uses libX11.a... HELP!

-- 
These are my views, and in no way reflect the views of Stratus Computer, Inc.

Mail to: mcross@es.stratus.com or profesor@wpi.wpi.edu

stripes@eng.umd.edu (Joshua Osborne) (07/07/90)

In article <1685@lectroid.sw.stratus.com> mcross@pennies.sw.stratus.com (Matt Cross) writes:
>ld: /lib/libX11.a(__.SYMDEF): rd_shsb: can't read struct dynamic for
>shared library /lib/libX11.a
>
>But, here's the command line that xtank passed to ld:
>
>/bin/ld -x -N -A ~mcross/xwins/xtank/xtank.exe -T (some address) -o
>/tmp/xtank.output ~mcross/xwins/xtank/Programs/DJCmove.o -lm -lc >
>/tmp/xtank.error 2>&1
>
>It doesn't include xtank in the libraries!  Might it have something to
>do with the -A option - xtank.exe uses libX11.a... HELP!
It failed because you linked xtank with a shared lib, the version of xtank
you are useing was built before shared libs were available, so it can't parse
the headder info.  (That is no excuse for the Beta version, but that doesn't
yet understand this stuff either).
-- 
           stripes@eng.umd.edu          "Security for Unix is like
      Josh_Osborne@Real_World,The          Mutitasking for MS-DOS"
      "The dyslexic porgramer"                  - Kevin Lockwood
"Don't try to change C into some nice, safe, portable programming language
 with all sharp edges removed, pick another language."  - John Limpert

devil@techunix.BITNET (Gil Tene) (07/08/90)

In article <1990Jul6.211251.7638@eng.umd.edu> stripes@eng.umd.edu (Joshua Osborn
e) writes:
>In article <1685@lectroid.sw.stratus.com> mcross@pennies.sw.stratus.com (Matt C
ross) writes:
>>
>>/bin/ld -x -N -A ~mcross/xwins/xtank/xtank.exe -T (some address) -o
>>/tmp/xtank.output ~mcross/xwins/xtank/Programs/DJCmove.o -lm -lc >
>>/tmp/xtank.error 2>&1
>>
>>It doesn't include xtank in the libraries!  Might it have something to
>>do with the -A option - xtank.exe uses libX11.a... HELP!
>
>It failed because you linked xtank with a shared lib, the version of xtank
>you are useing was built before shared libs were available, so it can't parse
>the headder info.  (That is no excuse for the Beta version, but that doesn't
>yet understand this stuff either).
>--
This link to a dynamic shared lib can be fixed using "-Bstatic" in the
"ld -A" line. This tells the ld to link using non-sharable libs only...
(I have no experience with xtank, but this fixed something else
 with a similar problem)

Gil.
--
--------------------------------------------------------------------
| Gil Tene                      "Some days it just doesn't pay     |
| devil@techunix.technion.ac.il   to go to sleep in the morning."  |
--------------------------------------------------------------------

bkahn@archive.rtp.dg.com (Bruce Kahn) (07/09/90)

In article <1990Jul6.211251.7638@eng.umd.edu>, stripes@eng.umd.edu
(Joshua Osborne) writes:
|> In article <1685@lectroid.sw.stratus.com>
mcross@pennies.sw.stratus.com (Matt Cross) writes:
|> >ld: /lib/libX11.a(__.SYMDEF): rd_shsb: can't read struct dynamic for
|> >shared library /lib/libX11.a
|> >
|> >But, here's the command line that xtank passed to ld:
|> >
|> >/bin/ld -x -N -A ~mcross/xwins/xtank/xtank.exe -T (some address) -o
|> >/tmp/xtank.output ~mcross/xwins/xtank/Programs/DJCmove.o -lm -lc >
|> >/tmp/xtank.error 2>&1
|> >
|> >It doesn't include xtank in the libraries!  Might it have something to
|> >do with the -A option - xtank.exe uses libX11.a... HELP!
|> It failed because you linked xtank with a shared lib, the version of xtank
|> you are useing was built before shared libs were available, so it
can't parse
|> the headder info.  (That is no excuse for the Beta version, but that doesn't
|> yet understand this stuff either).
|> -- 

  Does this mean that there is a newer version of xtank?  If so, where can
it be found?

						Bruce (bkahn@archive.rtp.dg.com)