Hey,
I'm trying to compile idst on solaris, and am running into a few problems:
1) there was no config for sparc/solaris, so I "guessed" one .. mostly by
copying other parts. The following seems to work .. a little
file: object/boot/configure
OFLAGS=${OFLAGS:-"-O"}
O3FLAGS=${O3FLAGS:-"-O"}
PGFLAGS=${PGFLAGS:-"-O"}
SYSARCH="sparc"
CC=${CC:-"gcc"}
PREFIX=${PREFIX:-"/usr/local/lib/idc/$TARGET/"}
CFLAGS=${CFLAGS:-"-g -Wall -Wreturn-type -Werror -D_GNU_SOURCE=1
-Wno-unused-value"}
LDFLAGS=${LDFLAGS:-"-export-dynamic"}
LDLIBS=${LDLIBS:-"-ldl -lm -lpthread"}
CCFLAGS_O=${CCFLAGS_O:-"-c"}
OBJEXT_O=${OBJEXT_O:-".o"}
LDFLAGS_SO=${LDFLAGS_SO:-"-shared"}
OBJEXT_SO=${OBJEXT_SO:-".so"}
SYSOS="solaris"
2) PATH_MAX in object/boot/src/StringIO.o.c ; more info about that here:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15082
My "fix" is to replace this macro with the value it's supposed to be ..
happily compiling along again
3) Config seems to be ignored after some point, with the following line as a
result
cc -g -Wall -Wreturn-type -Werror -D_GNU_SOURCE=1 -Wno-unused-value -w -g -O
-I../stage1//include -DNDEBUG -DSYSARCH=\"sparc\" -DSYSOS=\"solaris\"
-fno-strict-aliasing -DPREFIX='"/usr/local/lib/idc/sparc-sun-solaris2.10/"'
libid.c -c -o ../stage1/libid.o
cc: illegal option -Wall
make[2]: *** [../stage1/libid.o] Error 1
4) Make clean causes a hang
/bin/sh -ec 'cd mpint; make clean'
make[3]: idc: Command not found
make[3]: Entering directory `/path/to/source/function/objects/mpint'
make[3]: idc: Command not found
rm -f *.o *.a *~
make[3]: Leaving directory `/path/to/source/function/objects/mpint'
make[2]: Leaving directory `/path/to/source/function/objects'
<and here we hang>
If anyone has a clue on how to solve these last 2 things, I'd be happy to
hear them.
The only files I've altered slightly are object/boot/configure and
object/boot/src/StringIO.o.c, as described.
Thanks in advance,
Roel Messiant
_______________________________________________
fonc mailing list
[email protected]
http://vpri.org/mailman/listinfo/fonc