Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-26-2005, 05:05 PM   #1
Registered: Mar 2004
Posts: 47

Rep: Reputation: 15
Compiling PHP5

Running Fedora Core 3.

Hey guys, im compiling PHP5.0.4 with these options,
./configure \
  --with-apxs2=/usr/local/apache2/bin/apxs \
  --with-mysql=/usr/local/mysql  \
  --with-mysqli=/usr/local/mysql/bin/mysql_config  \
  --with-mysql-sock=/tmp/mysql.sock \
  --with-sqlite \
  --enable-sqlite-utf8 \
  --with-zlib \
  --with-zlib-dir \
  --with-bz2 \
  --with-gd \
  --enable-gd \
  --enable-gd-native-ttf \
  --with-jpeg-dir=/usr/local \
  --with-png-dir=/usr/local \
  --with-ttf \
  --with-freetype-dir=/usr/local \
  --with-iconv=/usr/local \
  --with-curl=/usr/local \
  --enable-track-vars \
  --with-gettext \
  --with-config-file-path=/usr/local/apache2/conf \
  --enable-trans-id \
  --enable-ftp \
  --with-cpdflib=/usr/local \
Everything is setup correctly for those. The configure goes great, but the make is where I run into trouble... This is where I get hung up, and I am lost as of what to do, it says recompile with -fPIC, but im not sure what that means.

/usr/bin/ld: /usr/local/lib/libcpdf.a(cpdfInit.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libcpdf.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [] Error 1
[root@bellevueben php-4.3.11]#

Old 06-27-2005, 02:24 PM   #2
Senior Member
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,153

Rep: Reputation: 60
Looks like a problem with
switch. This could happen if

1. You don't have it installed
2. You don't have devel package installed...

You could try removing that switch and try recompile.

Old 06-27-2005, 02:35 PM   #3
Registered: Mar 2004
Posts: 47

Original Poster
Rep: Reputation: 15
Yes, I have it compiled without that switch for the time being, but it is nessesary that I have that switch for the scripts I will be running. I have the tarball installed.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 compiling problems Ephracis Linux - Software 10 02-10-2005 02:45 PM
php5 Hampster Linux - Software 4 01-09-2005 05:50 PM
Compiling PHP5 on FC2 imemyself Linux - Software 0 10-09-2004 07:20 PM
Error compiling PHP5 with MySQL Boby Linux - Software 3 09-10-2004 10:17 PM
Is PHP5 ready? costasm Programming 0 12-15-2003 09:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration