I could not get pdf2swf to install on a fully patched registered version
of RHEL5. However, on an unpatched, fresh install of RHEL5 I was able to
get pdf2swf installed with no trouble.
This was my experience installing swftools-0.8.1. This is the error which
prevented pdf2swf from being installed
from the config.log
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| typedef signed long ac__type_sizeof_;
| static long int longval () { return (long int) (sizeof
(ac__type_sizeof_)); }
| static unsigned long int ulongval () { return (long int) (sizeof
(ac__type_sizeof_)); }
| #include <stdio.h>
| #include <stdlib.h>
| int
| main ()
| {
|
| FILE *f = fopen ("conftest.val", "w");
| if (! f)
| return 1;
| if (((long int) (sizeof (ac__type_sizeof_))) < 0)
| {
| long int i = longval ();
| if (i != ((long int) (sizeof (ac__type_sizeof_))))
| return 1;
| fprintf (f, "%ld\n", i);
| }
| else
| {
| unsigned long int i = ulongval ();
| if (i != ((long int) (sizeof (ac__type_sizeof_))))
| return 1;
| fprintf (f, "%lu\n", i);
| }
| return ferror (f) || fclose (f) != 0;
|
| ;
| return 0;
| }
configure:6377: error: cannot compute sizeof (signed)
See `config.log' for more details.
I don't know but I suspect it's the compiler? (maybe one of the standard
libraries?)
Patched RHEL5
gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)
ls -l /usr/include/stdio.h
-rw-r--r-- 1 root root 28341 Nov 5 14:29 /usr/include/stdio.h
ls -l /usr/include/stdlib.h
-rw-r--r-- 1 root root 34470 Nov 5 14:29 /usr/include/stdlib.h
sum -r /usr/include/stdio.h
58697 28
sum -r /usr/include/stdlib.h
00463 34
freetype-2.1.10 freetype-2.1.10.tar.gz
jpeg-6b jpegsrc.v6b.tar.gz
t1lib-5.1.2 t1lib-5.1.2.tar.gz
I had first installed the versions of freetype-devel from the disks then
installed the source version. configure did not complain about missing
freetype. On the unpatched RHEL5 install I did not install freetype-devel
from the disks.
Unpatched RHEL5
config.log
| #define SIZEOF_SIGNED 4
| #define SIZEOF_UNSIGNED 4
| #define SIZEOF_SIGNED_LONG 4
| #define SIZEOF_UNSIGNED_LONG 4
| #define SIZEOF_SIGNED_LONG_LONG 8
| #define SIZEOF_UNSIGNED_LONG_LONG 8
| #define HAVE_FT2BUILD_H 1
| #define HAVE_FREETYPE 1
| #define HAVE_FREETYPE_FREETYPE_H 1
| #define USE_FREETYPE 1
| /* end confdefs.h. */
gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)
ls -l /usr/include/stdio.h
-rw-r--r-- 1 root root 28341 Jan 15 2007 /usr/include/stdio.h
sum -r /usr/include/stdio.h
58697 28
ls -l /usr/include/stdlib.h
-rw-r--r-- 1 root root 34562 Jan 15 2007 /usr/include/stdlib.h
sum -r /usr/include/stdlib.h
54183 34
freetype-2.3.7 freetype-2.3.7.tar.bz2
jpeg-6b jpegsrc.v6b.tar.gz
swftools-0.8.1 swftools-0.8.1.tar.gz
t1lib-5.1.2 t1lib-5.1.2.tar.gz
Mike Clark
LINUX/UNIX Systems & DB Admin
Washington Western Bankruptcy Court
(206) 370-5381