I was trying to compile KDE4 from the ports collection. As attachement I've added the output from this compilation. When I disable LDAP in the configure script, then Curl compiles without error.
Still, LDAP_DECPRECATED is something your environment sets in CFLAGS. It is not a define curl/libcurl uses and it is wrongly set in CFLAGS instead of CPPFLAGS.
The easiest path for you is to just make sure it isn't set at all as it serves no purpose when building curl.
I don't think curl's configure should error out on this though so I'll fix it to behave slightly different in the future.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Where does -DLDAP_DEPRECATED come from?
Besides, that's not truly an error but just a warning text as it may lead to funny effects in the generated build scripts.
Is there something that actually doesn't work when you invoke make after configure has run?
Hi Daniel,
I was trying to compile KDE4 from the ports collection. As attachement I've added the output from this compilation. When I disable LDAP in the configure script, then Curl compiles without error.
Still, LDAP_DECPRECATED is something your environment sets in CFLAGS. It is not a define curl/libcurl uses and it is wrongly set in CFLAGS instead of CPPFLAGS.
The easiest path for you is to just make sure it isn't set at all as it serves no purpose when building curl.
I don't think curl's configure should error out on this though so I'll fix it to behave slightly different in the future.
A fix seems to edit /usr/ports/Mk/bsd.ldap.mk
to change:
CFLAGS+= -DLDAP_DEPRECATED
to:
CPPFLAGS+= -DLDAP_DEPRECATED
but i don't know the consequences are....
That's not really a question we can help you with either. That seems highly FreeBSD-specific!
My changes in curl's configure scripts that will no longer error out on those warnings were merged as commit 6b27703b5f52.
I hereby consider this issue closed and fixed. Is there anything else we can do?