bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Compile latest version under Windows


From: Holger
Subject: Re: [Bug-gnubg] Compile latest version under Windows
Date: Tue, 26 Nov 2002 20:43:31 +0100 (MET)

Jim Segrave wrote:
> On Tue 26 Nov 2002 (17:24 +0100), Holger wrote:
> > Jim Segrave wrote:
> > > On Tue 26 Nov 2002 (16:37 +0100), Holger wrote:
> > > > Hi,
> > > > 
> > > > I'm having problems compiling the CVS version. It fails with:
> > > > 
> > > > eval.o(.text+0x89d):eval.c: undefined reference to
`BearoffInitBuiltin'
> > > > 
> > > > I do have bearoff.c and .o in SOURCES and OBJS in Makefile,
> > > respectively. It
> > > > seems that there is no function definition in bearoff.c, only the
> > > > declaraction in bearoff.h.
> > > > 
> > > Does your makefile include br1.c in COMMON_SOURCES? That's where the
> > > function is defined. 
> > 
> > I don't have the file. I think the ./configure procedure doesn't work
well
> > on Windows. I've heard, though, that a few people have had success. And
I
> > think Nardy is trying this with MinGW and MSYS.
> > 
> > > If br1.c doesn't exist, it is constructed by doing:
> > > 
> > > br1.c:  makebearoff makebearoff1
> > >     if [ ! -f br1.c ]; then \
> > >        ./makebearoff -o 6 -s 7999999 | ./makebearoff1 -o br1.c; \
> > >     fi
> > > 
> > > Try running makebearoff -o 6 -s 7999999 | makebearoff1 -o br1.c
> > > and seeing if you get a reasonable looking br1.c, including the
> > > missing function.
> > 
> > Ok. Unfortunately, I still don't know that much about Makefiles. But
I'll
> > try to make up one that works for me.
> 
> I think we might need some input from Joern here.
> br1.c is under CVS, but that version doesn't have the static data

I don't see any file called br1.c there. It does need to be generated. Or do
you mean a different thing?

> table in it (it's only a few lines long). So if make runs, the
> if [ ! -f br1.c ]; then \
>   ./makebearoff -o 6 -s 7999999 | ./makebearoff1 -o br1.c; \
> fi
> 
> will not execute and br1.c doesn't get rebuilt. If you remove it, it
> does get rebuilt with the data installed. I'm not sure if br1.c should
> be under CVS (or, if so, if it should be one that's been built via
> running makebearoff). Joern can say whether or not it's necessary to
> have the bearoff database compiled into br1.c. If you want to build a
> br1.c with a database, some more work is needed:
> 
> I don't know if constructs like 
>   if [ ! -f br1.c ]; then
> are supported in a Windows build environment. 

No. Only with Cygnus. Then we have a bash, too.

> If not, then maybe:
> 
> Start with a copy of (it's short) br1.c. You may already have it, if
> not, it's under CVS

See above.

> If you don't want to get a fresh copy of makebearoff.c from CVS, then
> check that the version you have at about lines 1205 and 1210 don't
> have:
> "Number of positions    :%'12d\n"
> and
> "Size of cache          :%'12d\n"
> 
> (The single quotes between the % and the 12 are 'not a good thing' and
> should be deleted)

I have the newest version.

> Then you need to fix (or get a copy from CVS when I check it in, I'm
> testing a build now) of makebearoff1.c.
> 
> At line 188, change it from:
>       fprintf ( pfOut, "0x%02hhX, ", ac[ i ] );
> to:
>       fprintf ( pfOut, "0x%02hhX, ", (ac[ i ] & 0xff) );
> or you may get a few thousand warnings from your compiler about
> implicit truncation of an int to unsigned character.

I did get this yesterday, when I tried to compile for Solaris. Aha, that's
why. (Btw, there are problems, too. But this is a different story.)

> Comment out with a leading '#' the lines in your Makefile which read:
> 
> br1.c:  makebearoff makebearoff1
>         if [ ! -f br1.c ]; then \
>            ./makebearoff -o 6 -s 7999999 | ./makebearoff1 -o br1.c; \
>         fi
> 
> add br1.c to COMMON_SOURCES

configure doesn't work for me. I've tried to make up somthing by myself from
the generated Makefile on Solaris. But I've given up. It's way up over my
head. Sorry for your effort.

> Do a make.
> Then do:
> c:> makebearoff -o 6 -s 7999999 | makebearoff1 -o br1.c

I can't even build makebearoff or makebearoff1. I don't get over quite some
undefined references.

Thank you,

Holger

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
NEU: Mit GMX ins Internet. Rund um die Uhr für 1 ct/ Min. surfen!





reply via email to

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