Skip site navigation (1)Skip section navigation (2)
Date:      19 May 2000 09:26:01 -0700
From:      Scott Blachowicz <scott@sabami.seaslug.org>
To:        freebsd-ports@freebsd.org
Subject:   Re: KDE2: make install 'fails' ...
Message-ID:  <87ln16fqw6.fsf@sabmail.rresearch.com>
In-Reply-To: The Hermit Hacker's message of "Fri, 19 May 2000 01:19:35 -0300 (ADT)"
References:  <Pine.BSF.4.21.0005190118370.243-100000@thelab.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi-

Well...my build fails like this:

    g++295 -DHAVE_CONFIG_H -I. -I. -I.. -I./../libltdl/ -I../dcop -I../kdecore -I../kdeui -I/usr/X11R6/include/qt2 -I/usr/X11R6/include -I/usr/X11R6/kde2/include -DQT_NO_ASCII_CAST -DQT_NO_COMPAT -I/usr/local/include -I/usr/X11R6/kde2/include -O -pipe -I/usr/X11R6/kde2/include -I/usr/X11R6/include/qt2 -I/usr/X11R6/include -frtti -c ksock.cpp  -fPIC -DPIC -o ksock.lo
    In file included from ksock.cpp:47:
    /usr/include/arpa/nameser.h:143: parse error before `;'
    gmake[3]: *** [ksock.lo] Error 1
    gmake[3]: Leaving directory `/files1/ports/x11/kdelibs2/work/kdelibs-1.90/kdecore'
    gmake[2]: *** [all-recursive] Error 1
    gmake[2]: Leaving directory `/files1/ports/x11/kdelibs2/work/kdelibs-1.90/kdecore'
    gmake[1]: *** [all-recursive] Error 1
    gmake[1]: Leaving directory `/files1/ports/x11/kdelibs2/work/kdelibs-1.90'
    gmake: *** [all-recursive-am] Error 2
    *** Error code 2

on a FreeBSD 3.2 system (that I need to update one of these days :-)).
That bit of header files looks like this:

    /*
     * This is a parsed record.  It is caller allocated and has no dynamic data.
     */
    typedef	struct __ns_rr {
        char		name[NS_MAXDNAME];	/* XXX need to malloc */
        u_int16_t	type;
        u_int16_t	class;
        u_int32_t	ttl;
        u_int16_t	rdlength;
        const u_char	*rdata;
    } ns_rr;

I don't think that C++ is going to like "class" as a field name there.
Wrapping the #include in ksock.cpp like this:

    #ifndef __FreeBSD__
    // defines MAXDNAME under Solaris
    #include <arpa/nameser.h>
    #endif

seems to get the build going again.  Probably ought to mention this to the
KDE2 developers...where's the best place to do that?
-- 
Scott Blachowicz



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87ln16fqw6.fsf>