Bug 55209 - Can't compile on redhat enterprise 5.6
Summary: Can't compile on redhat enterprise 5.6
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) other
: medium blocker
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-22 02:41 UTC by pat
Modified: 2012-09-22 08:50 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description pat 2012-09-22 02:41:18 UTC
Hi,
I'm trying to compile the latest version of poppler (0.20.4) on RH Enterprise 5.6 and cant get it to compile at all.

I've tried all teh versions back until 10.7 which is the first one i got to build and install.

Can anything be done to get teh latest version working on RHE5?

Thanks,
Pat
Comment 1 Albert Astals Cid 2012-09-22 06:48:22 UTC
For starters you can paste the error you are getting.
Comment 2 pat 2012-09-22 07:55:25 UTC
my bad:


[root@www poppler-0.20.4]# ./configure
-bash: ./configure: /bin/sh: bad interpreter: Permission denied
[root@www poppler-0.20.4]# sh ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... //bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/tmp/poppler-0.20.4':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Comment 3 Albert Astals Cid 2012-09-22 08:07:40 UTC
Try with bash instead of sh? Or try to compile with cmake instead of autotools?
Comment 4 pat 2012-09-22 08:13:50 UTC
bash gives this (if i've done it right):

[root@www poppler-0.20.4]# bash ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... //bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/tmp/poppler-0.20.4':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

what command am i using for cmake? (fontend dev, not linux, apologies)
Comment 5 Albert Astals Cid 2012-09-22 08:32:06 UTC
For cmake usage
cd poppler_folder
mkdir build
cd build
cmake ..
make

Also which gcc version do you have?
Comment 6 pat 2012-09-22 08:35:04 UTC
no joy:


[root@www lib]# cd /tmp/poppler-0.20.4
[root@www poppler-0.20.4]# mkdir build
[root@www poppler-0.20.4]# cd build
[root@www build]# cmake ..
-bash: cmake: command not found
[root@www build]# cmake
-bash: cmake: command not found
[root@www build]# cmake ..
-bash: cmake: command not found
[root@www build]# make
make: *** No targets specified and no makefile found.  Stop.
[root@www build]# cd ../
[root@www poppler-0.20.4]# make
make: *** No targets specified and no makefile found.  Stop.
[root@www poppler-0.20.4]# 


gcc

[root@www poppler-0.20.4]# gcc -v
Using built-in specs.
Target: x86_64-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 --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
Comment 7 Albert Astals Cid 2012-09-22 08:48:31 UTC
gcc 4.1 is ancient i'm not sure we want to support that

For cmake you might want to install cmake before using it.

Anyway this is not a bug per se, you're just using old versions of everything thus the last version of poppler that compiles is an old one. I am sure you could somehow convince newer versions of poppler to compile on older versions of stuff like RedHat carries, but as said this is not a bug. You might want to post to the mailing list in case someone has been in the same situation than you.
Comment 8 pat 2012-09-22 08:50:23 UTC
that all makes sense. thanks for the help :)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.