Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling mod_php on hppa
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
hcp
n00b
n00b


Joined: 03 Apr 2003
Posts: 62

PostPosted: Wed Sep 24, 2003 2:35 pm    Post subject: Compiling mod_php on hppa Reply with quote

Hi, I'm trying to compile php and other modules needed by squirrelmail on a hppa (B132). I get the following errormessage and then the compile aborts:

Code:
/usr/lib/libc-client.a(osdep.o)(.text+0xeff4): In function `ssl_onceonlyinit':
itimerspec/osdep.c:287: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc-lib/hppa-unknown-linux-gnu/3.2.2/../../../../hppa-unknown-linux-gnu/bin/ld: /usr/lib/libc-client.a(osdep.o): relocation R_PARISC_DPREL21L can not be used when making a shared object; recompile with -fPIC
/usr/lib/libc-client.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp4.la] Error 1

!!! ERROR: dev-php/mod_php-4.3.2-r4 failed.
!!! Function php_src_compile, Line 408, Exitcode 2
!!! compile problem


If I try tp add
Code:
-fPIC
I get errors stating that PIC cannot be compiled/found (I'm compiling again to make sure my memory is correct, it should take a few hours :-(

Any suggestions anyone?

Thanks

Hans-Christian
Back to top
View user's profile Send private message
hcp
n00b
n00b


Joined: 03 Apr 2003
Posts: 62

PostPosted: Thu Sep 25, 2003 9:10 am    Post subject: More info Reply with quote

Here is the error I get when trying to compile with
Code:
-fPIC
as suggested in the previous error:

Quote:
make: PIC: No such file or directory
make: *** No rule to make target `PIC'. Stop.

!!! ERROR: dev-php/mod_php-4.3.2-r4 failed.
!!! Function php_src_compile, Line 408, Exitcode 2
!!! compile problem


Still no go (obviously).

does anyone have any suggestions?

Hans-Christian
Back to top
View user's profile Send private message
dweigert
Guru
Guru


Joined: 04 Oct 2002
Posts: 369
Location: Somerset, NJ USA

PostPosted: Thu Sep 25, 2003 5:39 pm    Post subject: Reply with quote

Check the docs for GCC specific to the PA-RISC architecture. It should have all the flags used to generate shared objects. -fpic and -fPIC are slightly different, one may not be supported.

Dan
_________________
"Always remember to mount a scratch monkey..."
Back to top
View user's profile Send private message
hcp
n00b
n00b


Joined: 03 Apr 2003
Posts: 62

PostPosted: Fri Sep 26, 2003 8:21 am    Post subject: Not quite sure.. Reply with quote

..what you mean here, but then I'm not really updated on gcc anymore, especially no on parisc.

WHat exactly would need to be recompiled with the -fPIC switch (or -fpic)? From the output, it looks like it should either be mod_php itselv or c-client. So far I've tried both separately, but I'm trying both at the same time now, but it takes quite some time :-(

Am I even going in the right direction ,or is it actually not possible to compile mod_php on a parisc machine?

Hans-Christian
Back to top
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 393
Location: Sigma 957

PostPosted: Sat Sep 27, 2003 5:51 am    Post subject: Reply with quote

I recommend you file a bug on this with Gentoo's Bugzilla. That way, it gets assigned to the hppa team (and php team as well, most likely) and eventually resolved (in some form or another).

Offhand, a suggestion I'd try is to use a newer version of binutils (incase you're running a lower version). The latest version I know of in Portage is 2.14.90.0.6-r3. I say this because while I do not claim to be a binutils expert/guru, the relocation error looks like something binutils might output. You can also try looking through the binutils Mailling List to see if anyone else has encountered an issue like this, and possibly have posted a patch. The binutils ML may be found at http://sources.redhat.com/ml/binutils.

--Kumba
_________________
"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
Back to top
View user's profile Send private message
dweigert
Guru
Guru


Joined: 04 Oct 2002
Posts: 369
Location: Somerset, NJ USA

PostPosted: Mon Sep 29, 2003 4:23 pm    Post subject: Reply with quote

both -fPIC and -fpic are used in the creation of shared librarires... like libc.so So, it can be done for PA-RISC.

Dan
_________________
"Always remember to mount a scratch monkey..."
Back to top
View user's profile Send private message
dweigert
Guru
Guru


Joined: 04 Oct 2002
Posts: 369
Location: Somerset, NJ USA

PostPosted: Mon Sep 29, 2003 4:24 pm    Post subject: Reply with quote

both -fPIC and -fpic are used in the creation of shared librarires... like libc.so So, it can be done for PA-RISC.

Dan
_________________
"Always remember to mount a scratch monkey..."
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum