From: Rafal Kustra (rafal@utstat.uucp)
Date: 09/02/92


From: rafal@utstat.uucp (Rafal Kustra (summer student))
Subject: Re: Can't compile xv-2.21, help!
Date: Wed, 2 Sep 1992 05:49:02 GMT

In article <C-AMB.92Sep1101334@solitude.math.utah.edu> c-amb@math.utah.edu (Mark B. Alston) writes:
> I am having one hell of a time compiling programs for X. I
>have installed the xprog file and followed all instructions for
>placement of the libs. However, when trying to compile xv I recieve
>the following errors.
>
># make
>gcc -s -o xv xv.a libjpeg.a libtiff.a -lX11 -lm
>xv.a(xvjpeg.o): Undefined symbol _setjmp referenced from text segment
>xv.a(xvjpeg.o): Undefined symbol _setjmp referenced from text segment
>make: *** [xv] Error 1
>#
>
>Does xv need some other libs?
>
>I am running: linux 0.97pl2
> x11v1.1 with 8514/a patches
> gcc 2.2.2d
>
> I am also having problems with any X11 program I compile with
>shared libs core dumping all over the place. This seems to suggest
>that something is wrong with my libs, but what?
>--
>--------------------------------------------------------
> Mark Alston
> c-amb@math.utah.edu
>
> It is not just a riot of blots and blurs and
> disjointed jottings linked by spurts of speed...
> it only looks as like it as damn it.
>
> James Joyce, Finnegans Wake
>---------------------------------------------------------
>

Oh boy. First there is README and FAQ for GCC 2.2.2d (or
release note) YOU REALLY SHOULD READ IT!
It says that you can use old GCC (2.2.2) EXCEPT for one
thing: setjmp.
That has changed and if you look in the header you will
see that setjmp is now a macro. So you should compile
your program with -V 2.2.2 option, but make sure you
read FAQ on how to install 2.2.2d with 2.2.2 left.
Also, most X applications will only work when compiled
with -V 2.2.2 option - don't know why (FAQ? ;) but that's
life.
On the other hand I (with all my wisdom ;) ;) can't get
xv to work too! It hangs my server. I will try again
today with static library - heard it helps.
And hope it helps you . Good luck ... .

                                Rafal

-- 
/|| Numbers exist only in our minds. There is no physical entity that
 ||_is_ number 1. If there were, 1 would be in a place of honor in 
 || some great museum of science, and past it would file a steady
==== stream of mathematicians gazing at 1 in wonder and awe.