22 Sep
2014
22 Sep
'14
8:02 a.m.
On 22.09.2014 03:42, Arran Cudbard-Bell wrote:
/usr/bin/ld: /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/libldap.so: undefined reference to symbol 'ber_free' /usr/bin/ld: note: 'ber_free' 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: *** [ldapperf] Error 1
You don't have libldap or its development headers installed.
They are installed or the build would have failed much earlier. The bug is inside the Makefile. You need to add "-llber" to the gcc command, because you need to explicitly link to all needed libraries. Grüße, Sven.