Allan is correct. Stay the hell away from the xform RPM in RH's powertools directory. Compiling Lyx against that (xform-0.88-15) will bomb! Refer to my previous email. What I did was to build my own RPM for 0.89. Here is the .spec file for your enjoyment... For the RH newbies: 1. Copy xforms.spec to /usr/src/redhat/SPECS 2. Download ftp://ncmir.ucsd.edu/pub/xforms/linux-i386/elf/bxform-089-glibc2.1.tgz and copy it to /usr/src/redhat/SOURCES 3. cd /usr/src/redhat/SPECS; rpm -ba xforms.spec Off you go! You should get 3 RPMS in the end. Runtime, Demo, and Devel. Allan Rae wrote: > > > and get the xforms-glibc2.1 tarball for linux. RH always seems to keep > the xforms-glibc tarball instead which is incorrect. One way to help > ensure xforms has a bad name isn't it: bundling the wrong library with > your distro. > -- Wai-Sun "Squidster" Chia Unix/Web Developer Professional Services
Summary: A GUI toolkit based on Xlib for the X Window System. Name: xforms Version: 0.89 Release: 1 Group: Development/Libraries Copyright: non-commercial distributable (see Copyright) Source0: bxform-089-glibc2.1.tgz Source1: forms_sngl.ps.gz NoSource: 0 URL: http://world.std.com/~xforms/ Prefix: /usr BuildRoot: %{_tmppath}/%{name}-root Requires: /sbin/ldconfig %description XForms features a rich set of objects (like buttons, sliders, and menus) integrated into an easy and efficient object/event callback execution model, allowing for fast and easy construction of X applications. The library is extensible--new objects can easily be created and added. If you're installing xforms, you may want to also install xforms-devel, which is a near-WYSIWYG GUI builder which works with XForms. %package demos Group: Development/Libraries Summary: XForms demonstration programs. %description demos Xforms-demos includes the full source code to 50+ demonstration programs. If you plan on using XForms and you aren't an expert, you should download xforms-demos and take a look at them. %package devel Group: Development/Libraries Summary: An XForms GUI builder. %description devel Xforms-devel is a near-WYSIWYG GUI builder that can be used to design your UI and write the corresponding C code for you. If you're installing xforms, you may want to also install xforms-devel. If you want to install xforms-devel, you must also install xforms. %prep %setup -q -n xforms cp $RPM_SOURCE_DIR/forms_sngl.ps.gz . %build #make BIN_DIR=/usr/X11R6/bin \ # LIB_TOPDIR=/usr/X11R6 \ # all shlib demo make CCFLAG="-W -Wall -ansi -pedantic -pipe -O2 -fPIC -mcpu=i686 -march=i686" %install rm -rf $RPM_BUILD_ROOT install -m 755 -d $RPM_BUILD_ROOT/usr/X11R6/man/man5 install -m 755 -d $RPM_BUILD_ROOT/usr/X11R6/man/man1 install -m 755 -d $RPM_BUILD_ROOT/usr/X11R6/lib install -m 755 -d $RPM_BUILD_ROOT/usr/X11R6/bin install -m 755 -d $RPM_BUILD_ROOT/usr/include install -m 755 -d $RPM_BUILD_ROOT/usr/lib/xforms make \ BIN_DIR=$RPM_BUILD_ROOT/usr/X11R6/bin \ LIB_DIR=$RPM_BUILD_ROOT/usr/X11R6/lib \ MAN1_DIR=$RPM_BUILD_ROOT/usr/X11R6/man/man1 \ MAN5_DIR=$RPM_BUILD_ROOT/usr/X11R6/man/man5 \ HEADER_DIR=$RPM_BUILD_ROOT/usr/include \ install # fix broken symlink for man page rm $RPM_BUILD_ROOT/usr/X11R6/man/man5/forms.5 ln -s xforms.5 $RPM_BUILD_ROOT/usr/X11R6/man/man5/forms.5 install -c -m 0755 fd2ps/fd2ps $RPM_BUILD_ROOT/usr/X11R6/bin/fd2ps install -c -m 0644 fd2ps/fd2ps.1 $RPM_BUILD_ROOT/usr/X11R6/man/man1/fd2ps.1 install -c -m 755 FORMS/libforms.so.0.89 $RPM_BUILD_ROOT/usr/X11R6/lib/libforms.so.0.89 ln -sf libforms.so.0.89 $RPM_BUILD_ROOT/usr/X11R6/lib/libforms.so cp -a contrib $RPM_BUILD_ROOT/usr/lib/xforms cp -a mkconfig.h $RPM_BUILD_ROOT/usr/lib/xforms cp -a DEMOS $RPM_BUILD_ROOT/usr/lib/xforms cp -a FORMS/Readme $RPM_BUILD_ROOT/usr/lib/xforms cp -a FORMS/*.c $RPM_BUILD_ROOT/usr/lib/xforms cd $RPM_BUILD_ROOT/usr/lib/xforms && rm -f *.o */*.o */*/*.o %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) /usr/X11R6/lib/libforms.so.0.89 %doc Bugs Changes Copyright Readme /usr/X11R6/man/man5/forms.5* /usr/X11R6/man/man5/xforms.5* %files demos %defattr(-,root,root) %doc /usr/lib/xforms/contrib/Readme /usr/lib/xforms/mkconfig.h /usr/lib/xforms/DEMOS %files devel %defattr(-,root,root) /usr/X11R6/lib/libforms.so /usr/X11R6/lib/libforms.a /usr/X11R6/bin/fdesign /usr/X11R6/bin/fd2ps /usr/include/forms.h /usr/lib/xforms/glcanvas.c /usr/lib/xforms/image_jpeg.c /usr/lib/xforms/image_oquant.c /usr/X11R6/man/man1/fdesign.1* /usr/X11R6/man/man1/fd2ps.1* %doc /usr/lib/xforms/Readme %doc forms_sngl.ps.gz %changelog * Wed Jan 3 2001 Wai-Sun "Squidster" Chia <[EMAIL PROTECTED]> - updated to version 0.89 - added in new demo C files from FORMS to devel * Thu Aug 3 2000 Than Ngo <[EMAIL PROTECTED]> - fix to use libXpm in XFree-4.01 (Bug #15147) - move header files, fdesign, fd2ps in devel * Wed Aug 02 2000 Than Ngo <[EMAIL PROTECTED]> - added ldconfig stuff to %postun (Bug #15073) - added Requires /sbin/ldconfig * Mon Jul 24 2000 Than Ngo <[EMAIL PROTECTED]> - fix to build against XFree86-4.01 * Thu Jul 13 2000 Than Ngo <[EMAIL PROTECTED]> - use %{_tmppath} * Mon Jul 03 2000 Tim Powers <[EMAIL PROTECTED]> - fixed docs ending up in /usr/doc * Fri May 19 2000 Ngo Than <[EMAIL PROTECTED]> - fix bad symlink - compress man pages * Mon Aug 16 1999 Preston Brown <[EMAIL PROTECTED]> - fix broken man page symlink. * Tue Nov 10 1998 Jeff Johnson <[EMAIL PROTECTED]> - Build from (non-distributable) source. * Thu Oct 06 1998 Michael Maher <[EMAIL PROTECTED]> - cleaned up spec file - built for 5.2 * Thu May 14 1998 Michael Maher <[EMAIL PROTECTED]> - inspected package and buildroots. * Tue Jan 27 1998 Otto Hammersmith <[EMAIL PROTECTED]> - fixed fdesign being a directory - moved fdesign to devel package, - fixed broken symlink from libforms.so to libforms.so.0.88 * Mon Dec 8 1997 Otto Hammersmith <[EMAIL PROTECTED]> - fixed alpha library dependency problems. * Sun Dec 7 1997 Otto Hammersmith <[EMAIL PROTECTED]> - add provides for the .81 libs * Tue Dec 2 1997 Otto Hammersmith <[EMAIL PROTECTED]> - buildrooted * Wed Nov 19 1997 Otto Hammersmith <[EMAIL PROTECTED]> - updated to 0.88 * Tue Apr 8 1997 Michael Fulbright <[EMAIL PROTECTED]> Updated package to version 0.86.