Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1788 - PHP ebuild needs update
Summary: PHP ebuild needs update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-14 21:10 UTC by Chayim Kirshen
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chayim Kirshen 2002-04-14 21:10:04 UTC
In order for the php ebuild to work (r6) you need to add: sys-devel/gettext.
Comment 1 Chayim Kirshen 2002-04-14 21:47:49 UTC
Again since I can't upload a file (in galeon, mozilla, or netscape). I'm sending
an email with my diffs.
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-15 10:56:48 UTC
Howdy, please send your diffs to my email address. I am the developer who will
be looking at this bug. Also, bug 71 in bugs.gentoo.org describes a work-around
which allows you to add attachments with no problems.

Matt
Comment 3 Chayim Kirshen 2002-04-15 19:13:59 UTC
Matthew, I've sent the file to your email address.  Enjoy!
Comment 4 Matthew Kennedy (RETIRED) gentoo-dev 2002-04-16 02:05:37 UTC
Chayim,

sys-devel/gettext is in R/DEPEND already and it is guarded by nls? (for
php-4.1.2-r7):

   nls? ( sys-devel/gettext )

So I tried with and without nls in USE, and it emerged fine for me. Have you
tried to emerge the -r7 ebuild? (run emerge rsync if you have to). If emerging
the latest php still causes an error for you, create a new bug report and make
sure you include as much information as you can about the error you're seeing
(error messages etc.)

In the meantime, I'll mark this bug as "works for me" because it has worked for
seemant@gentoo.org and also myself.

Matt
Comment 5 Vitaly Kushneriuk (RETIRED) gentoo-dev 2002-04-16 07:23:32 UTC
Still get this problem in php-4.1.2-r7:

checking whether to include GNU gettext support... yes
checking for bindtextdomain in -lintl... no
checking for bindtextdomain in -lc... no
configure: error: Unable to find required gettext library

from config.log:
-------------------------------------------------------------------------
configure:22824: checking for bindtextdomain in -lc
  configure:22843: gcc -o conftest -march=i686 -O3 -pipe  
-DHARD_SERVER_LIMIT=512 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DLINUX  
=22 -DTARGET="apache" -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -DEAPI 
-DEAPI_MM  -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/l  ib 
conftest.c -lc  -lgd -lttf -lhpi -lX11 -lXpm -lpng -lz -ljpeg -ldb-3 -lgdbm 
-lz -lcrypt -lresolv -lm -ldl -lnsl  -lresolv -lcry  pt 1>&5
  /usr/i686-pc-linux-gnu/bin/ld: cannot find -lhpi
  collect2: ld returned 1 exit status
  configure: failed program was:
  #line 22832 "configure"
  #include "confdefs.h"
  /* Override any gcc2 internal prototype to avoid an error.  */
  /* We use char because int might match the return type of a gcc2
-     builtin and then its argument prototype would still apply.  */
  char bindtextdomain();
  
  int main() {
  bindtextdomain()
  ; return 0; }
-----------------------------------------------

This test should succeed since bindtextdomain _is_ in the libc:
-----------
objdump -T /lib/libc-2.2.5.so  | grep bindtextdomain   
000250e0  w   DF .text	0000002e  GLIBC_2.0   bindtextdomain
-----------
The problem seems to be with the missing libhpi ( I think it's
something threads related ). The relevant code from ./configure that
adds libhpi to the LIBS:
------

case ttf in
   c|c_r|pthread*) ;;
   *)
  
    LIBS="-lttf -lhpi $LIBS"
--------------

That's what I found for now. don't have much time to play with it.




Comment 6 Chayim Kirshen 2002-04-16 08:12:50 UTC
Same as vitaly.  I can't get it to build.
Comment 7 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-16 21:47:12 UTC
Sorry guys, this was my screw up (Seemant). It is fixed, so please emerge rsync
then emerge php