Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 646024 - net-analyzer/cacti-1.1.20 should RDEPEND on dev-lang/php[pdo] - Fatal error: Class 'PDO' not found in /var/www/cacti/htdocs/cacti/lib/database.php on line 52
Summary: net-analyzer/cacti-1.1.20 should RDEPEND on dev-lang/php[pdo] - Fatal error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-29 05:21 UTC by Nuno
Modified: 2018-01-29 07:17 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,5.10 KB, text/plain)
2018-01-29 05:22 UTC, Nuno
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nuno 2018-01-29 05:21:21 UTC
Cacti fails to run when dev-lang/php is compiled with USE="-pdo" (which is the default). Accessing the local cacti (via http) installation gives:

Fatal error: Class 'PDO' not found in /var/www/cacti/htdocs/cacti/lib/database.php on line 52


Cacti versions 1.1.21 and 1.1.28 seem to be affected too.

Reproducible: Didn't try

Steps to Reproduce:
1. Install =net-analyzer/cacti-1.1.20
2. Configure cacti
3. Access it: http://localhost/cacti
Actual Results:  
PHP outputs the following error message:

Fatal error: Class 'PDO' not found in /var/www/cacti/htdocs/cacti/lib/database.php on line 52

Expected Results:  
Cacti's home page should show up.

dev-lang/php-5.6.32::gentoo
net-analyzer/cacti-1.1.20::gentoo
www-servers/nginx-1.12.1::gentoo

Compiling dev-lang/php-5.6.32 with USE="pdo" solved the issue.
Comment 1 Nuno 2018-01-29 05:22:47 UTC
Created attachment 517040 [details]
emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2018-01-29 07:17:28 UTC
Fixed. Thanks.