Ticket #25 (closed defect: worksforme)

Opened 5 years ago

Last modified 4 years ago

Solaris compile errors

Reported by: webmaster@… Owned by: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: major Keywords:
Cc:

Description

svn source checked out today 30/08/2005. Solaris 8, gcc 3.4.4 compiling with: ./configure --with-modules="ldap"

i get this error:

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/ssl/include -D_REENTRANT -Wall -O2 -MT powerldap.lo -MD -MP -MF .deps/powerldap.Tpo -c powerldap.cc -fPIC -DPIC -o .libs/powerldap.o

In file included from powerldap.cc:1: powerldap.hh:72: error: `u_int16_t' has not been declared powerldap.hh:72: error: ISO C++ forbids declaration of `port' with no type powerldap.cc:5: error: `u_int16_t' has not been declared powerldap.cc:6: error: ISO C++ forbids declaration of `port' with no type make[3]: *** [powerldap.lo] Error 1 make[3]: Leaving directory `/opt/project.venus/buildtree/dns/pdns-svn/modules/ldapbackend'

I couldnt get 2.9.18 compiled either and failed at an earlier attempt this year of 2.9.17. i hate bind with a passion, please help me get this working ;)

Change History

Changed 5 years ago by webmaster@…

hi, after doing this:

perl -pi -e 's/u_int16_t/uint16_t/g' find . -type f -exec grep -l 'u_int16_t' {} \;

i now get this:

make[3]: Entering directory `/opt/project.venus/buildtree/dns/pdns/modules/ldapbackend' if /bin/ksh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/ssl/include -I/opt/project.venus/software/base/LDAPv3/include -D_REENTRANT -Wall -O2 -MT powerldap.lo -MD -MP -MF ".deps/powerldap.Tpo" -c -o powerldap.lo powerldap.cc; \ then mv -f ".deps/powerldap.Tpo" ".deps/powerldap.Plo"; else rm -f ".deps/powerldap.Tpo"; exit 1; fi

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/ssl/include -I/opt/project.venus/software/base/LDAPv3/include -D_REENTRANT -Wall -O2 -MT powerldap.lo -MD -MP -MF .deps/powerldap.Tpo -c powerldap.cc -fPIC -DPIC -o .libs/powerldap.o

powerldap.cc: In constructor `PowerLDAP::PowerLDAP(const std::string&, uint16_t, bool)': powerldap.cc:9: error: `ldap_init' undeclared (first use this function) powerldap.cc:9: error: (Each undeclared identifier is reported only once for each function it appears in.) powerldap.cc:19: error: `ldap_unbind' undeclared (first use this function) powerldap.cc: In destructor `PowerLDAP::~PowerLDAP()': powerldap.cc:34: error: `ldap_unbind' undeclared (first use this function) powerldap.cc: In member function `void PowerLDAP::simpleBind(const std::string&, const std::string&)': powerldap.cc:59: error: `ldap_simple_bind_s' undeclared (first use this function) powerldap.cc: In member function `int PowerLDAP::search(const std::string&, int, const std::string&, const char**)': powerldap.cc:69: error: `ldap_search' undeclared (first use this function) make[3]: *** [powerldap.lo] Error 1 make[3]: Leaving directory `/opt/project.venus/buildtree/dns/pdns/modules/ldapbackend' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/opt/project.venus/buildtree/dns/pdns/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/opt/project.venus/buildtree/dns/pdns' make: *** [all] Error 2

Changed 5 years ago by ahu

  • status changed from new to closed
  • resolution set to worksforme

This probably is a specific LDAP problem, it looks like a different ldap.h is being included. I suggest emailing the list & Norbert Sendetzky who are more knowledgeable where it comes to LDAP.

Changed 4 years ago by anon

  • type set to defect

This is because ldap_init is deprecated since openldap 2.3. You could try compiling with -DLDAP_DEPRECATED.

Note: See TracTickets for help on using tickets.