alliance-support '1999
compiling alliance on linux


Hakan Ardo (hakan@debian.org)
Sun, 19 Sep 1999 15:35:57 +0200

Hi, I've compiled alliance on a debian linux box with egcs-1.1.2 and glibc 2.1.2 (libc6). I used alliance-3.2b-common.tar.gz and alliance-3.2c-sources.tar.gz as a base (there was no alliance-3.2c-common.tar.gz at the ftp site). I ran into some problems but after modifying the following files the stuff compiled, but with a lot of warnings: alliance/share/etc/libraries.mk alliance/sources/genview/gcc-1.42/gcc.c alliance/sources/mbkvrlog/drive_vlog.c alliance/sources/grog/vtisim.c alliance/sources/mbk/mbk_util.c Included is a patch with my changes, also the shared libraries dons't seem to be created anywhere in the makefile. I did that by hand using the following perl script: #!/usr/bin/perl foreach (@ARGV) { if (/^(.*)(\d)(\d)(\d)\.a$/) { $n="$1$2$3$4"; system("gcc -shared -Wl,-soname,$n.so.$2 -o $n.so.$2.$3.$4 $_\n"); system("ln -s $n.so.$2.$3.$4 $n.so.$2.$3"); system("ln -s $n.so.$2.$3 $n.so.$2"); } } -- --------------------------------------------------------------- Name: Hakan Ardo E-Mail: hakan@debian.org WWW: http://www.ub2.lu.se/~hakan/sig.html Public Key: Try "finger hakan@master.debian.org" Fingerprint: E9 81 FD 90 53 5C E9 3E 3D ED 57 15 1B 7E 29 F3 Interests: WWW, Programming, 3D graphics Thought for the day: As long as one understands, the spelling does not matter :-) ---------------------------------------------------------------

diff -U3 alliance.org/share/etc/libraries.mk alliance/share/etc/libraries.mk --- alliance.org/share/etc/libraries.mk Tue Dec 2 12:13:04 1997 +++ alliance/share/etc/libraries.mk Sun Sep 19 11:27:15 1999 @@ -9,9 +9,9 @@ # general purpose utilities # # ###---------------------------------------------------------### -MUT_L = -lMut321 -MUT_LIB = libMut321.a -MUT_H = mut321.h +MUT_L = -lMut323 +MUT_LIB = libMut323.a +MUT_H = mut323.h # ###---------------------------------------------------------### # functions related to cone net-list representation : # @@ -90,12 +90,12 @@ # - mpu : user level functions # # ###---------------------------------------------------------### -MPH_L = -lMph406 -MPH_LIB = libMph406.a -MPH_H = mph406.h +MPH_L = -lMph408 +MPH_LIB = libMph408.a +MPH_H = mph408.h -MAP_L = -lMap405 -MAP_LIB = libMap405.a +MAP_L = -lMap406 +MAP_LIB = libMap406.a MCP_L = -lMcp405 MCP_LIB = libMcp405.a MMG_L = -lMmg402 diff -U3 alliance.org/sources/genview/gcc-1.42/gcc.c alliance/sources/genview/gcc-1.42/gcc.c --- alliance.org/sources/genview/gcc-1.42/gcc.c Thu Apr 2 19:03:50 1998 +++ alliance/sources/genview/gcc-1.42/gcc.c Sun Sep 19 11:46:29 1999 @@ -1933,7 +1933,7 @@ char *name; { extern int errno, sys_nerr; - extern char *sys_errlist[]; + /* extern char *sys_errlist[]; */ /*Definition already excists in stdio.h*/ char *s; if (errno < sys_nerr) @@ -1947,7 +1947,7 @@ char *name; { extern int errno, sys_nerr; - extern char *sys_errlist[]; + /* extern char *sys_errlist[]; */ /*Definition already excists in stdio.h*/ char *s; if (errno < sys_nerr) @@ -1961,7 +1961,7 @@ char *name; { extern int errno, sys_nerr; - extern char *sys_errlist[]; + /* extern char *sys_errlist[]; */ /*Definition already excists in stdio.h*/ char *s; if (errno < sys_nerr) diff -U3 alliance.org/sources/mbkvrlog/drive_vlog.c alliance/sources/mbkvrlog/drive_vlog.c --- alliance.org/sources/mbkvrlog/drive_vlog.c Thu Apr 2 18:44:48 1998 +++ alliance/sources/mbkvrlog/drive_vlog.c Sun Sep 19 10:57:52 1999 @@ -35,6 +35,7 @@ #include MLO_H #include <string.h> #include <ctype.h> +#include <time.h> static char name_buffer[255]; static char vec_name_buffer[255]; diff -U3 alliance.org/sources/grog/vtisim.c alliance/sources/grog/vtisim.c --- alliance.org/sources/grog/vtisim.c Thu Apr 2 19:04:14 1998 +++ alliance/sources/grog/vtisim.c Sun Sep 19 10:49:17 1999 @@ -83,7 +83,7 @@ srandom(getpid()); for (i = 0; i < nw; i++) { data[i].low = data[i].high = 0; - for (n = 0; n < BITS(long); n++) { + for (n = 0; n < (8*sizeof(long)); n++) { (data[i].low) |= (((random() % 10) < pattern ? 0 : 1) << n); (data[i].high) |= (((random() % 10) < pattern ? 0 : 1) << n); } diff -U3 alliance.org/sources/mbk/mbk_util.c alliance/sources/mbk/mbk_util.c --- alliance.org/sources/mbk/mbk_util.c Thu Apr 2 18:44:26 1998 +++ alliance/sources/mbk/mbk_util.c Sun Sep 19 10:48:39 1999 @@ -77,7 +77,7 @@ static chain_list *NAME_HASHTABLE[HASHVAL]; static char buffer[BUFSIZ]; /* buffer for namealloc strcpy */ static char str[BUFSIZ]; /* buffer for concatname */ -static char tolowertable[1 << BITS(char)]; /* number of chars */ +static char tolowertable[1 << (8*sizeof(char))]; /* number of chars */ /******************************************************************************* * fonction handler() *

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 22 March 2001.