Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 127062 - pptpconfig needs php compiled with USE=pcntl
Summary: pptpconfig needs php compiled with USE=pcntl
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 02:52 UTC by Raphael
Modified: 2006-03-23 15:02 UTC (History)
2 users (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 Raphael 2006-03-21 02:52:44 UTC
I am trying to get pptpconfig working in my amd64 system.  Simply getting it to emerge was a challenge..

I tried the following to get pptpconfig emerged.

After many failures I tried

emerge dev-php4/php-gtk

I had to add the cli, dba and gd use flags to get it to compile

Then it told me to go back and reemerge dev-lang/php with 

cli, pcre and session use flags

which I did.  Then I tried emerge dev-php4/php-gtk again.

Then I found out that ufed is so buggy that it lists use flags as enabled which
are in fact not at all!

So I went back editing /etc/make.conf by hand and started again...

Then I discovered that in fact I should have done

emerge =dev-lang/php-4.4.2

to force it to install the right version.

Finally I got pptpconfig installed.

Then it wouldn't run complaining that it needed pcntl for php. So I started again with that use flag.

Now it runs but when you try to stop it by pressing the stop button it crashes saying...

Fatal error: Call to undefined function:  posix_kill() in /usr/bin/pptpconfig.php on line 1525


Any ideas?

Raphael

emerge --info

Portage 2.1_pre6-r4 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r3, 2.6.16-rc5 x86_64)
=================================================================
System uname: 2.6.16-rc5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre12
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8  -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=k8  -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/  ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d a52 aac alsa artworkextra avi berkdb bindinst bitmap-fonts bootsplash browserplugin cli crypt cups dba dri dv dvd dvdr dvdread eds emboss encode fame firefox font-server foomaticdb fortran gd gif ginac gpm gs gstreamer gtk gtk2 icq imlib ipv6 irc jabber jpeg kde lzw lzw-tiff mp3 mpeg msn ncurses nls nptl nsplugin offensive oggvorbis opengl oss pam pcntl pcre pdflib perl png python qhull qt quicktime readline real rss sdl session spell ssl subtitles tcpd theora tiff truetype-fonts type1-fonts unicode usb wxgtk1 wxwindows x264 xpm xv yahoo zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2006-03-21 04:02:47 UTC
well, it seems you also need posix in your USE flags.
Comment 2 Alin Năstac (RETIRED) gentoo-dev 2006-03-21 23:38:32 UTC
can you please tell me if it worked?
Comment 3 Raphael 2006-03-22 01:15:25 UTC
pptpconfig did compile properly after adding all the USE flags discussed in this bug and re emerging the php packages. The initial problem was not this though. It was that you couldn't do

"emerge pptpconfig" at all 

(The error was that some version of php was blocking some other version of php. No version of php was installed at the time.)

This appears to be due to the pptpconfig ebuild using the old php setup it seems. See 

RDEPEND="|| ( dev-php4/php-gtk dev-php/php-gtk )


Raphael
Comment 4 Alin Năstac (RETIRED) gentoo-dev 2006-03-22 02:05:50 UTC
then pptpconfig requires php to be build with posix USE flag, right? 

dev-php4/php-gtk must be the preferred package since it is the one used by the current stable&official php package, dev-lang/php.
anyway, I don't see you mention any blocks in comment #0 (not that would be considered bugs if you had blocks).
Comment 5 Raphael 2006-03-22 03:27:41 UTC
Yes about the USE flags (don't forget pcntl too).

On the question of whether it is actually possible to "emerge pptpconfig" I was told by people on irc that is would be obvious to you what the problem was if I pasted the relevant line from the ebuild. Perhaps it would be better if one of them comments now.  I'll see if I can find any volunteers.  (Note the the block was with a package that was NOT installed. I.e. not a normal block).

Raphael
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-03-22 12:31:32 UTC
(In reply to comment #3)
(In reply to Comment #4)
> (The error was that some version of php was blocking some other version of php.
> No version of php was installed at the time.)

Because dev-php4/php isn't keyworded for amd64. I've already pointed the reporter  to bug Bug 121213 once...
Comment 7 Raphael 2006-03-22 13:11:21 UTC
I am the last poster on that bug as you can see.

Thanks for the tips. I have it all installed fine as I said. Just trying to help the next guy/girl. 

Raphael

Comment 8 Alin Năstac (RETIRED) gentoo-dev 2006-03-23 15:02:23 UTC
fixed in cvs. thanks!