From: robert@cpuserver.acsc.com (Robert Grant) Subject: APPS: Multiverse compilation update..... Date: 31 Mar 1993 22:29:14 GMT Organization: USCACSC, Los Angeles Hi everyone, This is information for those people trying to compile Multiverse and getting depressed....:-( Thanks go to Sean Fuller (FULLER@aedc-vax.af.mil) for these fixes for a Solaris 2.1 and GNU C (2.3.3?) N.B. This list may not be exhaustive: 1)* both inside.h and outside.h contain #include ; the semi-colon is a problem with GNU C, I think it will probably cause other compilers to choke also. 2)# messages.c needs to have filio.h included (oh, by the way Sun solaris 2.1 is UNIX System V Release 4. 3)# my machine does not have strings.h, it uses string.h instead 4)* all of the make files use cc, I changed them to use $(CC) instead and set it in my environment 5)# my machine does not have ranlib, many other machines dont, to fix this I changed all occurances of it in makefiles to $(RANLIB) and then I defined this in my environment. A lot of software does this because ranlib is not on all machines 6)# M_PI is not in my math.h so I defined it as 3.14159265 this was referenced in bezier.c, cone.c etc. 7)# I had to include my X11 include path in all of the make files this could be done with a variable, mine is /usr/openwin/include it is this on all suns 8)* in objectmanager.h, the event_u should be tagged as a union not a struct 9)# to get the file control things like O_RDONLY you need to include fcntl.h on my machine, and any other sys5r4 machine. these are used in ReadIndPoly.c WriteGeneric.c ReadIndexed.c 10)# both libServer and libGraphics define findObject and addObject this will not compile unless one of them is removed 11)# because of circular references between libraries I had to include them multiple times in order to resolve the references 12)# I had to link -lelf -lsocket -lucb -lnsl in the link process 13)# I took findObject and addObject out of Graphics lib this allowed me to build everything except for the client. To build the client I put them back in to graphics lib. 14)# I linked clients with typeParse.o also * Items are fixed in 1.0.1 (Not many is it? :-() # Will be fixed in 1.0.2 (Hopefully :-)) BTW Items 10, 13 & 14 are related. Thanks go to Derek Jacoby (jacoby@odin.mda.uth.tmc.edu) for these fixes for gcc (don't know the machine or os) 1)# The problem with the def'n of NULL was solved by placing the line #include at the start of graphics.c, inside.c, and face.c 2)# in graphics.c and ext_biwing.c I placed the lines #define TRUE (1) and #define FALSE (0) 3)* in inside.h and outside.h I was getting an error telling me that #include requires either "fname" or . It turns out that you had a semicolon after the #include statement in each of those files. When I removed the semicolons that problem was solved. 4)* I got a funny error in objectManager.h. it said: ../../include/objectManager.h:69: `event_u' defined as wrong kind of tag I wasn't sure what caused this, but it seemed like another prototyping problem and when I removed the prototype it quit giving me that error. 5)# It tells me that _addObject and findObject are multiply defined. This one isn't quite compiling yet but should be with 1.0.2 when it's released! The release of 1.0.2 shouldn't be long - but perhaps everyone should try to get somewhere so that as many enhancements are rolled into the next release as possible...? Robert. robert@acsc.com