LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-23-2006, 02:25 AM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
qmail-ldap problem:qldap.c:36:18: lber.h: No such file or directory qldap.c:37:18: ld


Dear friends,

I faced a qmail-ldap problem when trying to install qmail-ldap.
After patching qmail-ldap, I do make setup check, then it starts its usual compilation but ended with a series of obvious errors as follow:

qldap.c:36:18: lber.h: No such file or directory
qldap.c:37:18: ldap.h: No such file or directory
qldap.c:65: error: syntax error before "LDAP"
qldap.c:65: warning: no semicolon at end of struct or union
qldap.c:66: warning: data definition has no type or storage class
qldap.c:67: error: syntax error before '*' token
qldap.c:67: warning: data definition has no type or storage class
qldap.c:69: error: syntax error before '}' token
qldap.c: In function `qldap_new':
qldap.c:234: error: invalid application of `sizeof' to an incomplete type
qldap.c:236: error: invalid application of `sizeof' to an incomplete type
qldap.c: In function `qldap_open':
qldap.c:247: error: dereferencing pointer to incomplete type
qldap.c:247: error: dereferencing pointer to incomplete type
qldap.c:250: error: dereferencing pointer to incomplete type
qldap.c:250: error: `LDAP_PORT' undeclared (first use in this function)

etc.

Obvious error must be this line:
qldap.c:36:18: lber.h: No such file or directory
qldap.c:37:18: ldap.h: No such file or directory

When I do rpm -ql openldap I find these:
/usr/lib/liblber.so.2
/usr/lib/liblber.so.2.0.128
/usr/lib/libldap.so.2
/usr/lib/libldap.so.2.0.128
/usr/lib/libldap_r.so.2
/usr/lib/libldap_r.so.2.0.128

In my makefile configuration I have:
LDAPLIBS=-L/usr/lib -lldap -llber

Anyone have any idea what went wrong? Is it the above path?
please help.....i don't really know what the errros mean...
thanks a lot for taking time helping,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting qmail from /etc/passwd to LDAP k41184 Linux - Security 1 11-12-2005 03:57 AM
qmail-ldap + qmail-scanner = help needed coolamit78 Linux - Software 0 05-17-2005 02:32 PM
Qmail SMTP LDAP authentication nev_neo Linux - Software 0 12-22-2004 12:35 PM
Qmail-Ldap Control Panel nimish Linux - Software 1 10-31-2004 11:47 PM
qmail +qmail-qfilter + qmail-scanner-queue+qmail-user-masq.pl problem countcobolt Linux - Networking 0 07-08-2004 11:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration