LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
Compiling PHP5


Running Fedora Core 3.

Hey guys, im compiling PHP5.0.4 with these options,
Code:
./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 \
  --enable-mbstring
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.

Code:
/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: *** [libphp4.la] Error 1
[root@bellevueben php-4.3.11]#


Thanks,
Terroth.
 
Old 06-27-2005, 01:24 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Looks like a problem with
Code:
--with-cpdflib=/usr/local
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.

Tux
 
Old 06-27-2005, 01:35 PM   #3
Terroth
Member
 
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.
 
  


Reply



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 01:45 PM
php5 Hampster Linux - Software 4 01-09-2005 04:50 PM
Compiling PHP5 on FC2 imemyself Linux - Software 0 10-09-2004 06:20 PM
Error compiling PHP5 with MySQL Boby Linux - Software 3 09-10-2004 09:17 PM
Is PHP5 ready? costasm Programming 0 12-15-2003 08:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:39 AM.

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