undefined symbol: php_sprintf

  • David Biesack
    David Biesack

    On Red Hat 9, with Apache 2.0.46 and PHP 4.3.10,
    I built and installed mmcache as instructed but when
    I restart Apache, I get the following in error_log:

    PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/' - /usr/lib/php4/ undefined symbol: php_sprintf in Unknown on line 0

    and running mmcache.php shows mmcache not installed.

    Is there a workaround or fix? Is there an install problem -- something I'm misisng?

    The only references to sprintf are:

    content.c:    sprintf(etag,"ETag: mmcache-%u",mmcache_crc32(Z_STRVAL_P(return_value),Z_STRLEN_P(return_value)));
    mmcache.c:  sprintf(buf, "%ld%ld%0.8f", tv.tv_sec, tv.tv_usec, php_combined_lcg(TSRMLS_C) * 10);