打包php-ldap扩展时遇到如下问题:
| 1 | *** ERROR: No build ID note found in /data3/rpmbuild/BUILDROOT/beebank-php5-ldap-1.0.0-1.el6.x86_64/usr/local/lib/php/extensions/no-debug-non-zts-20121212/ldap.so | 
解决办法:
在spec文件中添加如下语句:
| 1 2 3 4 | %define __debug_install_post   \    %{_rpmconfigdir}/find-debuginfo.sh %{?_find_debuginfo_opts} "%{_builddir}/%{?buildsubdir}"\ %{nil} |