Problem description
PHP7: PHP7: PHP7: PHP7: PHP7: PHP7: PHP7
/usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol ‘ber_strdup’
/usr/bin/ld:note: ‘ber_strdup’ is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line
/lib64/liblber-2.4.so.2:could not read symbols: Invalid operation
collect2:error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
The solution
In the PHP source code directory vi Makefile code> open the file, find the
EXTRA_LIBS code> line, line at the end of the add
- llber code> save out of the
again make code>
Read More:
- .. ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status make[2]: ***
- About the problem of collect2.exe [error] LD returned 1 exit status in dev!!!
- collect2: error:ld returned 1 exit status solution
- Linux GCC compilation error: “collect2: LD returned 1 exit status”
- Solutions to the problem of collect2: error: LD returned 1 exit status
- Collect2.exe: error: LD returned 5 exit status solution
- Collect2: error: LD returned 1 exit status
- Solutions to the problem of “collect2.exe: error: LD returned 1” exit “status when writing C + + with vscode
- undefined reference to `pthread_create’ collect2: ld returned 1 exit status
- undefined reference to `WinMain‘collect2.exe: error: ld returned 1 exit status
- Error: LTO wrapper failed collect2: error: LD returned 1 exit status
- A solution to [error] LD returned 1 exit status
- ||Error: LD returned 1 exit status | C + + compile time problems
- Solution to dev C + + error [error] LD returned 1 exit status
- Error: LD returned 1 exit status appears when developing esp8266 with anxinco IDE
- In function `_start’ undefined reference to `main’ error: ld returned 1 exit status
- Solution to error [error] LD returned 1 exit status in C language
- Possible causes of [errror] ID returned 1 exit status error in dev C + + Programmer
- Java was started but returned exit code = 13
- command ‘x86_64-linux-gnu-gcc’ failed with exit status 1