On Friday 07 June 2002 11:17 am, Juergen Vigna wrote: > On 07-Jun-2002 Jean-Marc Lasgouttes wrote: > > What are the versions of xforms that are linked against -ljpeg? > > Actually, I use the static version of 0.9999 here. Is the latest rc4 > > still linked against -jpeg? This is an xforms bug IMO and if it > > appears that it is fixed in 1.0 I do not want to catter for the > > behaviour of the 1.0rcX (or 0.9999 either). > > Why an xforms bug? This is a problem of the binary distribution on > a system. Why should xforms statically link in libjpeg?
It shouldn't, but it should be linked as a shared object. To quote a recent mail on the xforms list: ======================================================= If I build it with my patch, I get a library like so: $ ldd libforms.so.1.0 libc.so.6 => /lib/libc.so.6 (0x2ab53000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x2ac70000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x2ac90000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000) So it's not static. If I build it without patching, I get: $ ldd libforms.so.1.0 libc.so.6 => /lib/libc.so.6 (0x2ab53000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000) There are no refs to Xpm or jpeg, but then building an app that itself doesn't use Xpm leads to the following error: cc -o xcolmix.new xcolmix.o callbacks.o initforms.o makecolor.o usage.o design.o loadlookupbrowser.o -lforms -lX11 -lm -L /usr/X11R6/lib /usr/lib/libforms.so: undefined reference to `XpmCreatePixmapFromData' ======================================================= xforms 1.0 should cure this particular problem. Thereafter whether WE use fl_enable_jpeg or not depends only on whether we can find the jpeg libs. Angus