bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug #2817] g++32/FreeBSD4.8-RC1: Compilation fails


From: nobody
Subject: [Bug #2817] g++32/FreeBSD4.8-RC1: Compilation fails
Date: Sun, 23 Mar 2003 08:45:17 -0500

=================== BUG #2817: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2817&group_id=89

Changes by: Federico Montesino Pouzols <address@hidden>
Date: Sun 03/23/03 at 14:45 (Europe/Madrid)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
         Assigned to | None                      | fedemp
              Status | Open                      | Closed
                  CC |                           | address@hidden


------------------ Additional Follow-up Comments ----------------------------
Both are fixed in CVS for 1.0.9. As for how to solve 2), 
see a post to bug-commoncpp that has been sent a few minutes
ago.



=================== BUG #2817: FULL BUG SNAPSHOT ===================


Submitted by: nkoch                   Project: commonc++                    
Submitted on: Thu 03/13/03 at 17:19
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  Fixed                    
Assigned to:  fedemp                  Status:  Closed                       

Summary:  g++32/FreeBSD4.8-RC1: Compilation fails

Original Submission:  Hello.

I found problems in two source files when trying to
compile the latest cvs sources under FreeBSD 4.8-RC1 using
g++3.2.2:

1. src/date.cpp:
When configuring "--enable-
debug" the compiler complains about cout and endl. You have to
add #include <iostream> and "using namespace std".

2.
src/socket.cpp:
A lot of problems around
IP_ADD_MEMBERSHIP.
This symbol is defined in
FreeBSD's system headers but the structures and ioctls seem to
be competely different.
Here is the compiler's
output:

socket.cpp: In member function
`ost::Socket::Error ost::UDPSocket::join(const

ost::InetMcastAddress&, int)':
socket.cpp:907: aggregate
`ost::ip_mreqn group' has incomplete type and cannot
be
defined 
socket.cpp: In member function
`ost::Socket::Error

ost::UDPSocket::getInterfaceIndex(const char*,
int&)':
socket.cpp:931: aggregate `ost::ip_mreqn mreqn' has
incomplete type and cannot
be defined
socket.cpp:945:
`SIOCGIFINDEX' undeclared (first use this
function)
socket.cpp:945: (Each undeclared identifier is
reported only once for each
function it appears
in.)
socket.cpp:948: `struct ifreq' has no member named
`ifr_ifindex'

I found a structure ip_mreq in FreeBSD's
headers.
If I #undef IP_ADD_MEMBERSHIP the compilation
succeeds.

Sorry but I can't help more as I'm no socket
programming expert.

Follow-up Comments
*******************

-------------------------------------------------------
Date: Sun 03/23/03 at 14:45         By: fedemp
Both are fixed in CVS for 1.0.9. As for how to solve 2), 
see a post to bug-commoncpp that has been sent a few minutes
ago.


CC List
*******

CC Address                          | Comment
------------------------------------+-----------------------------
address@hidden               | 



No files currently attached


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=2817&group_id=89




reply via email to

[Prev in Thread] Current Thread [Next in Thread]