Bug 199938 - PHP doesn't rebuild with libc-client support
Summary: PHP doesn't rebuild with libc-client support
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: libc-client
Version: 4.0
Hardware: x86_64
OS: Linux
Target Milestone: ---
: ---
Assignee: Joe Orton
QA Contact:
Depends On:
Blocks: 199947
TreeView+ depends on / blocked
Reported: 2006-07-24 14:44 UTC by Bastien Nocera
Modified: 2007-11-30 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2006-08-02 10:07:13 UTC

Attachments (Terms of Use)
log (223.00 KB, text/plain)
2006-07-24 15:29 UTC, Bastien Nocera
no flags Details
config.log (505.39 KB, text/plain)
2006-07-24 15:31 UTC, Bastien Nocera
no flags Details

Description Bastien Nocera 2006-07-24 14:44:29 UTC
On x86-64


When trying to rebuild PHP on x86-64, I get:
relocation R_X86_64_32 against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../lib64/libc-client.a: could
not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ext/imap/imap.la] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /home/bnocera/packages/tmp/rpm-tmp.75268 (%build)

Comment 1 Joe Orton 2006-07-24 14:50:49 UTC
Please attach the complete output of rpmbuild and the one of the config.log
files produced in the builddir.

Comment 2 Bastien Nocera 2006-07-24 14:56:16 UTC
Fixed using this patch to the spec file:

--- libc-client.spec    2005-11-23 20:57:56.000000000 +0000
+++ libc-client.spec.new        2006-07-24 15:55:37.000000000 +0100
@@ -77,6 +77,7 @@

 make lnp \

Comment 3 Bastien Nocera 2006-07-24 15:03:07 UTC
That's a "fix" as PHP shouldn't be linking to the .a either.
I'll post the config logs later on.

Comment 4 Bastien Nocera 2006-07-24 15:29:53 UTC
Created attachment 132923 [details]

rpmbuild logfile for php

Comment 5 Bastien Nocera 2006-07-24 15:31:12 UTC
Created attachment 132924 [details]

config.log grabbed from the build-cgi/ subdir

Comment 6 Joe Orton 2006-08-02 07:54:53 UTC
The only failure in these logs:

/home/bnocera/packages/BUILD/php-4.3.9/main/spprintf.c: In function
/home/bnocera/packages/BUILD/php-4.3.9/main/spprintf.c:272: error: void value
not ignored as it ought to be
make: *** [main/spprintf.lo] Error 1
make: *** Waiting for unfinished jobs....

... presumably from the patch for the varargs issue.

Comment 7 Bastien Nocera 2006-08-02 08:43:45 UTC
Urgh. Indeed.
It was an old patch, and I had the work-around from above applied, let me update
the logs then...

Comment 8 Bastien Nocera 2006-08-02 10:07:13 UTC
Can't seem to reproduce the problem, I guess you'll see it building php if it
was indeed a real bug.

Note You need to log in before you can comment on or make changes to this bug.