[Xitami] Building Xitami

Elliott Potter xitami@lists.xitami.org
Mon, 3 May 2004 13:23:29 -0500 (EST)


> > > > I found an old c.cmd for OS/2 but when using that I get:-
> > > >
> > > > [C:\ux2bs\workdir\xiopen]sh boomake build
> > > > Building application...
> > > > Compiling -g.c...
> > > > Incorrect function
> > > > [...]
> > > > A file called -g.lst containing:-
> > > >
> > > > gcc: No input files
> > > >
> > > >
> > > > also gets created so I suspect parameters are not getting passed properly
> > > > or something else is missing.
> > > >
> > > > Do I need something called c.conf? If so where do I find an example of
> > > > that?
> > >
> > > In each subdirectory, edit the boomake file and where it says "COPTS=-g"
> > > remove the "-g" so it just says "COPTS=" ... this also happened on my
> > > system (bash).
> > >
> >
> > I'll also note that if you want to add compiler flags you can edit the
> > "c" file in each directory and put them in the "CCOPTS" field ... it
> > seems to work OK there.
>
> I have v2.5c1 now. There is only a boomake in the top level directory.
> When I use it I get:-
>
>
> [C:\ux2bs\workdir\xiopen]sh boomake build

I got the source tarball from xitami.com; it includes a boomake file in
each subdirectory:
xiopen/boomake
gsl/boomake
smt/boomake
studio/boomake
xiadmin/boomake
sfl/boomake

... then in the top level directory there are those 6 directories plus a
build.sh and a build.bat.  Running build.sh just enters each
subdirectory and runs "sh boomake build install."



I've found some notes that I wrote down when building xitami 2.5c1;
here's the process I used:

1) get "c" from xitami-2.4d9 and put a copy in each subdirectory
2) in each subdirectory, edit boomake and remove "-g" from the COPTS
line
3) Apply patch [posted a couple of days ago]
4) add "#include <math.h>" to gsl/ggeval.c and gsl/ggstrn.c or gcc fails
on the floor() function
5) cd <path>/sfl
   CCNAME=gcc CCPRODLEVEL=production CCOPTS="<CFLAGS>" sh boomake build
	install
6) cd ../gsl
   CCNAME=gcc CCPRODLEVEL=production CCOPTS="<CFLAGS>
	-I<installpath>/include -L<installpath>/lib -lm" sh boomake build
	install
7) cd ../smt
   <repeat>
	cd ../studio
	<repeat>
	cd ../xiadmin
	<repeat>
	cd ../xiopen
	<repeat>

If there were errors in steps 5, 6, or 7, add
CCLIBS="<installpath>/lib/libgsl.a \
   <installpath>/lib/libsfl.a \
   <installpath>/lib/libxac.a \
   <installpath>/lib/libstu.a \
   <installpath>/lib/libsmt.a"
to your big command line (CCNAME, CCPRODLEVEL, CCOPTS, etc) and try again.



... of course it's worth noting that the resulting server served static
pages but wouldn't serve php.  Don't know if that's related or not.
--
Elliott

> It seems as though the headers are missing.
>
> I'm obviously using the wrong file. Can you give me a URL for the archive
> you think works?
>
>
>
>
> > --
> > Elliott
>
>
> --
> John
>
>
>
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
>