[Ekiga-list] Compilation problem with LDAP
Julien Puydt
jpuydt at free.fr
Fri Aug 31 11:45:05 UTC 2007
NOREPLY a écrit :
> I've seen in a previous post by Franz Fuder that he has a compilation problem
> with ldap. I do not know whether the problem is the same as mine but I cannot do
> it either: I have to use the --disable-ldap option of configure.
His problem was entirely different, if I remember well : he was trying
to compile pwlib with a recent openLDAP -- and pwlib's LDAP code is
using a deprecated api.
> I compile the lastest SVN/CVS sources (of opal pwlib ffmpeg and ekiga). I did
> not have any problem before leaving on holidays (i.e. till beginning of August,
> but now I that I am back I always have the error described below), so I cannot
> precisely say when the problem first appeared
Yes, my code landed in svn -- and it doesn't use deprecated api.
> I tried to compile it on up-to-date Fedora Core 6 and Fedora 7, on i386 and
> x86_64 archs, I used the latest open-ldap libraries and even tried with the
> openldap-2.4.4 alpha version without any success.
>
> Here you what I get
>
> g++ -DHAVE_CONFIG_H -I. -I../../../.. -I../../../../lib/gmconf
> -I../../../../lib/engine/framework -I../../../../lib/engine/addressbook/skel
> -I../../../../src -I../../../../src/clients/ -I../../../../src/components/
> -I../../../../src/devices/ -I../../../../src/endpoints/ -I../../../../src/gui/
> -I/usr/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -pthread
> -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -pthread -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/opal -DPTRACING -DNDEBUG -Wall -Os -g
> -fno-exceptions -felide-constructors -I/usr/include/ptlib -I/usr/include/ptclib
> -D_REENTRANT -fno-exceptions -g -O2 -MT ldap-book.lo -MD -MP -MF
> .deps/ldap-book.Tpo -c ../../../../lib/engine/addressbook/ldap/ldap-book.cpp
> -fPIC -DPIC -o .libs/ldap-book.o
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp: In member function 'void
> OPENLDAP::Book::refresh_start()':
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp:353: error: 'ldap_init'
> was not declared in this scope
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp:368: error: 'ldap_bind_s'
> was not declared in this scope
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp:374: error: 'ldap_unbind'
> was not declared in this scope
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp:402: error: 'ldap_search'
> was not declared in this scope
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp:413: error: 'ldap_unbind'
> was not declared in this scope
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp: In member function 'void
> OPENLDAP::Book::refresh_end()':
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp:455: error: 'ldap_unbind'
> was not declared in this scope
> ../../../../lib/engine/addressbook/ldap/ldap-book.cpp:486: error: 'ldap_unbind'
> was not declared in this scope
What is strange is that you seem to have *none* of the openLDAP
functions, but we don't see a warning about not finding ldap.h...
What do you have in that ldap.h?
Snark on #ekiga
PS: notice that discussing on the svn version should better take place
on ekiga-devel...
More information about the ekiga-list
mailing list