Building OSLib under Linux
Philip Ludlam
philip at philipnet.com
Sun Mar 28 23:02:18 BST 2004
Tony van der Hoff wrote:
>Philip Ludlam <philip at philipnet.com> wrote in message
><4066BB30.6060809 at philipnet.com>
>
>[snip]
>
>
>>So what exactly is going on?
>>Does OSLib now require OSLib in order to build (which wasn't the case
>>under the previous build system) or have I missed something else?
>>
>>
>>
>No, well, sort of :-)
>
>You should have !OSLib/Tools/oslib, which is a portable, partial
>implementation of OSLib, written in C, which allows it to bootstrap itself,
>and contains, amongst many other things, macros.h. I've just checked out a
>fresh copy of the source, and it's definately there, so I suspect your
>checkout failed.
>
It didn't fail - I just didn't specify the correct options to cvs update
to get it to bring that down :-( .
However, I now get:
-bash-2.05b$ make -f GNUmakefile
make -C Tools
make[1]: Entering directory
`/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools'
make -C BindHelp
make[2]: Entering directory
`/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools/BindHelp'
gcc -Wall -funsigned-char -I.. -I../support -DUNIX -DEXECUTE_ON_UNIX
-D__swi -DTRACE=0 \
-DDEBUG=0 -o BindHelp.o -c BindHelp.c
BindHelp.c:179: `index' redeclared as different kind of symbol
/usr/include/string.h:252: previous declaration of `index'
BindHelp.c:179: warning: `index' was declared `extern' and later `static'
make[2]: *** [BindHelp.o] Error 1
make[2]: Leaving directory
`/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools/BindHelp'
make[1]: *** [BindHelp] Error 2
make[1]: Leaving directory `/home/riscos/riscos/oslib/RO-OSLib/!OsLib/Tools'
make: *** [Tools] Error 2
Is that due to the version of gcc I'm running?
-bash-2.05b$ gcc -v
Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
Yours,
Phil L.
More information about the oslib-user
mailing list