The Gupta Age wrote:
> Hi,
> I was trying to compile kde3 on a recent current. When the compilation
> reaches ksysguardd within ksysguard within kdebase3 it fails with the
> following error:
> 
> gmake[4]: Entering directory
> `/usr/ports/x11/kdebase3/work/kdebase-3.0.3/ksysguard/ksysguardd/FreeBSD'
> source='netdev.c' object='netdev.o' libtool=no \
> depfile='.deps/netdev.Po' tmpdepfile='.deps/netdev.TPo' \
> depmode=gcc3 /bin/sh ../../../admin/depcomp \
> cc -DHAVE_CONFIG_H -I. -I. -I../../.. -DKSYSGUARDDRCFILE="\"\""
> -I./../../CContLib -I./..  -pthread -DQT_THREAD_SUPPORT
> -I/usr/local/include -I/usr/local/include  -I/usr/X11R6/include
> -D_GETOPT_H -D_THREAD_SAFE  -Wall  -c `test -f netdev.c || echo
> './'`netdev.c
> In file included from netdev.c:23:
> /usr/include/sys/socket.h:170: syntax error before "u_char"
KDE is broken; it's assuming promisucous headers.

Workaround:

        mv netdev.c netdev.c.broken
        echo "#include <sys/types.h>" > netdev.c
        cat netdev.c.broken >> netdev.c

Probably, this should be handled by sending a patch back to the KDE
folks, whose servers were dead and being repaired yesterday.  You
could also make a port path that patched netdev.c, as an interim
fix (include the header before including the <sys/socket.h> header).

Unfortunately, It still has not been 72 hours for the download, so
I still do not have the KDE sources available locally.

-- Terry

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to