We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

PHP Startup: Unable to load dynamic library 'phalcon.so'

I am trying to run phalcon in php but it seems from the errors that it cannot load it.

PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (tried: /usr/lib64/php/modules/phalcon.so (/usr/lib64/php/modules/phalcon.so: undefined symbol: __builtin_saddl_overflow), /usr/lib64/php/modules/phalcon.so.so (/usr/lib64/php/modules/phalcon.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

I've tried all the solutions that are on the web but I cant solve it. I already add the extension=phalcon.so in php.ini and also made a file zzzzz.ini which contains the same extension but it does not work.

Those are the solutions that I found on the web.

Can someone else help me to solve my problem ?

Thanks in advance

GCC Version: gcc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)

The problem will be with the phalcon.so path, since it is already looking for it in the registered ext folder. (or what it thinks is the ext folder) Do you maybe have multiple PHP installs?

CLI uses #A, while FPM uses #B?

edited Jan '19

How can I check if I have multiple PHP installs ?

Edit 1

I typed the below command and the output was that:

locate bin/php

/usr/bin/php

/usr/bin/php-cgi

/usr/bin/php-config

/usr/bin/phpize

The problem will be with the phalcon.so path, since it is already looking for it in the registered ext folder. (or what it thinks is the ext folder) Do you maybe have multiple PHP installs?

CLI uses #A, while FPM uses #B?

Did you compile Phalcon from source?

This error mesages indicates that Phalcon was compiled using no longer supported gcc < 5.0.0:

undefined symbol: __builtin_saddl_overflow

https://github.com/phalcongelist/packagecloud/blob/master/rpm/php-phalcon.spec#L81-L86

yes I did as you can see in the image below

https://imgur.com/a/r0B7udj

the only step i didnt do is "make test" because I dont know how

Did you compile Phalcon from source?

This error mesages indicates that Phalcon was compiled using no longer supported gcc < 5.0.0:

undefined symbol: __builtin_saddl_overflow

https://github.com/phalcongelist/packagecloud/blob/master/rpm/php-phalcon.spec#L81-L86