Version: 3.3.0 (using KDE KDE 3.3.0)
Installed from: FreeBSD Ports
Compiler: gcc 2.95.3
kio_ldap.cpp in $(kdebasesrc)/kioslave/ldap/ fails compination because it includes <netinet/in.h> to het ntohl(), but needs to use <sys/param.h> on DragonFlyBSD (and maybe others).
See bug http://bugs.kde.org/show_bug.cgi?id=89544 for a solution
There was a commit by Andy Fawcett to kio_ldap which added <netinet/in.h>
Is it ok to change this to <arpa/inet.h>?
using <arpa/inet.h> instead seems to compile fine on both FreeBSD 4.x and 5.x, so if that is okay for DragonflyBSD I don't object to the change.
Emiel, can you check that on DF for me please? I'll commit the fix to HEAD and BRANCH if it works for you.
Both <sys/param.h> and <arpa/inet.h> work fine for me.
Oh, there are other places (kdegames/kdenetwork/kdepim, I might be forgetting one or two) that also use netinet/in.h to get htonl() and friends. Might be prudent to grep -rn for netinet/in.h in your source base.
Oh, and since arpa/inet.,h seems to work for all of us, you can go ahead and commit that :)
Committing this fix. I don't have the time to go through all the modules at the moment, but if you mail me the filenames as you come across them I'll do my best
CVS commit by fawcett:
Fix include so that it builds on DragonflyBSD too
Will forward port later.
M +2 -1 kio_ldap.cpp 188.8.131.52
--- kdebase/kioslave/ldap/kio_ldap.cpp #184.108.40.206:220.127.116.11
@@ -16,5 +16,6 @@
Note: this fix has been reversed in the meantime.