Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87275 - amd64: sandbox violation in php-4.3.10 + USE=imap + c-client-2002e-r2
Summary: amd64: sandbox violation in php-4.3.10 + USE=imap + c-client-2002e-r2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 87270 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-30 07:02 UTC by wiktorw
Modified: 2005-04-21 15:14 UTC (History)
2 users (show)

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


Attachments
# emerge info (emerge.info,2.42 KB, text/plain)
2005-03-30 07:03 UTC, wiktorw
Details
Build output, file: /var/log/portage/2918-php-4.3.10.log (php-4.3.10.log,14.32 KB, text/plain)
2005-03-30 07:09 UTC, wiktorw
Details
Sandbox error log, file: /tmp/sandbox-dev-php_-_php-4.3.10-32260.log (php.sandbox.log,34 bytes, text/plain)
2005-03-30 07:11 UTC, wiktorw
Details
php config log, file: /var/tmp/portage/php-4.3.10/work/php-4.3.10/config.log (php.config.log,66.87 KB, text/plain)
2005-03-30 07:34 UTC, wiktorw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wiktorw 2005-03-30 07:02:35 UTC
I'm trying to emerge php, having USE=imap as one of many other flags.
The portage chooses such stable combination:

net-libs/c-client-2002e-r2
dev-php/php-4.3.10

But php is unable to finish its configure step. Instead I get a sandbox
violation, saying that there is no /usr/lib/libc-client.a file.

However, when I unmask c-client package in /etc/portage/package.keywords:
net-libs/c-client ~amd64
another combination is chosen:

net-libs/c-client-2004a-r1
dev-php/php-4.3.10

In such environment php package compiles.

I tried also:

# emerge -C c-client
# emerge uw-imap
# emerge php

and it works too (I mean, compiles). But I don't really need IMAP server...
So I decided to file a bug report.

Reproducible: Always
Steps to Reproduce:
1. USE=imap
2. emerge php

Actual Results:  
...
checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
configure: error: Cannot find imap library (libc-client.a). Please check your
IMAP installation.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/php-4.3.10/work/php-4.3.10/config.log

!!! ERROR: dev-php/php-4.3.10 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-dev-php_-_php-4.3.10-27392.log"

symlink:   /usr/lib/libc-client.a
--------------------------------------------------------------------------------


Expected Results:  
Expected is php compiled cleanly.

Probably net-libs/c-client-2004a-r1 should be marked stable on amd64.
At that point this bug will be no longer valid.

I'll post emerge info as attachment, as well as php error logs, just in case.
Comment 1 wiktorw 2005-03-30 07:03:49 UTC
Created attachment 54837 [details]
# emerge info
Comment 2 wiktorw 2005-03-30 07:09:24 UTC
Created attachment 54839 [details]
Build output, file: /var/log/portage/2918-php-4.3.10.log
Comment 3 wiktorw 2005-03-30 07:11:40 UTC
Created attachment 54840 [details]
Sandbox error log, file: /tmp/sandbox-dev-php_-_php-4.3.10-32260.log
Comment 4 wiktorw 2005-03-30 07:34:48 UTC
Created attachment 54844 [details]
php config log, file: /var/tmp/portage/php-4.3.10/work/php-4.3.10/config.log
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2005-03-30 09:14:46 UTC
*** Bug 87270 has been marked as a duplicate of this bug. ***
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-30 13:17:22 UTC
amd64: this is a bug fixed by your c-client changes in ~amd64, is there a timeline for pushing those changes to stable amd64?
Comment 7 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-03-30 15:45:30 UTC
PHP4 should still work with the old c-client, the new more permanent fix is needed only for PHP5 to build a real shared library as has always been needed. net-libs/c-client-2004a-r1 has been in testing for nearly two months now, and I think it is ready for stable.

Are there any issues moving 2004a to stable? It is still ~x86, and this is maintainer arch. I think it should also be bumped to 2004c in line with uw-imap too. You are listed as maintainer - so please let me know your views on version bump and marking 2004a-r1 stable. It works great here.
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-30 18:27:19 UTC
cryos: I have moved 2004a-r1 to stable on x86 now. I probably would have noticed it sooner with aliz's unstable mailings.

2004c coming soon to ~x86.
Comment 9 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-04-06 15:41:33 UTC
Sorry Robin - been busy and this last comment passed me by... I have now marked c-client-2004a-r1 stable on amd64, also testing 2004c with no issues so far. Thanks.

This should hopefully solve this issue too - please let me know so I or Robin can close up this bug.
Comment 10 Marcus D. Hanwell (RETIRED) gentoo-dev 2005-04-21 15:14:26 UTC
I think this is fixed now. Please reopen if this is still an issue.