On Thu, Jan 17, 2008 at 12:09:23PM +0000, Alexander Clouter wrote: > Severity: serious > Justification: no longer builds from source > Got myself a new laptop and went about compiling libldap2 from scratch[1] and > found the following error hitting me when compiling: > > ======= > [EMAIL PROTECTED]:/usr/src/deb-src/libldap2/openldap2-2.1.30.dfsg$ > dpkg-buildpackage -us -uc -rfakeroot > [snipped] > checking for cxx... no > checking for cc++... no > checking for cl... no > checking for FCC... no > checking for KCC... no > checking for RCC... no > checking for xlC_r... no > checking for xlC... no > checking whether we are using the GNU C++ compiler... no > checking whether g++ accepts -g... no > checking how to run the C++ preprocessor... /lib/cpp > configure: error: C++ preprocessor "/lib/cpp" fails sanity check > See `config.log' for more details. > make: *** > [/usr/src/deb-src/libldap2/openldap2-2.1.30.dfsg/debian/build/Makefile] Error > 1 > dpkg-buildpackage: failure: debian/rules build gave error exit status 2 > [EMAIL PROTECTED]:/usr/src/deb-src/libldap2/openldap2-2.1.30.dfsg$ > ======= > > The config.log reported that it could not find 'cc1plus' (provided by 'g++'). > Once > installed it compiles with no problems.
Please consider using the debuild command from the devscripts package. It uses dpkg-buildpackage internally, but first checks if the build dependencies are satisfied. The libldap2 sources do not build-depend on g++, because the build-essential package depends on it which should be installed any time when building a Debian package. See section 4.2 of the debian policy here: http://www.debian.org/doc/debian-policy/ch-source.html Greetings from Dresden, Torsten -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

