> control.o: \ > compile control.c readwrite.h open.h getln.h stralloc.h gen_alloc.h \ > substdio.h error.h control.h alloc.h scan.h > ./compile $(LDAPFLAGS) $(LDAPLIBS) $(LDAPINCLUDES) control.c
I have no problem with making the target "control.o". I had already made that change to my Makefile to you see.. :) My line looks like this when I "make qmail-qmtpd": ./compile -DQLDAP_CLUSTER -DDASH_EXT -DUSE_CONTROLDB -DQLDAP_BAILOUT -DUSE_RFC2307 -DUSE_RFC822 -L/usr/local/lib -L/usr/local/openldap/lib -L/usr/local/ssl/lib -lldap -llber -I/usr/local/include -I/usr/local/openldap/include control.c But when I try to make qmail-qmtpd (or try to make a target that uses control.o) it failes with the error message "undefined reference to..." in the function control_ldap_search. And all the functions that are undefined is declared in my ldap.h (in openldap_dir/include). It seems like it can't find the header file.. but it is included at the top of control.c, and I got no errors about including that file.. Very strange! I think that the weirdest thing is that I can make the control.o target, without any errors, but when I try to use control.o.. I get errors. Thanks for your help! =) Regards, Johan Andersson
