on jammy (22.04) I got error message: Unable to load dynamic library 'facedetect.so

Bug #1995628 reported by William Eder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-facedetect (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

# lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04

# apt-cache policy php-facedetect
php-facedetect:
  Installed: 1.1.0-19-g135c72a-2build3
  Candidate: 1.1.0-19-g135c72a-2build3
  Version table:
 *** 1.1.0-19-g135c72a-2build3 500
        500 http://hu.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        100 /var/lib/dpkg/status

# php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'facedetect.so' (tried: /usr/lib/php/20210902/facedetect.so (/usr/lib/php/20210902/facedetect.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/facedetect.so.so (/usr/lib/php/20210902/facedetect.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.1.2-1ubuntu2.6 (cli) (built: Sep 15 2022 11:30:49) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.1.2-1ubuntu2.6, Copyright (c), by Zend Technologies

Detailed information:

Ubuntu 22.04 (jammy) with PHP 8.1, I got a warning message always when call php-cli after install php-facedetect package:

PHP Warning: PHP Startup: Unable to load dynamic library 'facedetect.so' (tried: /usr/lib/php/20210902/facedetect.so (/usr/lib/php/20210902/facedetect.so: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/facedetect.so.so (/usr/lib/php/20210902/facedetect.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I tried to find the location of the 'facedetect.so" file but I can not found.
I checked the installer package too, but it is not contain this file as well.
I installed the package directly with command: apt-get install php-facedetect
On Ubuntu 18.04 (with PHP7.2) the php-facedetect package works perfectly.

This seems to be a packaging error.

If you compare the contents in the Ubuntu package in jammy
https://packages.ubuntu.com/jammy/amd64/php-facedetect/filelist
with the contents in Debian
https://packages.debian.org/sid/amd64/php-facedetect/filelist
or with the Ubuntu package in bionic
https://packages.ubuntu.com/bionic/amd64/php-facedetect/filelist
then you see that the facedetect.so file is missing.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: php-facedetect 1.1.0-19-g135c72a-2build3
ProcVersionSignature: Ubuntu 5.15.0-47.51-generic 5.15.46
Uname: Linux 5.15.0-47-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Thu Nov 3 17:34:08 2022
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=C.UTF-8
 SHELL=/bin/bash
SourcePackage: php-facedetect
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
William Eder (pumuckly) wrote :
Revision history for this message
William Eder (pumuckly) wrote :

A success story:
I build sources from https://github.com/infusion/PHP-Facedetect/blob/master/facedetect.cc and this can works with PHP 8.1 now (facedetect.so built and no warning messages)
It needs to install some package manually with:
apt-get install libopencv-core4.5d libopencv-highgui4.5d libopencv-imgproc4.5d libopencv-objdetect4.5d

Maybe it helps.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.