You are not logged in.

#1 2005-12-26 22:15:34

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

[Arch64] porting php 5.1.1

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.0.3/../../../../lib64/libc-client.a(osdep.o): 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-pc-linux-gnu/4.0.3/../../../../lib64/libc-client.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Fehler 1
make: *** Warte auf noch nicht beendete Prozesse...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.0.3/../../../../lib64/libc-client.a(osdep.o): In function `ssl_onceonlyinit':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
==> ERROR: Build Failed.  Aborting...

From what I´ve found we should recompile "libc-client.a" with fPIC. May that can be?

Offline

#2 2005-12-27 00:23:54

syamajala
Member
From: here, there, everywhere
Registered: 2005-01-25
Posts: 617
Website

Re: [Arch64] porting php 5.1.1

try building php with -fPIC put make CFLAGS="-fPIC" in the PKGBUILD

Offline

#3 2006-01-22 10:49:24

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [Arch64] porting php 5.1.1

The problem still exists. Don't know where to start. I've googled that I have recompile one of the libs that php wants to link.

libc-client.a(osdep.o) is a symbolic link to /usr/lib64/c-client.a

[root@workstation64 nvidia]# pacman -Qo c-client.a
No package owns c-client.a

It must be one of the base packages because of the time stamp:

[root@workstation64 nvidia]# ls -l /usr/lib/c-client.a
-rw-r--r--  1 root root 1229010 2005-09-02 10:09 /usr/lib/c-client.a
[root@workstation64 nvidia]# ls -l /usr/lib64/c-client.a
-rw-r--r--  1 root root 1229010 2005-09-02 10:09 /usr/lib64/c-client.a
[root@workstation64 nvidia]# ls -ls /usr/lib64/libc-client.a
0 lrwxrwxrwx  1 root root 10 2005-11-28 01:11 /usr/lib64/libc-client.a -> c-client.a

What package can that be???

Offline

#4 2006-01-22 10:54:07

dojo
Member
Registered: 2005-11-02
Posts: 97

Re: [Arch64] porting php 5.1.1

Hi Andy,

The imap package.

http://archlinux.org/packages.php?op=files&id=4159

Greets

Sunnemer

Offline

#5 2006-01-22 15:49:18

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [Arch64] porting php 5.1.1

Thx. The error is now located. Updating imap to the current version makes no difference. But now I know where to search...

I wonder why whether pacman nor the online search for packages fid the package for this file roll

Offline

#6 2006-01-22 16:27:32

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,641

Re: [Arch64] porting php 5.1.1

Got it. Had to add -fPIC to the CFLAGS for imap pkg. php is  done and running here smile

Offline

Board footer

Powered by FluxBB