On Mon, 16 Aug 1999 [EMAIL PROTECTED] wrote: > Bonjour, Hello. > I did compile LyX (1.0.2) on my PC Linux, and on SGI 5.3 without any > problems but I cannot manage to get it compiled on SGI 6.2. It seems > to be a 32 bit library problem but i am not an expert. Everything goes > fine until the last linking of all the objects (*.o) to create the > "lyx" binary. Here I get warnings saying that my Xpm functions (like > XpmWriteFileFromImage) "preempt" (?) the definitions in libforms. This sounds like the libforms for SGI has been statically linked with libXpm. Did you try linking without the -lXpm? Just edit the src/Makefile by hand. > I had the idea to compile one more time LyX setting the CXXFLAGS to > -O0 and -n32 (before configure) so everything is compiled in new 32 > bit, but the result at the end is the same (..."preempt" definition in > libforms). I have to mention here that the CXXFLAGS are not taken into > account in the last linking (BUG ?) : CC -o lyx main.o ..., so i had > to add it by hand : CC -O0 -n32 -o lyx main.o ... If you don't do > this, it says that it cannot link new 32 bit objects without the -n32 > option. The last step is just calling the linker via the compiler so we ignore the compiler flags. You should set the linker flags LDFLAGS -- however configure sets this to the location of the xforms library so edit src/Makefile by hand and please report back if this helped. We'll then need to come up with a solution in the configure script. > Thank you and many thanks to LyX team for this great program :) You're welcome, Allan. (ARRae)