Hi all, I'm just trying to compile pwlib-1.8.7 as a dependence for gnomemeeting but it seems to have problems to compile with recent version of openldap (2.3.x). The problem is that pwlib and gnomemeeting need to use some ldap functions that are now declared as deprecated in ldap.h. In fact this is solved in more recent versions of pwlib adding the line #define LDAP_DEPRECATED 1 in src/ptclib/pldap.cxx and this seems to work also for 1.8.7 version. After that is the turn of gnomemeeting, I have the same problem:
if g++ -DHAVE_CONFIG_H -I. -I. -I.. -DGNOMELOCALEDIR=\""/opt/gnome-2.12/share/locale (...) -c -o ils.o `test -f 'ils.cpp' || echo './'`ils.cpp; \ then mv -f ".deps/ils.Tpo" ".deps/ils.Po"; \ else rm -f ".deps/ils.Tpo"; exit 1; \ fi ils.cpp: In member function `void GMILSClient::ILSOperation(GMILSClient::Operation)': ils.cpp:243: error: `ldap_init' undeclared (first use this function) ils.cpp:243: error: (Each undeclared identifier is reported only once for each function it appears in.) ils.cpp:268: error: `ldap_bind_s' undeclared (first use this function) ils.cpp:295: error: `ldap_unbind_s' undeclared (first use this function) ils.cpp: In member function `BOOL GMILSClient::XDAPProcess(LDAP*, xmlDoc*, xmlNode**)': ils.cpp:357: error: `ldap_result2error' undeclared (first use this function) ils.cpp:375: error: `ldap_abandon' undeclared (first use this function) make[2]: *** [ils.o] Error 1 make[2]: Leaving directory `/mnt/rh/build/system/gnomemeeting-1.2.2/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/mnt/rh/build/system/gnomemeeting-1.2.2' make: *** [all] Error 2 Here the trick seems to add: #define LDAP_DEPRECATED 1 in src/common.h, after that the errors disappeared and gnomemeeting finish to compile without other problems. I have also serched for new versions of gnomemeeting and find that the program seems to be changed in ekiga, an improved version of gnomemeeting (in beta2 ATM) supporting both H323 and SIP protocols and also VoIP, so finally I decided to give it a shot and compiled ekiga-1.99.1 with pwlib-1.9.3 and opal-2.1.3, I just report this in case someone wants to check the problems above and possibly correct the book. Regards, Alessandro Alocci
*** src/common.h.orig 2006-02-28 15:32:00.000000000 +0100 --- src/common.h 2006-02-28 15:32:24.000000000 +0100 *************** *** 39,44 **** --- 39,45 ---- #ifndef GM_COMMON_H_ #define GM_COMMON_H_ + #define LDAP_DEPRECATED 1 #include <openh323buildopts.h> #include <ptbuildopts.h>
*** src/ptclib/pldap.cxx.orig 2006-02-28 15:47:20.000000000 +0100 --- src/ptclib/pldap.cxx 2006-02-28 15:47:55.000000000 +0100 *************** *** 89,94 **** --- 89,95 ---- #if P_LDAP + #define LDAP_DEPRECATED 1 #include <ldap.h>
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
