Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/lib/libphpcpp.so.2.2: undefined symbol: _ZN3Php9StreamBuf4syncEv)) in Unknown on line 0 #449

Open
Nivratti opened this issue Sep 2, 2020 · 2 comments

Comments

@Nivratti
Copy link

Nivratti commented Sep 2, 2020

I am trying to run simple demo of phpcpp ( as given in this repository). It's working fine in ubuntu 18 but not working in cent os 7.

System version: cent os 7
PHP version:PHP 7.2

@ksimka
Copy link

ksimka commented Oct 9, 2020

Almost the same thing with https://github.com/lpflpf/rocketmq-client-php

PHP Warning:  PHP Startup: Unable to load dynamic library 'rocketmq' (tried: /usr/local/lib/php/pecl/20190902/rocketmq (dlopen(/usr/local/lib/php/pecl/20190902/rocketmq, 9): image not found), /usr/local/lib/php/pecl/20190902/rocketmq.so (dlopen(/usr/local/lib/php/pecl/20190902/rocketmq.so, 9): Symbol not found: __ZN12PullConsumer12getGroupNameEv
  Referenced from: /usr/local/lib/php/pecl/20190902/rocketmq.so
  Expected in: flat namespace
 in /usr/local/lib/php/pecl/20190902/rocketmq.so)) in Unknown on line 0

MacOS Catalina, PHP 7.4.6

@Nivratti
Copy link
Author

After reinstalling

  1. php
  2. php-devel
  3. php-cpp

on cent-os 7 the issue is solved in my project.

The multiple php version on system or different php-devel version can cause this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants