[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Current CVS Fails to Compile on FreeBSD
From: |
Federico Montesino Pouzols |
Subject: |
Re: Current CVS Fails to Compile on FreeBSD |
Date: |
Sun, 23 Mar 2003 14:42:40 +0100 |
User-agent: |
Mutt/1.5.3i |
I see. It seems that using
#if defined(IP_ADD_MEMBERSHIP) && defined(SIOCGIFINDEX)
is enough to make ccpp compilable on FreeBSD again, as
SIOCGIFINDEX is defined if the problematic ip_mreqn structure is
available. It is fixed in CVS.
On Tue, Mar 18, 2003 at 08:39:13PM -0600, Ari Johnson wrote:
>
> I'm no longer on the mailing list, as my project is coming to a close.
> FreeBSD has the same two #defines, except as 12 and 13, with the same
> comments. Note that the structure mentioned is ip_mreq, whereas the error
> refers to ip_mreqn. The #defines in question are in
> /usr/include/netinet/in.h, though.
>
> Ari Johnson
>
> On Tue, 18 Mar 2003, Federico Montesino Pouzols wrote:
>
> >
> > Since you see that error, it seems that IP_ADD_MEMBERSHIP and
> > IP_DROP_MEMBERSHIP are defined on FreeBSD. I would say that there must
> > be some equivalent field. On GNU/Linux systems, there are the
> > following lines:
> >
> > #define IP_ADD_MEMBERSHIP 35 /* ip_mreq; add an IP group membership */
> > #define IP_DROP_MEMBERSHIP 36 /* ip_mreq; drop an IP group membership */
> >
> > in /usr/include/bits/in.h. Is there something like this on
> > FreeBSD?
> >
> > On Mon, Mar 03, 2003 at 07:12:14PM -0600, Ari Johnson wrote:
> > >
> > > g++ -DHAVE_CONFIG_H -I. -I. -I../include -I../src -DCCXX_EXPORT_LIBRARY
> > > -I/home/ari/cvswork/install/include -D_GNU_SOURCE -D_THREAD_SAFE
> > > -I/usr/local/include/libxml2 -I/usr/local/include -Wall -ansi -pedantic
> > > -I../include -c socket.cpp -Wp,-MD,.deps/socket.TPlo -fPIC -DPIC -o
> > > .libs/socket.lo
> > > socket.cpp: In method `enum ost::Socket::Error ost::UDPSocket::join(const
> > > ost::InetMcastAddress &, int)':
> > > socket.cpp:907: aggregate `struct ost::ip_mreqn group' has incomplete type
> > > and cannot be initialized
> > > socket.cpp:918: confused by earlier errors, bailing out
> > > *** Error code 1
> > >
> > > The ip_mreqn is apparently not defined on FreeBSD...I did a
> > > "grep ip_mreqn `find /usr/include`" and got no hits.
> > >
> > > Ari Johnson
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Bug-commoncpp mailing list
> > > address@hidden
> > > http://mail.gnu.org/mailman/listinfo/bug-commoncpp
> >
>