[SOLVED] php-clamav-0.15.6 not running make command successfully
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Again I just am completely stuck any advice is much appreciated, it's probably something I have overlooked but just can't remember what I previously did before my OS upgrade.
Thank you ever so much in advance of any replies,
Jeremy
function_entry clamav_functions[] = {
PHP_FE(cl_info, NULL)
PHP_FE(cl_scanfile, second_args_force_ref)
PHP_FE(cl_engine, NULL)
PHP_FE(cl_pretcode, NULL)
PHP_FE(cl_version, NULL)
PHP_FE(cl_debug, NULL)
{NULL, NULL, NULL} /* Must be the last line in clamav_functions[] */
};
Still not sure as I would have thought it could have been the php-devel perhaps? But I have that installed does not make much sense really.
Last edited by j.smith1981; 04-15-2012 at 03:09 PM.
From the snippet above it looks like you're trying to compile from inside the php-5.4.0. What is the php version that is running on your box? And how did you install it?
If it's the latest 5.4.0 compiled from source, I guess this is the reason that you cannot compile the php-clamav extension, as perhaps php-5.4.0 uses some functions incompatible with php-clamav.
Also I see above, that libtool uses the php headers from /usr/include/php, so in fact you're compiling against the php (using php-devel) that came with your distro (you should name your distro too). That could be another reason that compile fails.
You best bet is to remove php-5.4.0, install/update the php/php-devel packages and then try again to compile the extension.
I thought I would clean this post up actually (was getting a bit muddled so I will apologise if someone was already reading this post of mine in response to what bathory said (with thanks too) and to business_kid).
The PHP version for the repo from webtatic is PHP 5.4.0 actually outputs as:
Quote:
php54w-5.4.0-1.w6.x86_64.rpm
Though the version of PHP that comes with CentOS is 5.3.3, I tried installing a PHP module using the same php-dev package of course and that even worked (so can't be that).
One would have thought that it would be an annoying incompatibility between php 5.4.0 though if there's anything I have forgotten?
I would like to correct you on this though:
Quote:
Also I see above, that libtool uses the php headers from /usr/include/php, so in fact you're compiling against the php (using php-devel) that came with your distro (you should name your distro too). That could be another reason that compile fails.
It's not the repo of CentOS it's the webtatic repo their all from and this still won't work. Must use the same directory to store them in ( with /usr/include/php).
I have attempted this but I get exactly the same output when I try this:
Quote:
You best bet is to remove php-5.4.0, install/update the php/php-devel packages and then try again to compile the extension.
Though I even compiled another extension PHP left out for some reason and got that working using php-devel.
Out of curiosity, I've tried to build php-clamav in a test box running php-5.4.0 and it failed. Doing the same in another box running php-5.3.10 was successful, so the problem is the php version.
Maybe you should downgrade to Centos official php-5.3.3 (or get a newer 5.3.x from a third party repo)
I thought it was just me makes perfect sense I was sure I was following what I'd done previously Imagick won't work either with PHP I might just go back to the previous 5.3 version like you just said.
Thanks ever so much bathory (I though I was going mad lol).
Kind regards.
PS I will try and get back php 5.3 since I think its just running yum with webtatic on packages from php53 (or at least from what I can remember).
Last edited by j.smith1981; 04-18-2012 at 02:52 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.